Skip to content

Commit

Permalink
updating Gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pdehaan committed Sep 3, 2014
1 parent 9f3d80f commit 2d8d6fd
Show file tree
Hide file tree
Showing 2 changed files with 2,713 additions and 5 deletions.
46 changes: 41 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ module.exports = function (grunt) {

grunt.initConfig({
"APP": {
"CODE_DIRS": "{,config/**/,loop/**/,test/**/}",
"COPYRIGHT": "This Source Code Form is subject to the terms of the Mozilla Public"
"CODE_DIRS": "{,config/**/,loop/**/,test/**/}"
},
"pkg": require("./package.json"),

"copyright": {
"options": {
"pattern": "<%= APP.COPYRIGHT %>"
"pattern": "This Source Code Form is subject to the terms of the Mozilla Public"
},
"src": "<%= eslint.src %>"
},
Expand All @@ -26,20 +25,57 @@ module.exports = function (grunt) {
},

"shell": {
"outdated": {
"command": "npm outdated --depth 0"
},
"shrinkwrap": {
"command": "npm shrinkwrap --dev"
},
"rm-shrinkwrap": {
"command": "rm npm-shrinkwrap.json"
}
},

"todo": {
"src": "<%= eslint.src %>"
"options": {
"marks": [
{
"name": 'FIX',
"pattern": /FIXME/,
"color": 'red'
},
{
"name": 'TODO',
"pattern": /TODO/,
"color": 'yellow'
},
{
"name": 'NOTE',
"pattern": /NOTE/,
"color": 'blue'
}, {
"name": 'XXX',
"pattern": /XXX/,
"color": 'yellow'
}, {
"name": 'HACK',
"pattern": /HACK/,
"color": 'red'
}
]
},
"src": [
"<%= eslint.src %>",
"!Gruntfile.js"
]
},

"validate-shrinkwrap": {
}
});

grunt.registerTask("lint", ["eslint", "jsonlint"]);
grunt.registerTask("audit-shrinkwrap", ["shell:shrinkwrap", "validate-shrinkwrap"]);
grunt.registerTask("do-shrinkwrap", ["shell:shrinkwrap", "validate-shrinkwrap", "shell:rm-shrinkwrap"]);
grunt.registerTask("audit-shrinkwrap", ["do-shrinkwrap", "shell:outdated"]);
grunt.registerTask("default", ["lint", "copyright"]);
};
Loading

0 comments on commit 2d8d6fd

Please sign in to comment.