mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Move Node.js specific things to dedicated folder.
This commit is contained in:
parent
70dc88ca91
commit
1f9993f894
2 changed files with 22 additions and 19 deletions
|
@ -2,6 +2,8 @@ var fs = require('fs'),
|
|||
vm = require('vm'),
|
||||
path = require('path');
|
||||
|
||||
__dirname = path.resolve(__dirname, '../src/');
|
||||
|
||||
// Create the context within which we will run the source files:
|
||||
var context = vm.createContext({
|
||||
options: {
|
||||
|
@ -27,6 +29,7 @@ var context = vm.createContext({
|
|||
}
|
||||
});
|
||||
|
||||
// Load Paper.js library files:
|
||||
context.include('paper.js');
|
||||
|
||||
context.Base.each(context, function(val, key) {
|
38
package.json
38
package.json
|
@ -1,20 +1,20 @@
|
|||
{ "name": "paper"
|
||||
, "description": "Vector graphics scripting framework"
|
||||
, "version": "0.2.1"
|
||||
, "contributors": [
|
||||
{ "name" : "Jürg Lehni"
|
||||
, "url" : "http://lehni.org"
|
||||
},
|
||||
{ "name" : "Jonathan Puckey"
|
||||
, "url" : "http://jonathanpuckey.com"
|
||||
}
|
||||
]
|
||||
, "homepage": "http://paperjs.org"
|
||||
, "keywords": ["canvas", "graphic", "graphics", "vector", "paper.js"]
|
||||
, "repository": "git://github.com/paperjs/paper.js/"
|
||||
, "dependencies": {
|
||||
"canvas": "0.7.0"
|
||||
}
|
||||
, "engines": { "node": ">= 0.4.0 && < 0.6.0" }
|
||||
, "main": "./src/loadCanvas.js"
|
||||
{
|
||||
"name": "paper",
|
||||
"description": "Vector graphics scripting framework",
|
||||
"version": "0.2.1",
|
||||
"contributors": [{
|
||||
"name" : "Jürg Lehni",
|
||||
"url" : "http://lehni.org"
|
||||
}, {
|
||||
"name" : "Jonathan Puckey",
|
||||
"url" : "http://jonathanpuckey.com"
|
||||
}],
|
||||
"homepage": "http://paperjs.org",
|
||||
"keywords": ["canvas", "graphic", "graphics", "vector", "paper.js"],
|
||||
"repository": "git://github.com/paperjs/paper.js/",
|
||||
"dependencies": {
|
||||
"canvas": "0.7.0"
|
||||
},
|
||||
"engines": { "node": ">= 0.4.0 && < 0.6.0" },
|
||||
"main": "./node.js/index.js"
|
||||
}
|
Loading…
Reference in a new issue