Modular JavaScript Tooling.
yarn add tooling tooling-preset-web --dev
Configure npm scripts:
{ "scripts": { "build": "tooling build", "dev": "tooling dev" }, "tooling": { "presets": [ "web" ] } }
Populate
index.jsinside your project:
document.write('Hello World!
')
And run
yarn devand go to
http://localhost:4000.
tooling dev: Run dev server with hot reloading support, then you can code and open browser to preview
tooling build: Build app in production mode.
The surpise is, tooling requires no configurations! Oh well, there're a couple CLI options. You can run
tooling --helpand
tooling --helpto check out!
However,
presetsmay require options, then you can configure them in:
toolingproperty
.toolingrc.jsonor
.toolingrc.ymlor without extension
tooling.config.jsCommonJS module
--configargument
Your app is driven by presets under the hood, just like babel is driven by babel presets.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
tooling © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @remrinrin