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

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

Issue 2638383006: WebUI: Add helper scripts for referring to node and node_modules paths. (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
« no previous file with comments | « 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 2017 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 _THIRD_PARTY_NODE_DIR = os_path.join(os_path.dirname(__file__))
10
11
12 _THIRD_PARTY_NODE_MODULES_DIR = os_path.join(
13 _THIRD_PARTY_NODE_DIR, 'node_modules')
14
15 def _get_binary(*args):
16 return os_path.join(_THIRD_PARTY_NODE_MODULES_DIR, *args)
17
18 def get_vulcanize_binary():
19 return _get_binary('vulcanize', 'bin', 'vulcanize')
20
21 def get_crisper_binary():
22 return _get_binary('crisper', 'bin', 'crisper')
23
24 def get_polymer_css_build_binary():
25 return _get_binary('polymer-css-build', 'bin', 'polymer-css-build')
26
27 def get_uglifyjs_binary():
28 return _get_binary('uglifyjs', 'bin', 'uglifyjs')
OLDNEW
« no previous file with comments | « third_party/node/node.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698