unleash-server
v4.18.0-beta.4 unleash feature toggle feature toggle
lint
eslint ./src
test
NODE_ENV=test PORT=4243 jest
build
yarn run copy-templates && tsc --pretty
clean
del-cli --force dist
start
node ./dist/server.js
prepare
node scripts/husky-install && cd frontend && yarn && cd .. && yarn run build
prebuild
yarn run clean
start:dev
NODE_ENV=development tsc-watch --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 src/test/e2e/seed/segment.seed.ts
test:watch
yarn test --watch
build:watch
tsc -w
test:docker
./scripts/docker-postgres.sh
prestart:dev
yarn run clean
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
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