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

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

Issue 2648693002: nodejs: Add light python wrappers for running node and friends (Closed)
Patch Set: . Created 3 years, 11 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
« third_party/node/node.py ('K') | « third_party/node/node.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
9 NODE_MODULES = os_path.join(os_path.dirname(__file__), 'node_modules')
10
11
12 def _path_in_node_modules(*args):
13 return os_path.join(NODE_MODULES, *args)
14
15
16 def PathToVulcanize():
17 return _path_in_node_modules('vulcanize', 'bin', 'vulcanize')
18
19
20 def PathToCrisper():
21 return _path_in_node_modules('crisper', 'bin', 'crisper')
22
23
24 def PathToPolymerCssBuild():
25 return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build')
26
27
28 def PathToUglifyJs():
29 return _path_in_node_modules('uglifyjs', 'bin', 'uglifyjs')
OLDNEW
« third_party/node/node.py ('K') | « third_party/node/node.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698