tooling

by egoist

egoist /tooling

Modular JavaScript Tooling.

420 Stars 24 Forks Last release: over 4 years ago (v0.20.0) MIT License 13 Commits 64 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

tooling

NPM version NPM downloads Build Status donate

Install

yarn add tooling tooling-preset-web --dev

How to use

Configure npm scripts:

{
  "scripts": {
    "build": "tooling build",
    "dev": "tooling dev"
  },
  "tooling": {
    "presets": [
      "web"
    ]
  }
}

Populate

index.js
inside your project:
document.write('

Hello World!

')

And run

yarn dev
and go to
http://localhost:4000
.

Command

  • 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.

Configuration

The surpise is, tooling requires no configurations! Oh well, there're a couple CLI options. You can run

tooling --help
and
tooling  --help
to check out!

However,

presets
may require options, then you can configure them in:
  • a package.json's
    tooling
    property
  • a JSON or YAML "rc file", eg:
    .toolingrc.json
    or
    .toolingrc.yml
    or without extension
  • a
    tooling.config.js
    CommonJS module
  • a CLI
    --config
    argument

Presets

Your app is driven by presets under the hood, just like babel is driven by babel presets.

List of presets

  • Web: A preset you'll need for modern web apps.

Contributing

  1. Fork it!
  2. Create your feature branch:
    git checkout -b my-new-feature
  3. Commit your changes:
    git commit -am 'Add some feature'
  4. Push to the branch:
    git push origin my-new-feature
  5. Submit a pull request :D

Author

tooling © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoistian.com · GitHub @egoist · Twitter @remrinrin

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.