grunt插件
在项目中安装grunt插件
- jscs
npm install grunt-jscs —save-dev
- jshint
npm install grunt-contrib-jshint —save-dev
- csslint
npm install grunt-contrib-csslint —save-dev
- scss-lint
npm install grunt-scss-lint —save-dev
- jscs
插件的配置文件
JSCS
{
options: {
config: true,
verbose: true
},
files: {
src: [...]
}
}
JSHint
{
options: {
jshintrc: true
},
files: {
src: [...]
}
}
CSSLint
{
options: {
csslintrc: '.csslintrc'
},
files: {
src: [...]
}
}
SCSS-Lint
{
options: {
config: '.scss-lint.yml'
},
files: {
src: [...]
}
}
Heavily inspired by Idiomatic CSS and the GitHub Styleguide.
Origin Project by @mdo.
Partly chinese translated by @zoomzhao.
Made with all the love by @AlloyTeam.
Open sourced under MIT. Copyright (c) 2015 Tencent AlloyTeam, All rights reserved.