yarn add tooling tooling-preset-web --devConfigure npm scripts:
{
  "scripts": {
    "build": "tooling build",
    "dev": "tooling dev"
  },
  "tooling": {
    "presets": [
      "web"
    ]
  }
}Populate index.js inside your project:
document.write('<h1>Hello World!<h1>')And run yarn dev and 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 --help and tooling <command> --help to check out!
However, presets may require options, then you can configure them in:
- a package.json's toolingproperty
- a JSON or YAML "rc file", eg: .toolingrc.jsonor.toolingrc.ymlor without extension
- a tooling.config.jsCommonJS module
- a CLI --configargument
Your app is driven by presets under the hood, just like babel is driven by babel presets.
- Web: A preset you'll need for modern web apps.
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
tooling © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin