Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Configuration for continuous integration service #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- "0.11"
before_script:
- npm install -g grunt-cli
- npm install grunt grunt-contrib-jshint grunt-contrib-uglify
script: grunt -v
23 changes: 23 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = function(grunt) {
grunt.initConfig({

uglify: {
my_target: {
files: {
'imageflip.min.js': ['imageflip.js']
}
}
},

jshint: {
all: ['Gruntfile.js', 'imageflip.js']
}

});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['jshint', 'uglify']);

};
4 changes: 2 additions & 2 deletions imageflip.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function ImageFlip(p_el, p_urls, p_time){
function ImageFlip(p_el, p_urls, p_time) {

var id, i,
time = p_time || 2500,
Expand All @@ -23,5 +23,5 @@ function ImageFlip(p_el, p_urls, p_time){

return {
start: start
}
};
}