diff --git a/html5/verto/js/.gitignore b/html5/verto/js/.gitignore new file mode 100644 index 0000000000..347a88699e --- /dev/null +++ b/html5/verto/js/.gitignore @@ -0,0 +1,4 @@ +jsmin +node_modules +verto-max.js +verto-min.js diff --git a/html5/verto/js/Gruntfile.js b/html5/verto/js/Gruntfile.js new file mode 100644 index 0000000000..bb4fa39b82 --- /dev/null +++ b/html5/verto/js/Gruntfile.js @@ -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']); + +}; diff --git a/html5/verto/js/package.json b/html5/verto/js/package.json new file mode 100644 index 0000000000..1165968599 --- /dev/null +++ b/html5/verto/js/package.json @@ -0,0 +1,9 @@ +{ + "name": "verto", + "version": "0.0.1", + "devDependencies": { + "grunt": "~0.4.5", + "grunt-contrib-jshint": "~0.10.0", + "grunt-contrib-watch": "*" + } +}