use sample files

This commit is contained in:
Clément
2018-10-05 13:07:14 +02:00
parent 3fa8602e2c
commit c1456a5b63
7 changed files with 26 additions and 8 deletions

View File

@ -10,7 +10,7 @@ clean:
git clean -fXd
install: node_modules copy_lib submodules
install: node_modules copy_lib copy_samples submodules
submodules:
git submodule init
@ -37,6 +37,11 @@ node_modules:
copy_lib:
@node copy_lib.js
# sample
copy_samples:
@cp -n src/config.sample.pug src/config.pug
@cp -n www/oidc-client-config.sample.json www/oidc-client-config.json
# pug
$(DIST_DIR)/index.html: src/index.pug $(wildcard src/*.pug src/*/*.pug)
@echo pug: $< ➜ $@
@ -56,4 +61,4 @@ $(DIST_DIR)/%.js: src/%.js
sync:
rsync -rv www/* staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/
.PHONY: default install submodules copy_lib build watch serve clean
.PHONY: default install submodules copy_lib copy_samples build watch serve clean