From 0064f73277b48fcf3ef2d8c29f1861e6e5214b3e Mon Sep 17 00:00:00 2001 From: Bill Dwyer Date: Wed, 23 Sep 2015 13:51:15 -0700 Subject: [PATCH] setting up semantic release. --- .travis.yml | 17 +++++++++++++ package.json | 67 ++++++++++++++++++++++++++-------------------------- 2 files changed, 51 insertions(+), 33 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8d70f02 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +sudo: false +language: node_js +cache: + directories: + - node_modules +notifications: + email: false +node_js: + - iojs +before_install: + - npm i -g npm@^2.0.0 +before_script: + - npm prune +script: + - npm run test +after_success: + - npm run semantic-release diff --git a/package.json b/package.json index f5f8ec5..3a31cf2 100644 --- a/package.json +++ b/package.json @@ -1,44 +1,45 @@ { - "name" : "seen", - "description" : "seen.js is a library for drawing simple 3D scenes in SVG and HTML5 Canvas elements.", - "version" : "0.2.4", - "author" : "Bill Dwyer", - "license" : "Apache 2.0", - "url" : "http://seenjs.io", - "repository" : { - "type" : "git", - "url" : "https://github.com/themadcreator/seen" + "name": "seen", + "description": "seen.js is a library for drawing simple 3D scenes in SVG and HTML5 Canvas elements.", + "author": "Bill Dwyer", + "license": "Apache 2.0", + "url": "http://seenjs.io", + "repository": { + "type": "git", + "url": "https://github.com/themadcreator/seen" }, - "private" : true, - "main" : "dist/latest/seen.min.js", - "keywords" : [ + "private": true, + "main": "dist/latest/seen.min.js", + "keywords": [ "3d", "svg", "canvas" ], "scripts": { - "build" : "cake build", - "site" : "nodemon --ext coffee,html,md,css --watch src --watch site --exec ./run-site.sh .", - "publish-site" : "./publish-site.sh", - "test-render" : "phantomjs ./test/phantom/render-scenes.coffee", - "test" : "mocha ./test/mocha/*.coffee" + "build": "cake build", + "site": "nodemon --ext coffee,html,md,css --watch src --watch site --exec ./run-site.sh .", + "publish-site": "./publish-site.sh", + "test-render": "phantomjs ./test/phantom/render-scenes.coffee", + "test": "mocha ./test/mocha/*.coffee", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "devDependencies": { - "chai" : ">=1.9.1", - "coffee-script" : ">=1.9.x", - "docco" : ">=0.7.0", - "exec-sync" : ">=0.1.6", - "express" : ">=3.5.0", - "highlight.js" : ">=8.0.0", - "lodash" : ">=2.4.1", - "marked" : ">=0.3.2", - "mocha" : ">=1.18.2", - "nodemon" : ">=1.0.17", - "path" : ">=0.4.9", - "phantomjs" : ">=1.9.7-1", - "pngjs" : ">=0.4.0", - "q" : ">=1.0.1", - "swig" : ">=1.3.2", - "uglify-js" : ">=2.4.13" + "chai": ">=1.9.1", + "coffee-script": ">=1.9.x", + "docco": ">=0.7.0", + "exec-sync": ">=0.1.6", + "express": ">=3.5.0", + "highlight.js": ">=8.0.0", + "lodash": ">=2.4.1", + "marked": ">=0.3.2", + "mocha": ">=1.18.2", + "nodemon": ">=1.0.17", + "path": ">=0.4.9", + "phantomjs": ">=1.9.7-1", + "pngjs": ">=0.4.0", + "q": ">=1.0.1", + "swig": ">=1.3.2", + "uglify-js": ">=2.4.13", + "semantic-release": "^4.3.5" } }