Skip to content

Commit

Permalink
Test of travis with jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Apr 27, 2014
1 parent 50e44b5 commit b5a7a91
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"validthis" : true
, "multistr" : true
, "laxcomma" : true
, "laxbreak" : true
, "browser" : true
, "eqeqeq" : false
, "eqnull" : true
, "debug" : true
, "devel" : true
, "curly" : false
, "boss" : true
, "expr" : true
, "asi" : true
, "supernew" : true
}
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- 0.8
before_script:
- npm install -g grunt-cli
32 changes: 32 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* jshint node: true */

module.exports = function (grunt) {
"use strict";

grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
, jshint: {
all: [
"Gruntfile.js"
, "static/figure/js/*.js"
]
, options: {
jshintrc: '.jshintrc'
},
}
// , jasmine: {
// src: "lib/**/*.js"
// , options: {
// specs: "spec/**/*.js"
// , vendor: "vendor/**/*.js"
// }
// }
})

grunt.loadNpmTasks('grunt-contrib-jshint')
// grunt.loadNpmTasks('grunt-contrib-jasmine')

// grunt.registerTask('test', ['jshint', 'jasmine'])
grunt.registerTask('test', ['jshint'])
grunt.registerTask('default', ['test'])
};
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "figure",
"version": "1.0.0-beta1",
"description": "OMERO figure creation app",
"main": "index.js",
"scripts": {
"test": "grunt test"
},
"repository": {
"type": "git",
"url": "git://github.com/will-moore/figure.git"
},
"keywords": [
"backbone",
"jQuery",
"figure"
],
"author": "William Moore",
"license": "GPL",
"bugs": {
"url": "https://github.com/will-moore/figure/issues"
},
"homepage": "https://github.com/will-moore/figure",
"devDependencies": {
"grunt": "^0.4.4",
"grunt-contrib-jshint": "^0.10.0"
}
}

0 comments on commit b5a7a91

Please sign in to comment.