]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7127 #comment add grunt
authorSeven Du <dujinfang@gmail.com>
Sat, 3 Jan 2015 01:22:32 +0000 (09:22 +0800)
committerSeven Du <dujinfang@gmail.com>
Sat, 3 Jan 2015 01:24:59 +0000 (09:24 +0800)
html5/verto/js/.gitignore [new file with mode: 0644]
html5/verto/js/Gruntfile.js [new file with mode: 0644]
html5/verto/js/package.json [new file with mode: 0644]

diff --git a/html5/verto/js/.gitignore b/html5/verto/js/.gitignore
new file mode 100644 (file)
index 0000000..347a886
--- /dev/null
@@ -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 (file)
index 0000000..bb4fa39
--- /dev/null
@@ -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 (file)
index 0000000..1165968
--- /dev/null
@@ -0,0 +1,9 @@
+{
+  "name": "verto",
+  "version": "0.0.1",
+  "devDependencies": {
+    "grunt": "~0.4.5",
+    "grunt-contrib-jshint": "~0.10.0",
+    "grunt-contrib-watch": "*"
+  }
+}