一个前端的Build工具集合
在终端中cd
到你的项目目录(你的grunt.js
所在目录),然后使用npm install grunt-tbf2e
来安装插件
然后在你的配置文件 grunt.js
中引入该插件:
grunt.loadNpmTasks('grunt-tbf2e');
除了使用grunt的内置组件:
- concat - Concatenate files.
- init - Generate project scaffolding from a predefined template.
- lint - Validate files with [JSHint][jshint].
- min - Minify files with [UglifyJS][uglify].
- qunit - Run [QUnit][qunit] unit tests in a headless [PhantomJS][phantom] instance.
- server - Start a static web server.
- test - Run unit tests with [nodeunit][nodeunit].
- watch - Run predefined tasks whenever watched files change.
以外,tbf2e
提供了以下额外组件:
复制文件到制定目录.
将LESS文件编译为CSS.
在你的项目中使用Compass(SASS)
对CSS文件进行压缩.
对遵循KISSY 1.2 的包规范的脚本文件进行打包
Copyright (c) 2012 neekey
Licensed under the MIT license.