• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

sindresorhus/gulp-recess: [DEPRECATED] Lint CSS and LESS with RECESS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

sindresorhus/gulp-recess

开源软件地址(OpenSource Url):

https://github.com/sindresorhus/gulp-recess

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

Deprecated since RECESS is no longer maintained


gulp-recess Build Status

Lint CSS and LESS with RECESS

Issues with the output should be reported on the RECESS issue tracker.

Install

$ npm install --save-dev gulp-recess

Usage

var gulp = require('gulp');
var recess = require('gulp-recess');

gulp.task('default', function () {
	return gulp.src('src/app.css')
		.pipe(recess())
		.pipe(recess.reporter())
		.pipe(gulp.dest('dist'));
});

API

Options can be specified programmatically as part of the task configuration using the options below. Additionally or alternatively, you can use a .recessrc file to specify the options.

The compress and compile options from RECESS are intentionally missing. Separate tasks like gulp-csso and gulp-less will do a much better job.

recess(options)

Run recess on each file

// default options
includePath: []				// Additional paths to look for `@import`'ed LESS files.
strictPropertyOrder: true	// Complains if not strict property order
noIDs: true					// Doesn't complain about using IDs in your stylesheets
noJSPrefix: true			// Doesn't complain about styling .js- prefixed classnames
noOverqualifying: true		// Doesn't complain about overqualified selectors (ie: div#foo.bar)
noUnderscores: true			// Doesn't complain about using underscores in your class names
noUniversalSelectors: true	// Doesn't complain about using the universal * selector
zeroUnits: true				// Doesn't complain if you add units to values of 0

Writes .recess object to each vinyl object:

{
	success: true,			// Did it succeed?
	status: 'Perfect!',		// Recess status
	failureCount: 0,		// Number of errors
	results: [],			// Recess failure details
	errors: [],				// Recess errors
	options: {}				// The options passed to Recess
}

recess.reporter(options)

Write the report on each failing file. (Passing files write no output.)

// default options
fail: true					// If true, it writes error event on failure
minimal: false				// If true, it only lists failure filenames omitting details

License

MIT © Sindre Sorhus




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap