1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Build is now working

This commit is contained in:
sjaanus 2022-08-24 12:48:52 +00:00
parent a4b3f9e70c
commit 7e4f969f36
3 changed files with 8 additions and 5 deletions

View File

@ -9,3 +9,4 @@
!CHANGELOG.md !CHANGELOG.md
!LICENSE !LICENSE
!README.md !README.md
!frontend

View File

@ -31,7 +31,6 @@
"start:enterprise": "UNLEASH_API=https://unleash4.herokuapp.com yarn run start", "start:enterprise": "UNLEASH_API=https://unleash4.herokuapp.com yarn run start",
"start:demo": "UNLEASH_BASE_PATH=/demo/ yarn start", "start:demo": "UNLEASH_BASE_PATH=/demo/ yarn start",
"test": "vitest", "test": "vitest",
"prepare": "yarn run build",
"fmt": "prettier src --write --loglevel warn", "fmt": "prettier src --write --loglevel warn",
"fmt:check": "prettier src --check", "fmt:check": "prettier src --check",
"e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all", "e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",

View File

@ -10,7 +10,8 @@
], ],
"files": [ "files": [
"dist", "dist",
"docs" "docs",
"frontend/build"
], ],
"repository": { "repository": {
"type": "git", "type": "git",
@ -32,12 +33,14 @@
"copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/", "copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/",
"db-migrate": "db-migrate --migrations-dir ./src/migrations", "db-migrate": "db-migrate --migrations-dir ./src/migrations",
"lint": "eslint ./src", "lint": "eslint ./src",
"local:package": "del-cli --force build && mkdir build && cp -r dist docs CHANGELOG.md LICENSE README.md package.json build", "local:package": "del-cli --force build && mkdir build && cp -r dist docs CHANGELOG.md LICENSE README.md package.json build && mkdir -p build/frontend && cp -r frontend/build build/frontend",
"prebuild:watch": "yarn run clean", "prebuild:watch": "yarn run clean",
"build:watch": "tsc -w", "build:watch": "tsc -w",
"prebuild": "yarn run clean", "prebuild": "yarn run clean",
"build": "yarn run copy-templates && tsc --pretty", "build": "yarn build:frontend && yarn build:backend",
"prepare": "node scripts/husky-install && yarn run build", "build:backend": "yarn run copy-templates && tsc --pretty",
"build:frontend": "cd frontend && yarn build",
"prepare": "node scripts/husky-install && yarn run build && yarn build:frontend",
"test": "NODE_ENV=test PORT=4243 jest", "test": "NODE_ENV=test PORT=4243 jest",
"test:unit": "NODE_ENV=test PORT=4243 jest --testPathIgnorePatterns=src/test/e2e/**", "test:unit": "NODE_ENV=test PORT=4243 jest --testPathIgnorePatterns=src/test/e2e/**",
"test:docker": "./scripts/docker-postgres.sh", "test:docker": "./scripts/docker-postgres.sh",