Skip to content

Commit

Permalink
added: Travis CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaepke committed Sep 4, 2014
1 parent 637cc40 commit 8ffe769
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 33 deletions.
File renamed without changes.
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.10"
before_script:
- "node dev/build"
10 changes: 7 additions & 3 deletions ScrollMagic.jquery.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "ScrollMagic",
"version": "1.1.0-alpha",
"title": "ScrollMagic",
"version": "1.1.0-alpha",
"description": "The jQuery plugin for magical scroll interactions.",
"author": {
"name": "Jan Paepke",
"url": "http://www.janpaepke.de"
Expand All @@ -12,24 +13,27 @@
"url": "https://github.com/janpaepke/ScrollMagic/blob/master/LICENSE.md"
},
{
"type": "GPL",
"type": "GPL-3.0+",
"url": "http://www.gnu.org/licenses/gpl-3.0.html"
}
],
"dependencies": {
"jquery": ">=1.7",
"greensock": ">=1.8"
},
"description": "The jQuery plugin for magical scroll interactions.",
"keywords": [
"scroll",
"scrolling",
"animation",
"sticky",
"pin",
"fixed",
"scrollbar",
"position",
"progress"
"parallax",
"events",
"classes"
],
"homepage": "http://janpaepke.github.io/ScrollMagic/",
"docs": "http://janpaepke.github.io/ScrollMagic/docs",
Expand Down
32 changes: 26 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
{
"name": "ScrollMagic",
"description": "The jQuery plugin for magical scroll interactions.",
"version": "1.1.0-alpha",
"description": "The jQuery plugin for magical scroll interactions.",
"homepage": "http://janpaepke.github.io/ScrollMagic/",
"author": {
"name": "Jan Paepke",
"url": "http://www.janpaepke.de"
},
"authors": [
{
"name": "Jan Paepke",
"homepage": "http://www.janpaepke.de"
}
],
"main": [
"js/jquery.scrollmagic.js"
],
"keywords": [
"scroll",
"scrolling",
"animation",
"sticky",
"pin",
"fixed",
"scrollbar",
"position",
"progress"
"parallax",
"events",
"classes"
],
"dependencies": {
"jquery": "~1.11.0",
"gsap": "~> 1.11.5"
}
},
"license" : [
"MIT",
"GPL-3.0+"
]
}
6 changes: 3 additions & 3 deletions dev/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"use strict";

// vars
var pkg = require('./package.json');
var pkg = require('../package.json');

// internals
var fs = require('fs');
Expand Down Expand Up @@ -286,7 +286,7 @@ for (var release in OUTPUT) {
// update version numbers?
if (options.version !== pkg.version) {
// where?
var jsonFiles = ["package.json", "../bower.json", "../ScrollMagic.jquery.json"];
var jsonFiles = ["../package.json", "../bower.json", "../ScrollMagic.jquery.json"];
var readmeFile = "../README.md";
// go!
log.info("Updating version numbers to", options.version);
Expand Down Expand Up @@ -314,7 +314,7 @@ if (options.version !== pkg.version) {
if (options.updateDocs) {
log.info("Generating new docs");
var
bin = '"' + abspath('node_modules/.bin/jsdoc') + '"',
bin = '"' + abspath('../node_modules/.bin/jsdoc') + '"',
docIn = '"' + abspath('../README.md') + '"',
docOut = '-d "' + options.folderDocsOut + '"',
conf = '-c "' + abspath('docs/jsdoc.conf.json') + '"',
Expand Down
21 changes: 0 additions & 21 deletions dev/package.json

This file was deleted.

48 changes: 48 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "ScrollMagic",
"title": "ScrollMagic",
"version": "1.1.0-alpha",
"description": "The jQuery plugin for magical scroll interactions.",
"author": {
"name": "Jan Paepke",
"url": "http://www.janpaepke.de"
},
"repository": {
"type": "git",
"url": "git://github.com/janpaepke/ScrollMagic.git"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/janpaepke/ScrollMagic/blob/master/LICENSE.md"
},
{
"type": "GPL-3.0+",
"url": "http://www.gnu.org/licenses/gpl-3.0.html"
}
],
"main": "js/jquery.scrollmagic.js",
"engines": {
"node": "0.10.x"
},
"devDependencies": {
"chalk": "^0.5.1",
"detect-indent": "^0.2.0",
"jsdoc": "^3.3.0",
"jshint": "~2.5.1",
"karma": "^0.12.21",
"karma-chrome-launcher": "^0.1.4",
"karma-jasmine": "^0.2.2",
"karma-requirejs": "^0.2.2",
"semver": "^3.0.1",
"uglify-js": "~2.4.13"
},
"directories": {
"doc":"./doc",
"example":"./examples"
},
"scripts": {
"pretest": "npm install",
"test": "./node_modules/karma/bin/karma start ./dev/tests/karma.conf.js"
}
}

0 comments on commit 8ffe769

Please sign in to comment.