Brunch: Quick HTML5 build Tool

Source: Internet
Author: User

 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 =====================

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.