Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": true,
"boss": true,
"eqnull": true,
"node": true,
"globals": {}
}
23 changes: 7 additions & 16 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,26 @@
module.exports = function(grunt) {

var config = {
files: [ "Gruntfile.js", "tasks/**/*.js", "test/**/*.js" ]
};

// Project configuration.
grunt.initConfig({
nodeunit: {
all: ["test/**/*.js"]
},
watch: {
files: "<config:lint.files>",
files: config.files,
tasks: "default"
},
jshint: {
all: ["grunt.js", "tasks/**/*.js", "test/**/*.js"],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true,
globals: {}
}
all: config.files
}
});

grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-nodeunit");
grunt.loadNpmTasks("grunt-contrib-watch");

grunt.registerTask("default", ["jshint", "nodeunit"]);
};
54 changes: 30 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,45 @@
{
"name" : "grunt-remove-logging",
"description" : "Grunt task to remove console logging statements",
"version" : "0.2.0",
"homepage" : "",
"author" : {
"name" : "Eric Hynds",
"email" : "[email protected]",
"url" : "http://erichynds.com"
"name": "grunt-remove-logging",
"description": "Grunt task to remove console logging statements",
"version": "0.2.0",
"homepage": "",
"author": {
"name": "Eric Hynds",
"email": "[email protected]",
"url": "http://erichynds.com"
},
"contributors": {
"name": "Thomas Welton",
"email": "[email protected]",
"url": "https://github.com/thomaswelton"
},
"repository" : {
"type" : "git",
"url" : "git://github.com/ehynds/grunt-remove-logging.git"
"repository": {
"type": "git",
"url": "git://github.com/ehynds/grunt-remove-logging.git"
},
"bugs" : {
"url" : "https://github.com/ehynds/grunt-remove-logging/issues"
"bugs": {
"url": "https://github.com/ehynds/grunt-remove-logging/issues"
},
"main" : "grunt.js",
"bin" : "bin/grunt-remove-logging",
"engines" : {
"node" : "*"
"main": "grunt.js",
"bin": "bin/grunt-remove-logging",
"engines": {
"node": "*"
},
"scripts" : {
"test" : "grunt test"
"scripts": {
"test": "grunt test"
},
"devDependencies" : {
"grunt" : "~0.4.2",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-nodeunit": "~0.2.2"
"grunt-contrib-nodeunit": "~0.2.2",
"grunt-contrib-watch": "~0.5.3"
},
"keywords" : [
"gruntplugin", "console", "log", "debugging", "remove", "statements"
"keywords": [
"gruntplugin",
"console",
"log",
"debugging",
"remove",
"statements"
]
}
Loading