cordis/makefile
2021-11-01 23:29:24 -05:00

40 lines
997 B
Makefile

watch-tsc:
./node_modules/.bin/tsc --watch
watch-sass:
./node_modules/.bin/sass --watch ./client/webapp/styles/styles.scss ./dist/client/webapp/styles/styles.css
build-tsc:
./node_modules/.bin/tsc
build-sass:
./node_modules/.bin/sass ./client/webapp/styles/styles.scss ./dist/client/webapp/styles/styles.css
build: build-tsc build-sass
move:
cp -r ./client/webapp/font ./dist/client/webapp/font
cp -r ./client/webapp/img ./dist/client/webapp/img
cp ./client/webapp/index.html ./dist/client/webapp/index.html
cp -r ./server/scripts/resources ./dist/server/scripts/resources
cp -r ./server/ssl ./dist/server/ssl
mkdir -p ./dist/server/invites
clean:
rm -r ./dist
clean-build: clean full-build
reset-server:
psql postgres postgres < ./server/sql/init.sql
node ./dist/server/scripts/setup-test-servers.js
create-invite:
node ./dist/server/scripts/create-cordis-file.js
start-server:
node ./dist/server/app.js
start-client:
./node_modules/.bin/electron ./dist/client/main.js