unleash-server
v5.1.0-beta.47 unleash feature toggle feature toggle
dev
concurrently "yarn:dev:backend" "yarn:dev:frontend"
lint
eslint ./src
test
NODE_ENV=test PORT=4243 jest
build
yarn run build:frontend && yarn run build:backend
clean
del-cli --force dist
start
TZ=UTC node ./dist/server.js
prepare
node scripts/husky-install && yarn --cwd ./frontend install
prebuild
yarn run clean
start:dev
TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess "node dist/server-dev.js"
test:unit
NODE_ENV=test PORT=4243 jest --testPathIgnorePatterns=src/test/e2e --testPathIgnorePatterns=dist
db-migrate
db-migrate --migrations-dir ./src/migrations
preversion
./scripts/check-release.sh
seed:serve
UNLEASH_DATABASE_NAME=unleash_test UNLEASH_DATABASE_SCHEMA=seed yarn run start:dev
seed:setup
ts-node --compilerOptions '{"strictNullChecks": false}' src/test/e2e/seed/segment.seed.ts
test:watch
yarn test --watch
build:watch
tsc -w --strictNullChecks false
dev:backend
TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess "node dist/server-dev.js"
test:docker
./scripts/docker-postgres.sh
dev:frontend
wait-on tcp:4242 && yarn --cwd ./frontend run dev
prestart:dev
yarn run clean
build:backend
copyfiles -u 1 src/mailtemplates/**/*.mustache dist/ && tsc --pretty --strictNullChecks false
local:package
del-cli --force build && mkdir build && cp -r dist docs CHANGELOG.md LICENSE README.md package.json build
test:coverage
NODE_ENV=test PORT=4243 jest --coverage --testLocationInResults --outputFile="coverage/report.json" --forceExit --testTimeout=10000
build:frontend
yarn --cwd ./frontend run build
copy-templates
copyfiles -u 1 src/mailtemplates/**/*.mustache dist/
prebuild:watch
yarn run clean
heroku-postbuild
cd frontend && yarn && yarn build
test:coverage:jest
NODE_ENV=test PORT=4243 jest --silent --ci --json --coverage --testLocationInResults --outputFile="report.json" --forceExit --testTimeout=10000
test:docker:cleanup
docker rm -f unleash-postgres
pretest:coverage:jest
yarn build:frontend