@ikscodes/browser-env

v1.0.0
Simulates a global browser environment using JSDOM.

dev

microbundle watch -i dist src/index.cjs+es.ts -o dist -f cjs

build

npm-run-all -s clean:build -p build:*

build:cjs

microbundle build -i src/index.ts -o dist -f cjs

test

npm-run-all -s clean:test-artifacts test:*

test:run

cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --reporter=lcov --reporter=text-summary ava

coverage

nyc --reporter=lcov --reporter=text-summary ava | coveralls

clean

npm-run-all -s clean:*

clean:cache

rimraf .rts2_*

clean:test-artifacts

rimraf coverage && rimraf .nyc-output

clean:build

rimraf dist

clean:node_modules

rimraf node_modules

lint

tslint --fix .
npm i @ikscodes/browser-env

Metadata

  • MIT
  • Whatever
  • Ian K Smith
  • released 2/28/2020

Downloads

Maintainers