ESMTK, essential tools and libs for ES module development
Lint uses StandardJS to lint the source
esmtk lint [--fix]
--fix
- automatically fix problems
esmtk lint
Bundle uses ESBuild to compile an ES module (and its deps) into a bundle
esmtk bundle [input] [output]
[input]
- the input source file path[output]
- the output bundle file path
esmtk bundle src/sample.js bundle.js
Minify uses ESBuild to compile an ES module (and its deps) into a minified bundle
esmtk minify [input] [output]
[input]
- the input source file path[output]
- the output bundle file path
esmtk minify src/sample.js bundle.min.js
CommonJS uses ESBuild to compile an ES module (and its deps) into a CommonJS bundle
esmtk commonjs [input] [output]
[input]
- the input source file path[output]
- the output bundle file path
esmtk commonjs src/sample.js bundle.cjs
Copy us a cross-platform clone of the cp
command in Linux
esmtk cp -rf [source] [destination]
[source]
- the source file/glob[destination]
- the destination file/directory-r, --recursive
- copy files/directories recursively-f --force
- force overwrite existing files
esmtk cp src/* dest/