npm ready

This commit is contained in:
Лаврёнов Антон 2014-04-17 17:58:51 +08:00
parent 61542ea6cc
commit efa2de2f04
5 changed files with 23 additions and 11 deletions

View File

@ -2,6 +2,7 @@ dist
doc-includes
jsdoc-master
src
docs
test
.travis.yml
Gruntfile.js

View File

@ -1,10 +1,18 @@
language: node_js
node_js:
- "0.11"
- '0.11'
branches:
only:
- master
- master
before_script:
- npm install
script:
- grunt test
- 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

View File

@ -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: {

View File

@ -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

View File

@ -1,5 +1,5 @@
{
"name": "KineticJS",
"name": "kinetic",
"version": "5.1.1",
"devDependencies": {
"grunt-contrib-jshint": "0.8.0",