Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 07715d1

Browse files
committedJul 11, 2014
Merge pull request DmitryBaranovskiy#879 from supersheep/master
use cortex to manage dependencies
2 parents 5234aa3 + fb1a087 commit 07715d1

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed
 

‎.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
2+
neurons
3+
build
24
raphael.pro-min.js
35
raphael.pro.js
4-
/.idea
6+
/.idea

‎cortex.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "raphael",
3+
"version": "2.1.2",
4+
"description": "JavaScript Vector Library",
5+
"main": "./dev",
6+
"repository": "git://github.com/DmitryBaranovskiy/raphael.git",
7+
"keywords": [
8+
"vector",
9+
"canvas",
10+
"visualization"
11+
],
12+
"license": "MIT",
13+
"author": {
14+
"name": "Dmitry Baranovskiy"
15+
},
16+
"bugs": {
17+
"url": "http://github.com/DmitryBaranovskiy/raphael/issues"
18+
},
19+
"homepage": "http://raphaeljs.com/",
20+
"dependencies" : {
21+
"eve":"^0.5.0"
22+
}
23+
}

‎dev/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var core = require('./raphael.core');
2+
if(core.svg){
3+
require('./raphael.svg');
4+
}
5+
if(core.vml){
6+
require('./raphael.vml');
7+
}
8+
module.exports = core;

‎dev/raphael.core.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
} else {
1717
// Browser globals (glob is window)
1818
// Raphael adds itself to window
19-
factory(glob, glob.eve);
19+
factory(glob, glob.eve || (typeof require == "function" && require('eve')) );
2020
}
2121
}(this, function (window, eve) {
2222
/*\
@@ -5376,5 +5376,8 @@
53765376
// Even with AMD, Raphael should be defined globally
53775377
oldRaphael.was ? (g.win.Raphael = R) : (Raphael = R);
53785378

5379+
if(typeof exports == "object"){
5380+
module.exports = R;
5381+
}
53795382
return R;
53805383
}));

0 commit comments

Comments
 (0)
Please sign in to comment.