Yang Guo | 4fd355c | 2019-09-19 08:59:03 | [diff] [blame] | 1 | #!/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 | |
| 6 | from os import path as os_path |
| 7 | |
| 8 | NODE_MODULES = os_path.join(os_path.dirname(__file__), 'node_modules') |
| 9 | |
| 10 | |
| 11 | def _path_in_node_modules(*args): |
| 12 | return os_path.join(NODE_MODULES, *args) |
| 13 | |
| 14 | |
| 15 | def PathToBundler(): |
| 16 | return _path_in_node_modules('polymer-bundler', 'lib', 'bin', 'polymer-bundler') |
| 17 | |
| 18 | |
| 19 | def PathToCrisper(): |
| 20 | return _path_in_node_modules('crisper', 'bin', 'crisper') |
| 21 | |
| 22 | |
| 23 | def PathToEsLint(): |
| 24 | return _path_in_node_modules('eslint', 'bin', 'eslint') |
| 25 | |
| 26 | |
| 27 | def PathToPolymerCssBuild(): |
| 28 | return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build') |
| 29 | |
| 30 | |
| 31 | def PathToSvgo(): |
| 32 | return _path_in_node_modules('svgo', 'bin', 'svgo') |
| 33 | |
| 34 | |
| 35 | def PathToUglify(): |
| 36 | return _path_in_node_modules('uglify-es', 'bin', 'uglifyjs') |