@krakenjs/webpack-mem-compile

v3.0.0
Webpack compile to memory

build

npm run test && npm run babel && npm run build:types

build:flow

find ./dist -type f -not -path './node_modules/*' -name '*.d.ts' -exec sh -c 'flowgen --add-flow-header $1 -o ${1%.*.*}.js.flow' _ '{}' \;

build:tsc

tsc src/* --outDir ./dist --declaration --emitDeclarationOnly --strict --esModuleInterop

build:types

npm run build:tsc && npm run build:flow

babel

cross-env NODE_ENV=production babel src/ --out-dir ./dist/ --extensions .ts,.tsx

tsc

tsc

format

prettier --write --ignore-unknown .

format:check

prettier --check .

test

npm run format:check && npm run lint && npm run tsc --no-emit && npm run vitest

lint

eslint --ext ts,tsx,js,jsx src/ test/

clean

rimraf dist coverage

prerelease

npm run clean && npm run build && git add dist && git commit -m 'ci: check in dist folder' || echo 'Nothing to distribute'

release

standard-version

postrelease

git push && git push --follow-tags && npm publish

debug

cross-env NODE_ENV=debug

prepare

husky install

vitest

vitest run --dom --coverage

vitest:watch

vitest watch --dom --coverage --ui
npm i @krakenjs/[email protected]

Metadata

Downloads