cordis/makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

2021-11-02 04:29:24 +00:00
watch-tsc:
./node_modules/.bin/tsc --watch -p ./src/tsconfig.json
2021-11-02 04:29:24 +00:00
watch-sass:
./node_modules/.bin/sass --watch ./src/client/webapp/styles/styles.scss ./dist/client/webapp/styles/styles.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
lint:
./node_modules/.bin/eslint ./src --ext .js,.jsx,.ts,.tsx
2021-11-02 04:29:24 +00:00
build-tsc:
./node_modules/.bin/tsc -p ./src/tsconfig.json
2021-11-02 04:29:24 +00:00
build-sass:
./node_modules/.bin/sass ./src/client/webapp/styles/styles.scss ./dist/client/webapp/styles/styles.css
2021-11-02 04:29:24 +00:00
build: lint build-tsc build-sass
2021-12-01 02:45:06 +00:00
test:
node ./node_modules/ts-jest/cli.js
2021-11-02 04:29:24 +00:00
move:
cp -r ./src/client/webapp/font ./dist/client/webapp/font
cp -r ./src/client/webapp/img ./dist/client/webapp/img
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:
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
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:
node ./dist/server/scripts/insert-2000-memes-messages.js
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