add projects
This commit is contained in:
14
Makefile
14
Makefile
@ -1,7 +1,7 @@
|
||||
default: build
|
||||
|
||||
config.pug:
|
||||
cp config-sample.pug config.pug
|
||||
cp -n config-sample.pug config.pug
|
||||
|
||||
node_modules:
|
||||
npm install
|
||||
@ -9,11 +9,19 @@ node_modules:
|
||||
install: node_modules
|
||||
git submodule update --init --recursive
|
||||
|
||||
update:
|
||||
cd dist/lib/sib-chat; \
|
||||
git pull origin master
|
||||
cd dist/lib/sib-core; \
|
||||
git pull origin master
|
||||
cd dist/lib/sib-router; \
|
||||
git pull origin master
|
||||
|
||||
dist/css/hd-app.css: $(wildcard src/scss/*.scss)
|
||||
npx node-sass src/scss/main.scss dist/css/hd-app.css --source-map true
|
||||
npx node-sass src/scss/main.scss dist/css/hd-app.css --source-map true || touch dist/css/hd-app.css
|
||||
|
||||
index.html: config.pug index.pug $(wildcard src/pug/*.pug)
|
||||
npx pug --pretty index.pug
|
||||
npx pug --pretty index.pug || touch index.html
|
||||
|
||||
build: index.html dist/css/hd-app.css
|
||||
|
||||
|
Reference in New Issue
Block a user