GruntJs----基于Node.js的自动化构建工具
环境搭建:
-
install NodeJs: https://nodejs.org/, https://iojs.org
-
install Ruby: https://rubygems.org/, RubyGems 镜像:https://ruby.taobao.org/
-
install Compass & Sass: http://thesassway.com/beginner/getting-started-with-sass-and-compass
使用方法:
克隆之后在当前目录执行:npm install
在线演示文档:
参考资料:
###Nodejs领域:
1.Jasmine做单元测试, 2.Karma自动化完成单元测试, 3.Grunt启动Karma统一项目管理, 4.Yeoman最后封装成一个项目原型模板, 5.npm做nodejs的包依赖管理, 6.bower做javascript的包依赖管理。
###Java领域:
1.Unit做单元测试 2.Maven自动化单元测试,统一项目管理,构建项目原型模板,包依赖管理。
###CSScomb配置
https://github.com/csscomb/csscomb.js/blob/master/doc/options.md
###CSSLint Options
https://github.com/CSSLint/csslint/wiki/Rules
###JSHint Options
https://github.com/jshint/jshint/blob/master/examples/.jshintrc
###Compass
http://thesassway.com/beginner/getting-started-with-sass-and-compass
install Compass and Sass:
ruby -v
gem update --system && gem install compass
###Git Page
###Problem
D:\github\GruntJS\Gruntfile.js sprite:all
Running "sprite:all" (sprite) task
Fatal error: Unsupported interlace method.