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

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

Issue 2921793002: WebUI: Replace uglifyjs with uglify-es which understands ES6. (Closed)
Patch Set: Resolve conflicts. Created 3 years, 6 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 | « chrome/browser/resources/vulcanize_gn.py ('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 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')
OLDNEW
« no previous file with comments | « chrome/browser/resources/vulcanize_gn.py ('k') | third_party/node/node_modules.tar.gz.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698