unleash-server
v6.3.0 unleash feature toggle feature toggle feature flag flag
start
TZ=UTC node ./dist/server.js
copy-templates
copyfiles -u 1 src/mailtemplates/**/*.mustache dist/
build:backend
tsc --pretty --strictNullChecks false
build:frontend
yarn --cwd ./frontend run build
build:frontend:if-needed
./scripts/build-frontend-if-needed.sh
build
yarn run clean && concurrently "yarn:copy-templates" "yarn:build:frontend" "yarn:build:backend"
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:backend
concurrently "yarn:copy-templates" "yarn:build:backend"
start:dev
yarn run clean && TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess "node dist/server-dev.js"
db-migrate
db-migrate --migrations-dir ./src/migrations
lint
biome check .
lint:fix
biome check . --write
local:package
del-cli --force build && mkdir build && cp -r dist docs CHANGELOG.md LICENSE README.md package.json build
build:watch
yarn run clean && tsc -w --strictNullChecks false
prepare
husky && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi
test
NODE_ENV=test PORT=4243 node --trace-warnings node_modules/.bin/jest
test:unit
NODE_ENV=test PORT=4243 jest --testPathIgnorePatterns=src/test/e2e --testPathIgnorePatterns=dist
test:docker
./scripts/docker-postgres.sh
test:report
NODE_ENV=test PORT=4243 jest --reporters="default" --reporters="jest-junit"
test:docker:cleanup
docker rm -f unleash-postgres
test:watch
yarn test --watch
test:coverage
NODE_ENV=test PORT=4243 jest --coverage --testLocationInResults --outputFile="coverage/report.json" --forceExit --testTimeout=10000
test:coverage:jest
NODE_ENV=test PORT=4243 jest --silent --ci --json --coverage --testLocationInResults --outputFile="report.json" --forceExit --testTimeout=10000
test:updateSnapshot
NODE_ENV=test PORT=4243 jest --updateSnapshot --testTimeout=10000
seed:setup
ts-node --compilerOptions '{"strictNullChecks": false}' src/test/e2e/seed/segment.seed.ts
seed:serve
UNLEASH_DATABASE_NAME=unleash_test UNLEASH_DATABASE_SCHEMA=seed yarn run start:dev
clean
del-cli --force dist
preversion
./scripts/check-release.sh
heroku-postbuild
cd frontend && yarn && yarn build
prepack
./scripts/prepack.sh
schema:update
node ./.husky/update-openapi-spec-list.js