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

Unified Diff: third_party/node/node_modules.py

Issue 2569283002: WebUI: Add GN rules for Vulcanize. (Closed)
Patch Set: Rename 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
« third_party/node/node.py ('K') | « 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..e04bc94961601a1b57b56f0e28a932109932a074
--- /dev/null
+++ b/third_party/node/node_modules.py
@@ -0,0 +1,30 @@
+#!/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.
+
+import os
Dan Beam 2017/01/20 01:03:08 same nit
dpapad 2017/01/20 01:51:51 Done.
+
+_THIRD_PARTY_NODE_DIR = os.path.join(os.path.dirname(__file__))
+_THIRD_PARTY_NODE_MODULES_DIR = os.path.join(
+ _THIRD_PARTY_NODE_DIR, 'node_modules')
+
Dan Beam 2017/01/20 01:03:08 i'm not super duper familiar with this, but I THIN
dpapad 2017/01/20 01:51:51 Done, it seems to work.
+def get_vulcanize_binary():
+ return os.path.abspath(os.path.join(
+ _THIRD_PARTY_NODE_MODULES_DIR, 'vulcanize', 'bin', 'vulcanize'));
Dan Beam 2017/01/20 01:03:08 return _get_binary('vulcanize', 'bin', 'vulcanize'
dpapad 2017/01/20 01:51:51 Done.
+
+def get_crisper_binary():
+ return os.path.abspath(os.path.join(
+ _THIRD_PARTY_NODE_MODULES_DIR, 'crisper', 'bin', 'crisper'));
+
+def get_polymer_css_build_binary():
+ return os.path.abspath(os.path.join(
+ _THIRD_PARTY_NODE_MODULES_DIR,
+ 'polymer-css-build', 'bin', 'polymer-css-build'));
+
+def get_uglifyjs_binary():
+ return os.path.abspath(os.path.join(
+ _THIRD_PARTY_NODE_MODULES_DIR, 'uglifyjs', 'bin', 'uglifyjs'));
+
+if __name__ == '__main__':
+ pass
Dan Beam 2017/01/20 01:03:08 delete
dpapad 2017/01/20 01:51:50 Deleted.
« 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