2021-11-02 04:29:24 +00:00
|
|
|
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
|
2021-10-30 17:26:41 +00:00
|
|
|
|
2021-11-02 04:29:24 +00:00
|
|
|
build-tsc:
|
2021-10-30 17:26:41 +00:00
|
|
|
./node_modules/.bin/tsc
|
2021-11-02 04:29:24 +00:00
|
|
|
|
|
|
|
build-sass:
|
2021-10-31 19:02:26 +00:00
|
|
|
./node_modules/.bin/sass ./client/webapp/styles/styles.scss ./dist/client/webapp/styles/styles.css
|
2021-11-02 04:29:24 +00:00
|
|
|
|
|
|
|
build: build-tsc build-sass
|
|
|
|
|
|
|
|
move:
|
2021-10-30 17:26:41 +00:00
|
|
|
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
|
2021-11-02 04:29:24 +00:00
|
|
|
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
|
|
|
|
|
2021-10-30 17:26:41 +00:00
|
|
|
reset-server:
|
|
|
|
psql postgres postgres < ./server/sql/init.sql
|
2021-11-02 04:29:24 +00:00
|
|
|
node ./dist/server/scripts/setup-test-servers.js
|
|
|
|
|
|
|
|
create-invite:
|
|
|
|
node ./dist/server/scripts/create-cordis-file.js
|
2021-10-30 17:26:41 +00:00
|
|
|
|
2021-11-05 00:30:30 +00:00
|
|
|
full-reset: clean build move reset-server create-invite
|
|
|
|
|
2021-10-30 17:26:41 +00:00
|
|
|
start-server:
|
2021-11-02 04:29:24 +00:00
|
|
|
node ./dist/server/app.js
|
2021-10-30 17:26:41 +00:00
|
|
|
|
|
|
|
start-client:
|
|
|
|
./node_modules/.bin/electron ./dist/client/main.js
|