blob: 823c4e0ab2a1fc5b34d784d74d41b8ef85dee28f [file] [log] [blame]
Yang Guo4fd355c2019-09-19 08:59:031#!/usr/bin/env python
2# Copyright 2016 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6from os import path as os_path
7
8NODE_MODULES = os_path.join(os_path.dirname(__file__), 'node_modules')
9
10
11def _path_in_node_modules(*args):
12 return os_path.join(NODE_MODULES, *args)
13
14
15def PathToBundler():
16 return _path_in_node_modules('polymer-bundler', 'lib', 'bin', 'polymer-bundler')
17
18
19def PathToCrisper():
20 return _path_in_node_modules('crisper', 'bin', 'crisper')
21
22
23def PathToEsLint():
24 return _path_in_node_modules('eslint', 'bin', 'eslint')
25
26
27def PathToPolymerCssBuild():
28 return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build')
29
30
31def PathToSvgo():
32 return _path_in_node_modules('svgo', 'bin', 'svgo')
33
34
35def PathToUglify():
36 return _path_in_node_modules('uglify-es', 'bin', 'uglifyjs')