Brunch, an ultra-fast HTML5 build tool. It can (official introduction):
- Compile your scripts, templates, styles, link them,
- Wrap scripts and templates into COMMON.JS/AMD modules, link scripts and styles,
- Generate source maps for linked files, copy resources and static files,
- Shrink the output by shrinking the code and optimizing the picture, guarding your file changes,
- and notify you of errors via console and system prompts.
In fact, that is: Brunch is a HTML5 application software assembler, he can apply to any architecture, database, programming language, style sheets, templates and background technology.
More important is that he is open source, so the small partners can be happy to quickly build their own HTML5 application.
Installation is the first to be told.
Since brunch is based on Nodejs, you will definitely need to install Nodejs and install NPM (Nodejs Package Manager), which can be installed on the command line after two.
1 $npm Install Brunch
A command can be installed in the global environment, just add the-G property to the install.
How to copy Create a new brunch project
1 new <skeleton-URL> [Optional-output-dir]
The angle brackets are the URL link for the frame you want to use, and the brackets are the optional attributes, brunch now has a 50+ frame on GitHub (this is official statistics, I don't know ....) ), below we can raise a chestnut
1 new https://github.com/monokrome/brunch-with-brunch
However, it is important to note that the folder where you want to place the new item must be empty or the cloning failure will occur.
Developing Applications with Brunch
Using commands
1 $brunch Watch--server
Will print the following content
1 to :-Info:application started on http://localhost:3333/2 from:322 in 117ms
Information content is very simple, I believe that we know, is to build a micro-server, and the compressed files are compressed.
===================== continuous learning =====================