1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Test build on prepare (#3774)

## About the changes
Re-adding build as part of prepare plus some debug logs for development
process (will be removed later)
This commit is contained in:
Gastón Fournier 2023-05-15 14:15:40 +02:00 committed by GitHub
parent 64c0093bed
commit 37e908a455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,13 +31,13 @@
"main": "./dist/lib/server-impl.js",
"scripts": {
"start": "TZ=UTC node ./dist/server.js",
"build:backend": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/ && tsc --pretty --strictNullChecks false",
"build:frontend": "yarn --cwd ./frontend run build",
"build": "yarn run build:frontend && yarn run build:backend",
"build:backend": "echo BUILD-BACKEND && copyfiles -u 1 src/mailtemplates/**/*.mustache dist/ && tsc --pretty --strictNullChecks false && echo DONE_BUILD_BACKEND",
"build:frontend": "echo BUILD-FRONTEND && yarn --cwd ./frontend run build && echo DONE_BUILD_FRONTEND",
"build": "echo BUILD && yarn run build:frontend && yarn run build:backend && echo DONE_BUILD",
"dev:backend": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"",
"dev:frontend": "wait-on tcp:4242 && yarn --cwd ./frontend run dev",
"dev": "concurrently \"yarn:dev:backend\" \"yarn:dev:frontend\"",
"prepare": "node scripts/husky-install && yarn --cwd ./frontend install",
"prepare": "echo PREPARE && node scripts/husky-install && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi && echo DONE_PREPARE",
"prestart:dev": "yarn run clean",
"start:dev": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"",
"copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/",