knextancy
v2.4.0 knex multi tenancy mysql postgres
compile
babel -d lib/ src/
prepublish
npm run compile
lint
eslint src/ spec/
test
npm run test:mysql && npm run test:postgres
test:mysql
npm run lint && DB_CLIENT=mysql NODE_ENV=test mocha --compilers js:babel-core/register --timeout 30000 --reporter spec --recursive --watch-extensions .spec.js ./spec
test:postgres
npm run lint && DB_CLIENT=postgres NODE_ENV=test mocha --compilers js:babel-core/register --timeout 30000 --reporter spec --recursive --watch-extensions .spec.js ./spec
waitdb
waitforit -full-connection $POSTGRES_PORT -timeout 60 && waitforit -full-connection $MYSQL_PORT -timeout 60
waitdb-test
npm run waitdb && npm test