-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a949111
commit 4f9fcb3
Showing
1 changed file
with
21 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,21 +42,21 @@ rm -rf css | |
rm -rf sass | ||
rm -rf scripts | ||
rm -rf test | ||
rm *.html | ||
rm *.json | ||
rm *.enc | ||
rm *.js | ||
rm *.png | ||
rm *.lock | ||
rm *.ico | ||
rm *.md | ||
rm *.pdf | ||
rm -f *.html | ||
rm -f *.json | ||
rm -f *.enc | ||
rm -f *.js | ||
rm -f *.png | ||
rm -f *.lock | ||
rm -f *.ico | ||
rm -f *.md | ||
rm -f *.pdf | ||
yes | rm .travis.yml | ||
rm .bowerrc | ||
rm .editorconfig | ||
rm -f .bowerrc | ||
rm -f .editorconfig | ||
rm -rf .github | ||
rm .gitignore | ||
rm .jshintrc | ||
rm -f .gitignore | ||
rm -f .jshintrc | ||
|
||
# force installation of bower packages at the root | ||
echo "{ \"directory\": \".\" }" > .bowerrc | ||
|
@@ -79,7 +79,7 @@ echo ${meta_temp/'COMPONENT_NAME'/$REPO_NAME} > index.html | |
npm install bower -g | ||
bower cache clean | ||
# Install the repo and the dark-theme. | ||
bower install ${REPO_NAME} px-dark-theme | ||
bower install ${REPO_NAME} px-dark-theme px-dark-demo-theme --force-latest | ||
|
||
#copy the bower file into our root | ||
yes | cp ${REPO_NAME}/bower.json bower.json | ||
|
@@ -92,13 +92,7 @@ bower install | |
# ------------------------------------------------------------------------------ | ||
|
||
# Go into the component folder we've just installed from bower | ||
cd ${REPO_NAME} | ||
|
||
# @DARK_THEME: Copy `index.html` to new file, where we will add dark theme | ||
yes | cp index.html index-dark.html | ||
|
||
# @DARK_THEME: Import dark-theme on the `index-dark.html` page | ||
sed 's/px-theme\/px-theme-styles.html/px-dark-theme\/px-dark-theme-styles.html/g;' index-dark.html | ||
# cd ${REPO_NAME} | ||
|
||
# ------------------------------------------------------------------------------ | ||
# SW-PRECACHE | ||
|
@@ -112,15 +106,17 @@ sed 's/px-theme\/px-theme-styles.html/px-dark-theme\/px-dark-theme-styles.html/g | |
# ------------------------------------------------------------------------------ | ||
|
||
# Remember to exit out of the component before we do any git stuff | ||
cd ../ | ||
# cd ../ | ||
|
||
# Do the git stuff | ||
|
||
# checkout a new orphan | ||
git checkout --orphan $TARGET_BRANCH | ||
|
||
git add -A . | ||
git commit -m "${GIT_COMMIT_MESSAGE}" | ||
git add -A . > /dev/null | ||
echo "git add done" | ||
git commit -m "${GIT_COMMIT_MESSAGE}" --quiet | ||
echo "git commit done" | ||
|
||
# Set git credentials (defined in settings above) | ||
git config user.name ${GIT_USER_NAME} | ||
|
@@ -149,4 +145,4 @@ git push $SSH_GIT_PREDIXUI $TARGET_BRANCH --force | |
|
||
sleep 120s | ||
|
||
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${cloudflare_zone_identifier}/purge_cache" -H "X-Auth-Email: [email protected]" -H "X-Auth-Key: ${cloudflare}" -H "Content-Type: application/json" --data '{"purge_everything":true}' | ||
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${cloudflare_zone_identifier}/purge_cache" -H "X-Auth-Email: [email protected]" -H "X-Auth-Key: ${cloudflare}" -H "Content-Type: application/json" --data '{"purge_everything":true}' |