-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·53 lines (40 loc) · 1.21 KB
/
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
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
install:
yarn
make css
make webpack
make watch-css
build_stage:
make clean
yarn
make css
make webpack-dev
build_prod:
make clean
yarn
make css
make webpack-production
clean:
@rm -rf ./public/_css
@rm -rf ./public/_js
@rm -rf ./public/_fonts
@rm -rf ./public/_img
css:
@mkdir -p ./public/_css
node ./node_modules/.bin/node-sass ./assets/css -o ./public/_css
@node ./scripts/css.js --directory ./public/_css/**/*
start:
node ./node_modules/.bin/http-server public
watch-css:
@node ./scripts/watch.js "./assets/css/**/*"
webpack-dev:
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js
webpack:
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress
webpack-hot:
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot
webpack-production:
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js
storybook:
node ./node_modules/.bin/start-storybook -p 9001
storybook-static:
node ./node_modules/.bin/build-storybook -o ./public/storybook