Merge "Add npm entry point"

This commit is contained in:
jenkins-bot 2016-03-29 11:45:46 +00:00 committed by Gerrit Code Review
commit 7f13db1fe2
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"
}
}