OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 from os import path as os_path | 6 from os import path as os_path |
7 | 7 |
8 | 8 |
9 NODE_MODULES = os_path.join(os_path.dirname(__file__), 'node_modules') | 9 NODE_MODULES = os_path.join(os_path.dirname(__file__), 'node_modules') |
10 | 10 |
11 | 11 |
12 def _path_in_node_modules(*args): | 12 def _path_in_node_modules(*args): |
13 return os_path.join(NODE_MODULES, *args) | 13 return os_path.join(NODE_MODULES, *args) |
14 | 14 |
15 | 15 |
16 def PathToVulcanize(): | 16 def PathToVulcanize(): |
17 return _path_in_node_modules('vulcanize', 'bin', 'vulcanize') | 17 return _path_in_node_modules('vulcanize', 'bin', 'vulcanize') |
18 | 18 |
19 | 19 |
20 def PathToCrisper(): | 20 def PathToCrisper(): |
21 return _path_in_node_modules('crisper', 'bin', 'crisper') | 21 return _path_in_node_modules('crisper', 'bin', 'crisper') |
22 | 22 |
23 | 23 |
24 def PathToPolymerCssBuild(): | 24 def PathToPolymerCssBuild(): |
25 return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build') | 25 return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build') |
26 | 26 |
27 | 27 |
28 def PathToUglifyJs(): | 28 def PathToUglify(): |
29 return _path_in_node_modules('uglifyjs', 'bin', 'uglifyjs') | 29 return _path_in_node_modules('uglify-es', 'bin', 'uglifyjs') |
30 | 30 |
31 | 31 |
32 def PathToEsLint(): | 32 def PathToEsLint(): |
33 return _path_in_node_modules('eslint', 'bin', 'eslint') | 33 return _path_in_node_modules('eslint', 'bin', 'eslint') |
OLD | NEW |