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

Unified Diff: pkg/polymer/lib/elements/web-animations-js/run-lint.sh

Issue 175443005: [polymer] import all elements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated from bower Created 6 years, 10 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
Index: pkg/polymer/lib/elements/web-animations-js/run-lint.sh
diff --git a/pkg/polymer/lib/elements/web-animations-js/run-lint.sh b/pkg/polymer/lib/elements/web-animations-js/run-lint.sh
new file mode 100755
index 0000000000000000000000000000000000000000..70abb68c6a7311be6d41b6d02fe0cb2d09e6fb39
--- /dev/null
+++ b/pkg/polymer/lib/elements/web-animations-js/run-lint.sh
@@ -0,0 +1,19 @@
+#! /bin/bash
+
+# Update git submodules
+git submodule init
+git submodule update
+
+# If already in a VIRTUAL_ENV assume the person knows what they are doing,
+# otherwise set up a python virtualenv with all the needed requirements.
+if [ x$VIRTUAL_ENV == x"" ]; then
+ cd tools/python
+ source setup.sh
+ cd ../..
+fi
+
+# Comment out the (function() {} ) wrapper
+sed -e'17s-^-//-' -e'$s-^-//-' web-animations.js > web-animations-4lint.js
+
+gjslint --summary --nojsdoc --strict web-animations-4lint.js
+exit $?
« no previous file with comments | « pkg/polymer/lib/elements/web-animations-js/README.md ('k') | pkg/polymer/lib/elements/web-animations-js/run-tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698