FS-7127 #comment add grunt

This commit is contained in:
Seven Du 2015-01-03 09:22:32 +08:00
parent 1965b3b18d
commit 0db3b1e344
3 changed files with 43 additions and 0 deletions

4
html5/verto/js/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
jsmin
node_modules
verto-max.js
verto-min.js

View File

@ -0,0 +1,30 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true
}
}
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint']
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['jshint']);
};

View File

@ -0,0 +1,9 @@
{
"name": "verto",
"version": "0.0.1",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-watch": "*"
}
}