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

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

Issue 1918333005: Add script to find unused Polymer elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pylint Created 4 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
Index: third_party/polymer/v1_0/reproduce.sh
diff --git a/third_party/polymer/v1_0/reproduce.sh b/third_party/polymer/v1_0/reproduce.sh
index 01b6cbf6b2d63c9d9307e38e2586fe90c35523d2..1b1feba846392ff966dc5d456fd8a6b46af36f78 100755
--- a/third_party/polymer/v1_0/reproduce.sh
+++ b/third_party/polymer/v1_0/reproduce.sh
@@ -21,12 +21,13 @@ check_dep() {
check_dep "which npm" "npm" "visiting https://nodejs.org/en/"
check_dep "which bower" "bower" "npm install -g bower"
check_dep "which crisper" "crisper" "npm install -g crisper"
+check_dep "which uglifyjs" "uglifyjs" "npm install -g uglifyjs"
check_dep "which rsync" "rsync" "apt-get install rsync"
check_dep "python -c 'import bs4'" "bs4" "apt-get install python-bs4"
set -e
-cd "$(dirname "$0")"
+pushd "$(dirname "$0")" > /dev/null
rm -rf components
rm -rf ../../web-animations-js/sources
@@ -105,3 +106,8 @@ echo 'Creating GYP files for interfaces and externs...'
echo 'Vulcanizing dependent UIs (i.e. downloads)...'
python ../../../chrome/browser/resources/md_downloads/vulcanize.py
+
+popd > /dev/null
+
+echo 'Searching for unused elements...'
+"$(dirname "$0")"/find_unused_elements.py

Powered by Google App Engine
This is Rietveld 408576698