unleash-server

v5.8.1
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
unleash feature toggle feature toggle

dev

concurrently "yarn:dev:backend" "yarn:dev:frontend"

lint

biome check .

test

NODE_ENV=test PORT=4243 jest

build

concurrently "yarn:copy-templates" "yarn:build:frontend" "yarn:build:backend"

clean

del-cli --force dist

start

TZ=UTC node ./dist/server.js

prepare

node scripts/husky-install && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi

lint:fix

biome check . --apply

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

test:report

NODE_ENV=test PORT=4243 jest --reporters="default" --reporters="jest-junit"

dev:frontend

wait-on tcp:4242 && yarn --cwd ./frontend run dev

prestart:dev

yarn run clean

build:backend

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

prepare:backend

concurrently "yarn:copy-templates" "yarn:build:backend"

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

build:frontend:if-needed

if [ ! -d ./frontend/build ]; then yarn install --cwd ./frontend --frozen-lockfile --ignore-scripts && yarn build:frontend; fi

Metadata

Downloads