Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1370)

Side by Side Diff: third_party/node/node_modules.py

Issue 2936333002: WebUI: Replace vulcanize with polymer-bundler (Closed)
Patch Set: Address comments. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/node/chromium_vulcanize.patch ('k') | third_party/node/node_modules.tar.gz.sha1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 PathToBundler():
17 return _path_in_node_modules('vulcanize', 'bin', 'vulcanize') 17 return _path_in_node_modules(
18 'polymer-bundler', 'lib', 'bin', 'polymer-bundler')
18 19
19 20
20 def PathToCrisper(): 21 def PathToCrisper():
21 return _path_in_node_modules('crisper', 'bin', 'crisper') 22 return _path_in_node_modules('crisper', 'bin', 'crisper')
22 23
23 24
24 def PathToPolymerCssBuild(): 25 def PathToPolymerCssBuild():
25 return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build') 26 return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build')
26 27
27 28
28 def PathToUglify(): 29 def PathToUglify():
29 return _path_in_node_modules('uglify-es', 'bin', 'uglifyjs') 30 return _path_in_node_modules('uglify-es', 'bin', 'uglifyjs')
30 31
31 32
32 def PathToEsLint(): 33 def PathToEsLint():
33 return _path_in_node_modules('eslint', 'bin', 'eslint') 34 return _path_in_node_modules('eslint', 'bin', 'eslint')
OLDNEW
« no previous file with comments | « third_party/node/chromium_vulcanize.patch ('k') | third_party/node/node_modules.tar.gz.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698