GithubHelp home page GithubHelp logo

imclab / node-build-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mklabs/node-build-script

0.0 1.0 0.0 9.49 MB

A node build script primarily for use with the HTML5 Boilerplate.

License: MIT License

node-build-script's Introduction

The h5bp build script now has three versions, the main one being the [ant-build-script][]. This project is the node version, and it uses Grunt as a build tool.

It is packaged as a grunt plugin and provides you a bunch of tasks and helpers to help improve the performance of your site/app in a production environment.

Description

This node/grunt-based build script tries to be as close as possible to the [ant-build-script][], a really great project you should check out.

It is still in early stage of development, but will get better, thanks to your feedback.

Quick start

Fancy one line install:

# see the gist: https://gist.github.com/2359881
$ curl https://raw.github.com/gist/2359881/install.sh | sh

Slightly less fancier

$ npm install http://github.com/h5bp/node-build-script/tarball/master -g
$ h5bp help
$ h5bp init

Developing locally

$ git clone git://github.com/h5bp/node-build-script.git
$ cd node-build-script
$ npm link

Features

  • Concats / Compresses JS
  • Concats / Compresses CSS
  • Inline CSS imports via RequireJS
  • Basic to aggressive html minification (via [html-minfier][])
  • Optimizes JPGs and PNGs (with jpegtran & optipng)
  • Renames JS/CSS to prepend a hash of their contents for easier versioning
  • Revises the file names of your assets so that you can use heavy caching
  • Updates your HTML to reference these new hyper-optimized CSS + JS files
  • Experimental dom-based (with JSDOM) build system.
  • May rerun the build script on file changes (grunt's watch task โค)
  • May automatically reload the page in your browsers whenever watched files change, through some [socket.io] magic.

Getting started

Project information

Run the tests

$ npm test

[Getting Started]: https://github.com/gruntjs/grunt/blob/master/docs/getting_started.md#readme) [JSDOM]: https://github.com/tmpvar/jsdom [ant-build-script]: https://github.com/h5bp/ant-build-script [socket.io]: http://socket.io [html-minifier]: https://github.com/kangax/html-minifier

node-build-script's People

Contributors

andrewle avatar attebury avatar chuanxshi avatar darktable avatar dplesca avatar drublic avatar elexx avatar git2samus avatar glsee avatar gmoulin avatar joemorgan avatar johnbacon avatar jphustman avatar krzychukula avatar localpcguy avatar martinbalfanz avatar martinblech avatar mdonoughe avatar mikemorris avatar mikkotikkanen avatar mklabs avatar nicpottier avatar paulirish avatar rdeknijf avatar robinpyon avatar roblarsen avatar rwaldron avatar simensen avatar stanley avatar tralston avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.