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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/node/node.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/node/node_modules.py
diff --git a/third_party/node/node_modules.py b/third_party/node/node_modules.py
new file mode 100755
index 0000000000000000000000000000000000000000..9f30711cafbd6c9c646e985e7f7a0c5668db87fc
--- /dev/null
+++ b/third_party/node/node_modules.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from os import path as os_path
+
+
+NODE_MODULES = os_path.join(os_path.dirname(__file__), 'node_modules')
+
+
+def _path_in_node_modules(*args):
+ return os_path.join(NODE_MODULES, *args)
+
+
+def PathToVulcanize():
+ return _path_in_node_modules('vulcanize', 'bin', 'vulcanize')
+
+
+def PathToCrisper():
+ return _path_in_node_modules('crisper', 'bin', 'crisper')
+
+
+def PathToPolymerCssBuild():
+ return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build')
+
+
+def PathToUglifyJs():
+ return _path_in_node_modules('uglifyjs', 'bin', 'uglifyjs')
« 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