[Pkg-javascript-commits] [ltx] 306/469: Use grunt to run tests
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit cd29d051c97e32be80f7bba8170444e5eb34a2f6
Author: Lloyd Watkin <lloyd at evilprofessor.co.uk>
Date: Sun Feb 16 19:38:18 2014 +0000
Use grunt to run tests
---
.gitignore | 1 +
.jshintrc | 34 ++++++++++++++++++++++++++++++++++
Gruntfile.js | 42 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 77 insertions(+)
diff --git a/.gitignore b/.gitignore
index 3c3629e..04379d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
node_modules
+ltx-browser.js
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..303177f
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,34 @@
+{
+ "asi": true,
+ "camelcase": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "globalstrict": true,
+ "immed": true,
+ "indent": 4,
+ "latedef": "nofunc",
+ "laxcomma": true,
+ "maxparams": 4,
+ "maxdepth": 3,
+ "maxstatements": 20,
+ "maxcomplexity": 8,
+ "maxlen": 120,
+ "newcap": true,
+ "noarg": true,
+ "noempty": true,
+ "nonew": true,
+ "quotmark": "single",
+ "undef": true,
+ "unused": true,
+ "strict": true,
+ "trailing": true,
+
+ "node": true,
+
+ "predef": [
+ "define", "module", "require",
+ "before", "beforeEach", "describe", "it",
+ "after", "window"
+ ]
+
+}
\ No newline at end of file
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..67327f3
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,42 @@
+'use strict';
+
+module.exports = function(grunt) {
+
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ jshint: {
+ allFiles: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js'],
+ options: {
+ jshintrc: '.jshintrc',
+ }
+ },
+ browserify: {
+ dist: {
+ files: {
+ 'ltx-browser.js': ['./lib/index-browserify.js']
+ }
+ }
+ },
+ clean: ['ltx-browser.js'],
+ vows: {
+ all: {
+ options: {
+ reporter: 'spec',
+ coverage: 'json'
+ },
+ src: ["test/**/*.js"]
+ }
+ }
+ })
+
+ // Load the plugins
+ grunt.loadNpmTasks('grunt-contrib-jshint')
+ grunt.loadNpmTasks('grunt-browserify')
+ grunt.loadNpmTasks('grunt-contrib-clean')
+ grunt.loadNpmTasks('grunt-vows')
+
+ // Configure tasks
+ grunt.registerTask('default', ['test'])
+ // grunt.registerTask('test', ['clean', 'vows', 'jshint', 'browserify'])
+ grunt.registerTask('test', ['clean', 'vows', 'browserify'])
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list