Awesome
<h2>Stopped developping on modjs and switched to <a href="http://github.com/chajs/cha"><img src="https://avatars0.githubusercontent.com/u/6767978?v=2&s=25">chajs</a></h2> <p align="center"> <a href="http://madscript.com/modjs" target="_blank"> <img src="https://f.cloud.github.com/assets/677114/1474125/3f5b2460-4629-11e3-8a3d-6b4e0162e0cf.png" alt="Mod.js" style="max-width:100%;"> </a> </p> <p align="center"> <a href="http://badge.fury.io/js/modjs"><img src="https://badge.fury.io/js/modjs.png" alt="NPM version" style="max-width:100%;"></a> <a href="http://travis-ci.org/modjs/mod"><img src="https://secure.travis-ci.org/modjs/mod.png?branch=master" alt="Build Status" style="max-width:100%;"></a> </p>Mod.js is a task-based workflow tooling for web, it helps developers quickly build robust and high-performance HTML5 applications.
Why Mod.js?
- Focus on the workflow of web development
- Much built-in tasks, most pleasant out-of-the-box experience
- Built-in source minify:
JS, CSS, HTML
- Built-in modular JS compile:
AMD, CMD (will support ES6 Module, CommonJS Module soon)
- Built-in CSS @import file combination
- Built-in source stripping, automatically remove debugging code
- Built-in basic file operation:
cat, rm, mv, mkdir, cp, rev
- Built-in file watcher, trigger custom tasks when file change
- Built-in source minify:
- More simplicity plugin mechanism, auto-install plugins
- Configuration less(even zero), do more
- Build by html:
mod build index.html
- Build by html:
- Compatible with Grunt plugins, with literally hundreds of plugins to choose from
Installation
Mod.js is installed using NPM(Node Package Manager)
$ npm install modjs -g
Tutorials
Documents
Quick Build Demo
Built-in Task Examples
- Concatenate JS Files
- Concatenate CSS Files
- AMD Modules Compile
- CMD Modules Compile
- Mutil-page Modules Compile
- JS Conditional Compilation
- CSS Conditional Compilation
- HTML Conditional Compilation
- JS Minify
- CSS Minify
- HTML Minify
- Code Stripping
- EOL Stripping
- Tab Stripping
- Inline Images DataURI
- Make Dir
- Copy Files
- String Replace
Plugins Examples
IDE Support
Platform Support
Mod support Windows, OS X, Linux...
Issue Submission
Submit a new issue.
Release History
- 2014-02-28 v0.4.6 Fix r.js build error.
- 2014-02-20 v0.4.5 Remove built-in
server
task.
About
Mod is an open-source project by Tencent which builds on top of Node.js. We utilize a number of useful open-source solutions including:
- UglifyJS
- CleanCSS
- HTMLMinifiler
- RequireJS
Used by people within <a href="https://github.com/modjs/mod/issues/22">(JOIN US)</a>
License
Mod.js is released under a MIT license.