Permalink
Browse files

update run script for travis

  • Loading branch information...
1 parent baccd33 commit ee0b3c423654595b408974609285b39e3131253f @meandmax committed Sep 26, 2015
Showing with 39 additions and 32 deletions.
  1. +1 −0 .eslintignore
  2. +4 −1 .travis.yml
  3. +7 −7 demo/js/jquery.lory.js
  4. +7 −7 demo/js/lory.js
  5. +7 −7 dist/jquery.lory.js
  6. +7 −7 dist/lory.js
  7. +4 −1 package.json
  8. +1 −1 src/jquery.lory.js
  9. +1 −1 src/lory.js
View
@@ -0,0 +1 @@
+./src/jquery.lory.js
View
@@ -1,4 +1,7 @@
language: node_js
node_js:
+ - "0.12"
+ - "0.11"
- "0.10"
-script: "node_modules/.bin/grunt build"
+ - "iojs"
+script: "npm run build"
@@ -162,13 +162,13 @@ return /******/ (function(modules) { // webpackBootstrap
}
/**
- * slidefunction called by prev, next & touchend
- *
- * determine nextIndex and slide to next postion
- * under restrictions of the defined options
- *
- * @direction {boolean}
- */
+ * slidefunction called by prev, next & touchend
+ *
+ * determine nextIndex and slide to next postion
+ * under restrictions of the defined options
+ *
+ * @direction {boolean}
+ */
function slide(nextIndex, direction) {
var currentSlide = index;
var nextSlide = direction ? index + 1 : index - 1;
View
@@ -162,13 +162,13 @@ return /******/ (function(modules) { // webpackBootstrap
}
/**
- * slidefunction called by prev, next & touchend
- *
- * determine nextIndex and slide to next postion
- * under restrictions of the defined options
- *
- * @direction {boolean}
- */
+ * slidefunction called by prev, next & touchend
+ *
+ * determine nextIndex and slide to next postion
+ * under restrictions of the defined options
+ *
+ * @direction {boolean}
+ */
function slide(nextIndex, direction) {
var currentSlide = index;
var nextSlide = direction ? index + 1 : index - 1;
View
@@ -162,13 +162,13 @@ return /******/ (function(modules) { // webpackBootstrap
}
/**
- * slidefunction called by prev, next & touchend
- *
- * determine nextIndex and slide to next postion
- * under restrictions of the defined options
- *
- * @direction {boolean}
- */
+ * slidefunction called by prev, next & touchend
+ *
+ * determine nextIndex and slide to next postion
+ * under restrictions of the defined options
+ *
+ * @direction {boolean}
+ */
function slide(nextIndex, direction) {
var currentSlide = index;
var nextSlide = direction ? index + 1 : index - 1;
View
@@ -162,13 +162,13 @@ return /******/ (function(modules) { // webpackBootstrap
}
/**
- * slidefunction called by prev, next & touchend
- *
- * determine nextIndex and slide to next postion
- * under restrictions of the defined options
- *
- * @direction {boolean}
- */
+ * slidefunction called by prev, next & touchend
+ *
+ * determine nextIndex and slide to next postion
+ * under restrictions of the defined options
+ *
+ * @direction {boolean}
+ */
function slide(nextIndex, direction) {
var currentSlide = index;
var nextSlide = direction ? index + 1 : index - 1;
View
@@ -39,6 +39,9 @@
"clamp.js": "^0.2.2",
"custom-event": "^1.0.0",
"dependency-check": "^2.5.0",
+ "eslint": "^1.5.1",
+ "eslint-config-standard": "^4.4.0",
+ "eslint-plugin-standard": "^1.3.1",
"karma-chai": "latest",
"karma-chrome-launcher": "latest",
"karma-fixture": "latest",
@@ -56,7 +59,7 @@
"lint": "eslint src",
"karma": "npm run karma start",
"prebuild": "cat src/lory.js src/jquery.plugin.js > src/jquery.lory.js",
- "build": "webpack",
+ "build": "npm run lint && webpack",
"uglify": "uglifyjs dist/lory.js -o dist/lory.min.js --compress --mangle && uglifyjs dist/jquery.lory.js -o dist/jquery.lory.min.js --compress --mangle",
"postbuild": "npm run uglify && cp -r dist/* demo/js/",
"devserver": "webpack-dev-server",
View
@@ -86,7 +86,7 @@ export default function lory (slider, opts) {
}
}
- /**
+ /**
* slidefunction called by prev, next & touchend
*
* determine nextIndex and slide to next postion
View
@@ -86,7 +86,7 @@ export default function lory (slider, opts) {
}
}
- /**
+ /**
* slidefunction called by prev, next & touchend
*
* determine nextIndex and slide to next postion

0 comments on commit ee0b3c4

Please sign in to comment.