Add npm entry point

Change-Id: Ibf52aaad3924f741a2ed44bd03193705f7b85233
This commit is contained in:
Paladox 2016-03-24 23:16:34 +00:00
parent 38579ed335
commit 522612dd92
3 changed files with 32 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
.svn
*~
*.kate-swp
.*.swp
node_modules/**

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"
}
}