hot-import

v0.0.12
Hot Module Re-Import on Change for Node.js
hot reload import dynamic

clean

shx rm -fr dist/*

demo

ts-node examples/demo

dist

npm run clean && tsc

lint

tslint --version && tslint --project tsconfig.json "{src,tests}/**/*.ts" --exclude "tests/fixtures/**" --exclude "dist/" && npm run clean && tsc --noEmit

test

npm run lint && npm run test:unit

test:npm

npm run dist && cross-env-shell TMPDIR=/tmp/npm-package-test.$$ 'npm pack && mkdir $TMPDIR && mv *-*.*.*.tgz $TMPDIR && cp tests/fixtures/smoke-testing.js $TMPDIR && cd $TMPDIR && npm init -y && npm i *-*.*.*.tgz && node smoke-testing.js'

test:unit

tape -r ts-node/register "src/**/*.spec.ts" "tests/**/*.spec.ts"

Metadata

Downloads

Maintainers