add projects

This commit is contained in:
Clément
2018-09-21 13:29:45 +02:00
parent eadec476cc
commit 689e8009ed
34 changed files with 512 additions and 259 deletions

View File

@ -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