Stopped developping on modjs and switched to chajs
Mod.js is a task-based workflow tooling for web, it helps developers quickly build robust and high-performance HTML5 applications.
- 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
Mod.js is installed using NPM(Node Package Manager)
$ npm install modjs -g
- 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
Mod support Windows, OS X, Linux...
Submit a new issue.
- 2014-02-28 v0.4.6 Fix r.js build error.
- 2014-02-20 v0.4.5 Remove built-in
server
task.
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 (JOIN US)
Mod.js is released under a MIT license.