From efa2de2f0491e751f3221e102724b838a280bf44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B0=D0=B2=D1=80=D1=91=D0=BD=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=BD?= Date: Thu, 17 Apr 2014 17:58:51 +0800 Subject: [PATCH] npm ready --- .npmignore | 1 + .travis.yml | 18 +++++++++++++----- Gruntfile.js | 2 +- README.md | 11 +++++++---- package.json | 2 +- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/.npmignore b/.npmignore index 1ae19528..3d2a9a4a 100644 --- a/.npmignore +++ b/.npmignore @@ -2,6 +2,7 @@ dist doc-includes jsdoc-master src +docs test .travis.yml Gruntfile.js diff --git a/.travis.yml b/.travis.yml index 0af49e47..0bd505ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,18 @@ language: node_js node_js: - - "0.11" +- '0.11' branches: only: - - master + - master before_script: - - npm install -script: - - grunt test \ No newline at end of file +- npm install +script: +- grunt test +deploy: + provider: npm + email: lavrton@gmail.com + api_key: + secure: rYqyBhn3K8tnt/XK6RFodBiIsIqwmUuPBEAOQxRt/elK4F7BVC+ba7/xgsvdFLP+Bqn4sS8b/YjfxUqm0lfxoph3qvvyKZ+qjuGCXBtvbY8EgGqX3FJKq/LJp8Vu4encCUOpI3PWXQEB+0OrC8ntKnBn1L1WP6lzDbRHj49e9ew= + on: + tags: true + repo: ericdrowell/KineticJS diff --git a/Gruntfile.js b/Gruntfile.js index 1f918c0f..00c15ead 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -171,7 +171,7 @@ module.exports = function(grunt) { }, uglify: { options: { - banner: '/*! <%= pkg.name %> v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> http://www.kineticjs.com by Eric Rowell @ericdrowell - MIT License https://github.com/ericdrowell/KineticJS/wiki/License*/\n' + banner: '/*! KineticJS v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> http://www.kineticjs.com by Eric Rowell @ericdrowell - MIT License https://github.com/ericdrowell/KineticJS/wiki/License*/\n' }, build: { files: { diff --git a/README.md b/README.md index 55d36446..99684c15 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,15 @@ Run `grunt docs` which will build the documentation files and place them in the #NodeJS -Support of NodeJS is experimental.An nmp package is not yet published. +Support of NodeJS is experimental. -We are using (node-canvas)[https://github.com/LearnBoost/node-canvas] to create canvas element. +We are using [node-canvas](https://github.com/LearnBoost/node-canvas) to create canvas element. -* You have to install node-canvas dependencies (https://github.com/LearnBoost/node-canvas/wiki/_pages)[https://github.com/LearnBoost/node-canvas/wiki/_pages] -* Run `npm install KineticJS` +### Instalation + +1. Install node-canvas [https://github.com/LearnBoost/node-canvas/wiki/_pages](https://github.com/LearnBoost/node-canvas/wiki/_pages) +2. `npm install jsdom` +3. `npm install kinetic` ###Example diff --git a/package.json b/package.json index aa7deba1..3ccfa44b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "KineticJS", + "name": "kinetic", "version": "5.1.1", "devDependencies": { "grunt-contrib-jshint": "0.8.0",