cordis/makefile
2021-12-04 06:02:11 -06:00

50 lines
1.2 KiB
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
test:
node ./node_modules/ts-jest/cli.js
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:
mkdir -p ./dist
rm -r ./dist
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
create-example-roles:
node ./dist/server/scripts/example-roles.js
create-memes-messages:
node ./dist/server/scripts/insert-2000-memes-messages.js
full-reset: clean build move reset-server create-invite
start-server:
node ./dist/server/app.js
start-client:
./node_modules/.bin/electron ./dist/client/main.js