https://github.com/egoist/tooling
Modular JavaScript Tooling.
https://github.com/egoist/tooling
bundle javascript nodejs tooling web-app
Last synced: 3 months ago
JSON representation
Modular JavaScript Tooling.
- Host: GitHub
- URL: https://github.com/egoist/tooling
- Owner: egoist
- License: mit
- Created: 2015-12-31T06:17:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T22:16:38.000Z (over 2 years ago)
- Last Synced: 2025-03-28T09:07:35.587Z (4 months ago)
- Topics: bundle, javascript, nodejs, tooling, web-app
- Language: JavaScript
- Homepage:
- Size: 787 KB
- Stars: 413
- Watchers: 11
- Forks: 17
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tooling
[](https://npmjs.com/package/tooling) [](https://npmjs.com/package/tooling) [](https://circleci.com/gh/egoist/tooling) [](https://github.com/egoist/donate)
## Install
```bash
yarn add tooling tooling-preset-web --dev
```## How to use
Configure npm scripts:
```js
{
"scripts": {
"build": "tooling build",
"dev": "tooling dev"
},
"tooling": {
"presets": [
"web"
]
}
}
```Populate `index.js` inside your project:
```js
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](https://babeljs.io) is driven by babel presets.
### List of presets
- [Web](./packages/tooling-preset-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](https://github.com/egoist), Released under the [MIT](./LICENSE) License.
Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/tooling/contributors)).> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)