grunt-lesshint
Advanced tools
Comparing version 0.4.0 to 0.5.1
@@ -13,9 +13,44 @@ /* | ||
jshint: { | ||
options: { | ||
"bitwise": true, | ||
"browser": true, | ||
"boss": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"es3": true, | ||
"eqeqeq": true, | ||
"eqnull": true, | ||
"forin": true, | ||
"freeze": true, | ||
"immed": true, | ||
"indent": 4, | ||
"jquery": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"node": true, | ||
"nonbsp": true, | ||
"noempty": true, | ||
"nonew": true, | ||
"passfail": true, | ||
"plusplus": true, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"sub": true, | ||
"trailing": true | ||
}, | ||
all: [ | ||
'Gruntfile.js', | ||
'tasks/*.js', | ||
'<%= nodeunit.tests %>' | ||
'tasks/*.js' | ||
], | ||
options: { | ||
jshintrc: '.jshintrc' | ||
tests: { | ||
options: { | ||
globals: { | ||
"describe": true, | ||
"it": true | ||
} | ||
}, | ||
files: { | ||
src: [ 'test/*.js' ] | ||
} | ||
} | ||
@@ -60,5 +95,19 @@ }, | ||
// Unit tests. | ||
nodeunit: { | ||
tests: [ 'test/*_test.js' ] | ||
mochacov: { | ||
test: { | ||
options: { | ||
reporter: 'spec' | ||
}, | ||
files: { | ||
src: [ 'test/**/*.js' ] | ||
} | ||
}, | ||
coverage: { | ||
options: { | ||
coveralls: true | ||
}, | ||
files: { | ||
src: [ 'test/**/*.js' ] | ||
} | ||
} | ||
} | ||
@@ -71,5 +120,6 @@ | ||
grunt.loadNpmTasks( 'grunt-contrib-jshint' ); | ||
grunt.loadNpmTasks( 'grunt-contrib-nodeunit' ); | ||
grunt.loadNpmTasks( 'grunt-mocha-cov' ); | ||
grunt.registerTask( 'test', [ 'nodeunit' ] ); | ||
grunt.registerTask( 'test', [ 'mochacov:test' ] ); | ||
grunt.registerTask( 'cover', [ 'mochacov:coverage' ] ); | ||
@@ -76,0 +126,0 @@ // By default, lint and run all tests. |
{ | ||
"name": "grunt-lesshint", | ||
"description": "Lint lesscss files with grunt", | ||
"version": "0.4.0", | ||
"version": "0.5.1", | ||
"homepage": "https://github.com/kokarn/grunt-lesshint", | ||
@@ -22,8 +22,13 @@ "author": { | ||
"scripts": { | ||
"test": "grunt test" | ||
"test": "mocha", | ||
"cover": "grunt cover" | ||
}, | ||
"devDependencies": { | ||
"blanket": "^1.1.7", | ||
"grunt": "~0.4.5", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-jshint": "^0.11.2", | ||
"grunt-contrib-nodeunit": "^0.4.1", | ||
"grunt": "~0.4.5" | ||
"grunt-mocha-cov": "^0.4.0", | ||
"mocha": "^2.2.5", | ||
"spawn-sync": "^1.0.11" | ||
}, | ||
@@ -44,3 +49,10 @@ "peerDependencies": { | ||
"lesshint": "^0.5.1" | ||
} | ||
}, | ||
"config": { | ||
"blanket": { | ||
"pattern": [ | ||
"tasks" | ||
] | ||
} | ||
} | ||
} |
@@ -7,2 +7,4 @@ # grunt-lesshint | ||
[![devDependency Status](https://david-dm.org/kokarn/grunt-lesshint/dev-status.svg?theme=shields.io&style=flat)](https://david-dm.org/kokarn/grunt-lesshint#info=devDependencies) | ||
[![Build Status](https://travis-ci.org/kokarn/grunt-lesshint.svg)](https://travis-ci.org/kokarn/grunt-lesshint) | ||
[![Coverage Status](https://coveralls.io/repos/kokarn/grunt-lesshint/badge.svg)](https://coveralls.io/r/kokarn/grunt-lesshint) | ||
@@ -72,2 +74,4 @@ ## Getting Started | ||
|---|---|---| | ||
|2015-05-25|0.5.1|Fix readme and version for 0.5.0| | ||
|2015-05-25|0.5.0|Add CI support with Travis-ci and some experimental coveralls.io support| | ||
|2015-05-25|0.4.0|Add support for using custom ```.lesshintrc``` files| | ||
@@ -74,0 +78,0 @@ |2015-05-21|0.3.1|Forgot to update everything for the 0.3.0 release....| |
@@ -11,3 +11,3 @@ /* | ||
var lesshint = require( 'Lesshint' ), | ||
var lesshint = require( 'lesshint' ), | ||
chalk = require( 'chalk' ), | ||
@@ -24,3 +24,3 @@ configLoader = require( 'lesshint/lib/config-loader' ); | ||
if( options.lesshintrc === true ){ | ||
// let lesshinthint find the options itself | ||
// let lesshint find the options itself | ||
config = configLoader(); | ||
@@ -27,0 +27,0 @@ } else if( options.lesshintrc ){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
13729
241
92
0
7