Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/tooling
Modular JavaScript Tooling.
https://github.com/egoist/tooling
bundle javascript nodejs tooling web-app
Last synced: about 22 hours 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T22:16:38.000Z (almost 2 years ago)
- Last Synced: 2024-10-22T16:47:00.281Z (22 days ago)
- Topics: bundle, javascript, nodejs, tooling, web-app
- Language: JavaScript
- Homepage:
- Size: 787 KB
- Stars: 414
- Watchers: 12
- Forks: 25
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tooling
[![NPM version](https://img.shields.io/npm/v/tooling.svg?style=flat)](https://npmjs.com/package/tooling) [![NPM downloads](https://img.shields.io/npm/dm/tooling.svg?style=flat)](https://npmjs.com/package/tooling) [![Build Status](https://img.shields.io/circleci/project/egoist/tooling/master.svg?style=flat)](https://circleci.com/gh/egoist/tooling) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](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)