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

Unified Diff: third_party/polymer/v0_8/reproduce.sh

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also remove polymer/explainer Created 5 years, 8 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/polymer/v0_8/extract_inline_scripts.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/polymer/v0_8/reproduce.sh
diff --git a/third_party/polymer/v0_8/reproduce.sh b/third_party/polymer/v0_8/reproduce.sh
new file mode 100755
index 0000000000000000000000000000000000000000..5cae931054d1cb98e7df14cf6259ef55eb04dc42
--- /dev/null
+++ b/third_party/polymer/v0_8/reproduce.sh
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+# Copyright 2014 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.
+
+# Reproduces the content of 'components' and 'components-chromium' using the
+# list of dependencies from 'bower.json'. Downloads needed packages and makes
+# Chromium specific modifications. To launch the script you need 'bower',
+# 'crisper', and 'vulcanize' installed on your system.
+
+# IMPORTANT NOTE: The new vulcanize must be installed from
+# https://github.com/Polymer/vulcanize/releases since it isn't on npm yet.
+
+set -e
+
+cd "$(dirname "$0")"
+
+rm -rf components components-chromium
+
+bower install
+
+# These components are deprecated or needed only for demos.
+rm -rf components/{iron-component-page,webcomponentsjs}
+
+# Test and demo directories aren't needed.
+rm -rf components/*/{test,demo}
+rm -rf components/polymer/explainer
+
+# Make checkperms.py happy.
+find components/iron-selector -type f -exec chmod -x {} \;
+chmod +x components/polymer/build.bat
+
+# Remove carriage returns to make CQ happy.
+find components -type f \( -name \*.html -o -name \*.css -o -name \*.js\
+ -o -name \*.md -o -name \*.sh -o -name \*.json -o -name \*.gitignore \)\
+ -print0 | xargs -0 sed -i -e $'s/\r$//g'
+
+./extract_inline_scripts.sh components components-chromium
+
+# Actually fully vulcanize polymer.html to avoid needing to serve each file in
+# the library separately.
+vulcanize --inline-scripts components/polymer/polymer.html > components-chromium/polymer/polymer.html
+crisper --source components-chromium/polymer/polymer.html\
+ --html "components-chromium/polymer/polymer.html"\
+ --js "components-chromium/polymer/polymer.js"
« no previous file with comments | « third_party/polymer/v0_8/extract_inline_scripts.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698