UNPKG

3.75 kBMarkdownView Raw
1# Brunch
2
3[![Build Status](https://travis-ci.org/brunch/brunch.svg?branch=master)](https://travis-ci.org/brunch/brunch)
4[![Join the chat at https://gitter.im/brunch/brunch](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/brunch/brunch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5
6[![NPM](https://nodei.co/npm/brunch.png?compact=true)](https://nodei.co/npm/brunch/)
7[![NPM](https://nodei.co/npm-dl/brunch.png)](https://nodei.co/npm/brunch/)
8
9> HTML5 applications made easy.
10
11Fast front-end web app build tool with simple declarative config, seamless incremental compilation for rapid development, an opinionated pipeline and workflow, and core support for source maps
12
13## First steps
14
15Install Brunch with a simple node.js package manager command: `npm install -g brunch`
16
171. **Create** a new Brunch project: `brunch new [--skeleton url]`
18 - skeleton specifies a skeleton from which your application will be initialized.
19 The default skeleton (dead-simple) doesn't have any opinions about frameworks or libraries.
20 - [brunch.io/skeletons](http://brunch.io/skeletons) contains over 50
21 boilerplate projects, which you can use to init your app from.
222. **Develop** with Brunch: `brunch watch --server`
23 - tells Brunch to watch your project and incrementally rebuild it when source files are changed.
24 The optional server flag launches a simple web server with push state support.
25 - If you use OS X and want brunch to show system notification every time compilation error happens, you will need to install terminal notifier:
26 `brew install terminal-notifier`
273. **Deploy** with Brunch: `brunch build --production`
28 - builds a project for distribution. By default it enables minification.
29
30## Learn
31
32* Visit [**brunch.io**](http://brunch.io)
33* Read [**brunch docs**](http://brunch.io/docs/getting-started)
34* Follow us on Twitter: [@brunch](http://twitter.com/brunch)
35* Ask questions on Stack Overflow with [#brunch](http://stackoverflow.com/questions/tagged/brunch) tag
36
37## Contributing
38
39See the [CONTRIBUTING.md](https://github.com/brunch/brunch/blob/master/CONTRIBUTING.md) document for more info on how to file issues or get your head into the Brunch's internals.
40
41- To install edge version (from GitHub `master` branch): `npm install -g brunch/brunch`
42- To enable debug mode, simply pass `-d` flag to any command like that: `brunch build -d`
43- To create your own plugin, check out our [plugin boilerplate](https://github.com/brunch/brunch-boilerplate-plugin) as a starting point.
44
45## License
46
47Brunch is released under the MIT License.
48
49Copyright (c) 2011-2018 Paul Miller, Elan Shanker, Nik Graf,
50Thomas Schranz, Allan Berger, Jan Monschke, Martin Schürrer
51
52Permission is hereby granted, free of charge, to any person obtaining a copy
53of this software and associated documentation files (the "Software"), to deal
54in the Software without restriction, including without limitation the rights
55to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56copies of the Software, and to permit persons to whom the Software is
57furnished to do so, subject to the following conditions:
58
59The above copyright notice and this permission notice shall be included in
60all copies or substantial portions of the Software.
61
62THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
68THE SOFTWARE.