hot-import

v0.2.14
Hot Module Replacement (HMR) for Node.js
hot replacement reload import dynamic

check-node-version

check-node-version --node ">= 7"

clean

shx rm -fr dist/*

demo

npm run demo:ts

demo:ts

ts-node examples/demo-ts

demo:js

ts-node examples/demo-js

dist

npm run clean && tsc

lint

npm run lint:es && npm run clean && tsc --noEmit

lint:es

eslint 'src/**/*.ts' 'tests/**/*.spec.ts' --ignore-pattern tests/fixtures/

test

npm run lint && npm run check-node-version && npm run test:unit

test:pack

bash -x scripts/npm-pack-testing.sh

test:unit

blue-tape -r ts-node/register "src/**/*.spec.ts" "tests/**/*.spec.ts"
npm i hot-import

Metadata

Downloads

Maintainers