Skip to content

Commit

Permalink
Add travis file and initial jshint task to run with it
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed Jul 15, 2014
1 parent 031a90e commit cfd5a74
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- '0.11'
9 changes: 7 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

// -------------------------- grunt -------------------------- //

/* global module */
module.exports = function( grunt ) {
'use strict';

// get banner comment from draggabilly.js
var banner = ( function() {
Expand All @@ -14,7 +15,7 @@ module.exports = function( grunt ) {
grunt.initConfig({

jshint: {
src: [ 'draggabilly.js' ],
src: [ 'draggabilly.js', 'Gruntfile.js' ],
options: grunt.file.readJSON('.jshintrc')
},

Expand Down Expand Up @@ -58,6 +59,10 @@ module.exports = function( grunt ) {
grunt.log.writeln('Removed pkgd module name on draggabilly.pkgd.js');
});

grunt.registerTask('travis', [
'jshint'
]);

grunt.registerTask( 'default', [
'jshint',
'requirejs',
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
"dependencies": {},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.5.0",
"grunt-requirejs": "^0.4.2"
},
"scripts": {
"test": "grunt travis"
},
"repository": {
"type": "git",
"url": "git://github.com/desandro/draggabilly.git"
Expand Down

0 comments on commit cfd5a74

Please sign in to comment.