-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use standard (https://standardjs.com) for coding style guide
- Loading branch information
Showing
7 changed files
with
1,850 additions
and
1,763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
module.exports = function(grunt) { | ||
// Project configuration. | ||
grunt.initConfig({ | ||
jshint: { | ||
all: ['lib/*.js', 'test/*.js', 'Gruntfile.js'], | ||
options: { | ||
jshintrc: '.jshintrc' | ||
} | ||
}, | ||
module.exports = function (grunt) { | ||
// Project configuration. | ||
grunt.initConfig({ | ||
standard: { | ||
options: { | ||
fix: true | ||
}, | ||
app: { | ||
src: [ | ||
'{,lib/,test/}*.js' | ||
] | ||
} | ||
}, | ||
nodeunit: { | ||
all: 'test/pem.js' | ||
} | ||
}) | ||
|
||
nodeunit: { | ||
all: 'test/pem.js' | ||
} | ||
}); | ||
// Load the plugin(s) | ||
grunt.loadNpmTasks('grunt-standard') | ||
grunt.loadNpmTasks('grunt-contrib-nodeunit') | ||
|
||
// Load the plugin(s) | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-nodeunit'); | ||
|
||
// Tasks | ||
grunt.registerTask('default', ['jshint', 'nodeunit']); | ||
}; | ||
// Tasks | ||
grunt.registerTask('default', ['standard', 'nodeunit']) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.