2021-11-02 04:29:24 +00:00
|
|
|
watch-tsc:
|
2021-12-04 15:49:47 +00:00
|
|
|
./node_modules/.bin/tsc --watch -p ./src/tsconfig.json
|
2021-11-02 04:29:24 +00:00
|
|
|
|
|
|
|
watch-sass:
|
2021-12-31 01:34:18 +00:00
|
|
|
./node_modules/.bin/sass --watch ./src/client/webapp/index.scss ./dist/client/webapp/index.css
|
2021-10-30 17:26:41 +00:00
|
|
|
|
2021-12-14 00:29:20 +00:00
|
|
|
lint-autofix:
|
|
|
|
./node_modules/.bin/eslint ./src --ext .js,.jsx,.ts,.tsx --fix
|
|
|
|
|
2021-12-04 15:49:47 +00:00
|
|
|
lint:
|
|
|
|
./node_modules/.bin/eslint ./src --ext .js,.jsx,.ts,.tsx
|
|
|
|
|
2021-11-02 04:29:24 +00:00
|
|
|
build-tsc:
|
2021-12-04 14:59:30 +00:00
|
|
|
./node_modules/.bin/tsc -p ./src/tsconfig.json
|
2021-11-02 04:29:24 +00:00
|
|
|
|
|
|
|
build-sass:
|
2022-01-02 03:31:22 +00:00
|
|
|
./node_modules/.bin/sass ./src/client/webapp/index.scss ./dist/client/webapp/index.css
|
2021-11-02 04:29:24 +00:00
|
|
|
|
2021-12-04 15:49:47 +00:00
|
|
|
build: lint build-tsc build-sass
|
2021-12-04 14:59:30 +00:00
|
|
|
|
2021-12-01 02:45:06 +00:00
|
|
|
test:
|
2022-10-05 03:56:35 +00:00
|
|
|
npx jest --config src/jest.config.ts
|
|
|
|
cp ./node_modules/nyc-dark/*.css ./src/coverage/lcov-report/
|
2021-12-01 02:45:06 +00:00
|
|
|
|
2021-11-02 04:29:24 +00:00
|
|
|
move:
|
2022-01-02 17:36:52 +00:00
|
|
|
mkdir -p ./dist/client/webapp/font
|
|
|
|
mkdir -p ./dist/client/webapp/img
|
2021-12-27 04:09:55 +00:00
|
|
|
cp -r ./src/client/webapp/font/* ./dist/client/webapp/font
|
|
|
|
cp -r ./src/client/webapp/img/* ./dist/client/webapp/img
|
2021-12-04 14:59:30 +00:00
|
|
|
cp ./src/client/webapp/index.html ./dist/client/webapp/index.html
|
|
|
|
cp -r ./src/server/scripts/resources ./dist/server/scripts/resources
|
|
|
|
cp -r ./src/server/ssl ./dist/server/ssl
|
2021-11-02 04:29:24 +00:00
|
|
|
mkdir -p ./dist/server/invites
|
|
|
|
|
|
|
|
clean:
|
2021-11-08 00:37:46 +00:00
|
|
|
mkdir -p ./dist
|
2021-12-09 05:55:05 +00:00
|
|
|
rm -r ./dist || true
|
|
|
|
rm -r ./db || true
|
2021-11-02 04:29:24 +00:00
|
|
|
|
2021-10-30 17:26:41 +00:00
|
|
|
reset-server:
|
2021-12-04 14:59:30 +00:00
|
|
|
psql postgres postgres < ./src/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
|
|
|
|
2022-06-25 15:18:31 +00:00
|
|
|
create-invite-heaven:
|
|
|
|
node ./dist/server/scripts/create-cordis-file.js 'Literally Heaven' '7 days' './invites/literally-heaven.cordis'
|
|
|
|
|
2021-12-04 12:02:11 +00:00
|
|
|
create-example-roles:
|
2021-12-04 00:47:33 +00:00
|
|
|
node ./dist/server/scripts/example-roles.js
|
|
|
|
|
|
|
|
create-memes-messages:
|
2023-01-14 23:03:16 +00:00
|
|
|
node ./dist/server/scripts/insert-500-memes-messages.js
|
2021-12-04 00:47:33 +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
|