npm run clean
- cleans targetsnpm run build
- cleans and compiles all targetsnpm test
- executes tests against built targets
These npm scripts accept argument lists of targets × modules:
- Available
targets
areix
,ts
,es5
,es2015
,esnext
, andall
(default:all
) - Available
modules
arecjs
,esm
,umd
, andall
(default:all
)
Examples:
npm run build
-- builds all ES targets in all module formatsnpm run build -- -t ix
-- builds the main Ix target module bundlenpm run build -- -t es5 -m all
-- builds the ES5 target in all module formatsnpm run build -- -t all -m cjs
-- builds all ES targets in the CommonJS module formatnpm run build -- --targets es5 es2015 -m all
-- builds the ES5 and ES2015 targets in all module formatsnpm run build -- -t es5 --modules cjs esm
-- builds the ES5 target in CommonJS and ESModules module formats
This argument configuration also applies to clean
and test
scripts.
Uses learna to publish each build target to npm with conventional changelogs.