Add npm entry point

Change-Id: Ie082c888d57d10e9d6bc8114020d6a5e9ce81b0b
This commit is contained in:
Paladox 2016-03-08 23:07:57 +00:00
parent 8a1806a1e7
commit 8c7619269d
2 changed files with 31 additions and 0 deletions

20
Gruntfile.js Normal file
View file

@ -0,0 +1,20 @@
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
banana: {
all: 'i18n/'
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

11
package.json Normal file
View file

@ -0,0 +1,11 @@
{
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
"grunt-banana-checker": "0.4.0",
"grunt-jsonlint": "1.0.7"
}
}