Skip to content

Commit fd821d0

Browse files
committed
build -> deploy
1 parent 31ac464 commit fd821d0

File tree

7 files changed

+35
-37
lines changed

7 files changed

+35
-37
lines changed

.travis.yml

+13-17
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,16 @@ before_install:
3232
script:
3333
- export root=$(pwd)
3434

35-
# eventbus
36-
- cd ${root}/refs-work-natively-with-DOM-elements
37-
- yarn -i
38-
- yarn prebuild
39-
40-
# eventbus
41-
- cd ${root}/eventbus
42-
- yarn -i
43-
- yarn prebuild
44-
45-
# vue-parcel
46-
- cd ${root}/vue-parcel
47-
- yarn -i
48-
- yarn build
35+
- >
36+
for path in \
37+
refs-work-natively-with-DOM-elements \
38+
eventbus \
39+
vue-parcel \
40+
; do
41+
cd ${root}/${path}
42+
yarn -i
43+
yarn predeploy
44+
done
4945
5046
# others
5147
# - >
@@ -64,14 +60,14 @@ script:
6460
# 02-todo-list \
6561
# 01-hello-world \
6662
# 0-template; do
67-
#
63+
#
6864
# cd ${root}/${path};
69-
#
65+
#
7066
# yarn install;
7167
# yarn predeploy;
7268
# if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
7369
# yarn build --report
74-
#
70+
#
7571
# done;
7672

7773
cache:

eventbus/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
``` bash
66
yarn -i
77
yarn start
8-
yarn build # gh-pages deployment
8+
yarn deploy # gh-pages deployment
99
```
1010

1111
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

eventbus/package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
"scripts": {
99
"clean": "rimraf -rf ./dist",
1010
"start": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
11-
"prebuild": "npm-run-all prebuild:*",
12-
"prebuild:clean": "yarn clean",
13-
"prebuild:build": "node build/build.js",
14-
"prebuild:fallback": "ncp ./dist/index.html ./dist/404.html",
15-
"prebuild:nojekyll": "touch ./dist/.nojekyll",
16-
"build": "gh-pages -d ./dist -b gh-pages -m \"Parcel Github Pages $(date +%Y-%m-%d) deployment\""
11+
"build": "node build/build.js",
12+
"predeploy": "npm-run-all predeploy:*",
13+
"predeploy:clean": "yarn clean",
14+
"predeploy:build": "yarn build",
15+
"predeploy:fallback": "ncp ./dist/index.html ./dist/404.html",
16+
"predeploy:nojekyll": "touch ./dist/.nojekyll",
17+
"deploy": "gh-pages -d ./dist -b gh-pages -m \"Parcel Github Pages $(date +%Y-%m-%d) deployment\""
1718
},
1819
"dependencies": {
1920
"hammerjs": "2.0.8",

refs-work-natively-with-DOM-elements/ deploy

Whitespace-only changes.

refs-work-natively-with-DOM-elements/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
``` bash
66
yarn -i
77
yarn start
8-
yarn build # gh-pages deployment
8+
yarn deploy # gh-pages deployment
99
```
1010

1111
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

refs-work-natively-with-DOM-elements/package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
"scripts": {
99
"clean": "rimraf -rf ./dist",
1010
"start": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
11-
"prebuild": "npm-run-all prebuild:*",
12-
"prebuild:clean": "yarn clean",
13-
"prebuild:build": "node build/build.js",
14-
"prebuild:fallback": "ncp ./dist/index.html ./dist/404.html",
15-
"prebuild:nojekyll": "touch ./dist/.nojekyll",
16-
"build": "gh-pages -d ./dist -b gh-pages -m \"Parcel Github Pages $(date +%Y-%m-%d) deployment\""
11+
"build": "node build/build.js",
12+
"predeploy": "npm-run-all predeploy:*",
13+
"predeploy:clean": "yarn clean",
14+
"predeploy:build": "yarn build",
15+
"predeploy:fallback": "ncp ./dist/index.html ./dist/404.html",
16+
"predeploy:nojekyll": "touch ./dist/.nojekyll",
17+
"deploy": "gh-pages -d ./dist -b gh-pages -m \"Parcel Github Pages $(date +%Y-%m-%d) deployment\""
1718
},
1819
"dependencies": {
1920
"hammerjs": "2.0.8",

vue-parcel/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"start": "parcel ./app/index.html",
1919
"prebuild": "yarn -i || npm i --no-optional",
2020
"build": "parcel build ./app/index.html",
21-
"preghpages": "npm-run-all preghpages:*",
22-
"preghpages:clean": "rimraf -rf ./dist",
23-
"preghpages:build": "parcel build ./app/index.html --no-cache --public-url='/vue-examples/'",
24-
"preghpages:fallback": "ncp ./dist/index.html ./dist/404.html",
25-
"preghpages:nojekyll": "touch ./dist/.nojekyll",
26-
"ghpages": "gh-pages -d ./dist -b gh-pages -m \"Parcel Github Pages $(date +%Y-%m-%d) deployment\""
21+
"prepredeploy": "npm-run-all prepredeploy:*",
22+
"prepredeploy:clean": "rimraf -rf ./dist",
23+
"prepredeploy:build": "parcel build ./app/index.html --no-cache --public-url='/vue-examples/'",
24+
"prepredeploy:fallback": "ncp ./dist/index.html ./dist/404.html",
25+
"prepredeploy:nojekyll": "touch ./dist/.nojekyll",
26+
"predeploy": "gh-pages -d ./dist -b gh-pages -m \"Parcel Github Pages $(date +%Y-%m-%d) deployment\""
2727
},
2828
"babel": {
2929
"presets": [

0 commit comments

Comments
 (0)