forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·64 lines (52 loc) · 1.98 KB
/
release.sh
File metadata and controls
executable file
·64 lines (52 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#
# Preps a release. Updates submodules, components, polyfills, and projects.
#
# Note: run from the root of the docs folder.
#
# Copyright 2014 Eric Bidelman <@ebidel>
# SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECTS_DIR=./polymer-all/projects
DESIGNER_DIR=$PROJECTS_DIR/designer
TOPEKA_DIR=../topeka
TUTORIAL_DIR=../polymer-tutorial/finished
#COMPONENTS_DIR=../../components
#COMPONENTS_DIR=../../../
# Update submodules =====
echo "=== Updating: submodules ==="
git submodule foreach git pull origin master
# Update site's bower_components deps. These get installed to /js/bower_components.
bower update
# Update components and polyfills folder =====
echo "=== Updating: components, polymer, polyfills, projects, and labs ==="
./polymer-all/tools/bin/pull-all.sh ./polymer-all/tools/repo-configs/deprecated.json ./scripts/website.json
rm -rf polymer-all/projects/
mv projects/ polymer-all/
cp -R js/bower_components/highlightjs/ components/highlightjs
cp -R js/bower_components/marked/ components/marked
cp -R js/bower_components/plunker-button/ components/plunker-button
cp -R js/bower_components/native-promise-only/ components/native-promise-only
# Update topeka =====
cd js/bower_components/topeka
bower install --config.directory=components
vulcanize --inline --strip index.html -o build.html
rm -rf components # cleanup
cd ../../../
rm -rf polymer-all/projects/topeka/
mv js/bower_components/topeka ./polymer-all/projects/
# Update designer =====
cd $DESIGNER_DIR
echo "=== Updating designer ==="
rm -rf components # If bower components dir exists, script hangs. Remove it first.
bower install
## Update topeka =====
#cd $TOPEKA_DIR
#echo "=== Updating Topeka ==="
#rm -rf components # If bower components dir exists, script hangs. Remove it first.
#bower install
#vulcanize --inline --strip index.html -o build.html
#rm -rf components # cleanup
# Update tutorial
cd $TUTORIAL_DIR
echo "=== Updating tutorial ==="
vulcanize --inline --strip index.html -o build.html