forked from vuejs/v2.vuejs.org
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
24 lines (21 loc) · 611 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
all: update
rm db.json
hexo generate
cp -R ./todomvc public/examples
cp -R ../vue/test/unit/lib/ public/unit/lib
cp ../vue/test/unit/runner.html public/unit/index.html
cp ../vue/test/unit/specs.js public/unit/specs.js
cp ../vue/test/unit/specs.js.map public/unit/specs.js.map
test:
npm test
deploy: all
hexo deploy
update:
cd ../vue && \
git checkout -- dist && \
git checkout master && \
grunt build && \
webpack --config build/webpack.test.config.js > /dev/null
cp ../vue/dist/vue.min.js themes/vue/source/js/vue.min.js
cp ../vue/dist/vue.js themes/vue/source/js/vue.js
node update.js