Commit 5398c90c by Tomas Alabes

nodeps version

parent d9365a7c
node_modules node_modules
neurons
build
raphael.pro-min.js
raphael.pro.js
/.idea /.idea
bower_components/ bower_components/
...@@ -16,7 +16,11 @@ module.exports = function(grunt) { ...@@ -16,7 +16,11 @@ module.exports = function(grunt) {
}, },
dist: { dist: {
src: "<%= concat.dist.dest %>", src: "<%= concat.dist.dest %>",
dest: "raphael-min.js" dest: "<%= pkg.name %>-min.js"
},
nodeps: {
src: "<%= concat.nodeps.dest %>",
dest: "<%= pkg.name %>-nodeps-min.js"
} }
}, },
replace: { replace: {
...@@ -30,7 +34,7 @@ module.exports = function(grunt) { ...@@ -30,7 +34,7 @@ module.exports = function(grunt) {
files: [{ files: [{
expand: true, expand: true,
flatten: true, flatten: true,
src: "<%= concat.dist.dest %>", src: ["<%= concat.dist.dest %>", "<%= concat.nodeps.dest %>"],
dest: "./" dest: "./"
}] }]
} }
...@@ -45,6 +49,15 @@ module.exports = function(grunt) { ...@@ -45,6 +49,15 @@ module.exports = function(grunt) {
"dev/raphael.vml.js", "dev/raphael.vml.js",
"dev/raphael.amd.js" "dev/raphael.amd.js"
] ]
},
nodeps: {
dest: "<%= pkg.name %>-nodeps.js",
src: [
"dev/raphael.core.js",
"dev/raphael.svg.js",
"dev/raphael.vml.js",
"dev/raphael.amd.js"
]
} }
} }
}); });
......
...@@ -12,7 +12,10 @@ You need to have NPM installed to build the library. ...@@ -12,7 +12,10 @@ You need to have NPM installed to build the library.
## Dependencies ## Dependencies
* [eve](https://github.com/adobe-webplatform/eve) * [eve](https://github.com/adobe-webplatform/eve)
## Loading You have the `raphael/raphael-min.js` files that has `eve` bundled inside, and `raphael-nodeps/raphael-nodeps-min.js`
where `eve` must be loaded by you first (you can try with the one in the `dev/` folder).
## Where to start
Check [Raphael-boilerplate](https://github.com/tomasAlabes/raphael-boilerplate) to see examples of loading. Check [Raphael-boilerplate](https://github.com/tomasAlabes/raphael-boilerplate) to see examples of loading.
Raphael can be loaded in a script tag or with AMD: Raphael can be loaded in a script tag or with AMD:
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
"requirejs": "~2.1.17" "requirejs": "~2.1.17"
}, },
"ignore": [ "ignore": [
"eve",
"**/.*", "**/.*",
"*.html", "*.html",
"*.json", "*.json",
...@@ -16,9 +15,6 @@ ...@@ -16,9 +15,6 @@
"*.md", "*.md",
"copy.js", "copy.js",
"Gruntfile.js", "Gruntfile.js",
"raphael.core.js",
"raphael.svg.js",
"raphael.vml.js",
"reference.js" "reference.js"
] ]
} }
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
require.config({ require.config({
paths: { paths: {
raphael: '../raphael'/*, raphael: '../raphael'
eve: '../bower_components/eve/eve'*/ //you will need eve if you use the nodeps version
/*eve: '../bower_components/eve/eve'*/
} }
}); });
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<!-- Global use --> <!-- Global use -->
<!-- To work with full version --> <!-- To work with full version -->
<script type="text/javascript" src="../raphael.js"></script> <!--<script type="text/javascript" src="../raphael.js"></script>-->
<!-- To work with minified version --> <!-- To work with minified version -->
<!--<script type="text/javascript" src="../raphael-min.js"></script>--> <!--<script type="text/javascript" src="../raphael-min.js"></script>-->
...@@ -20,18 +20,18 @@ ...@@ -20,18 +20,18 @@
<!--<script type="text/javascript" src="raphael.vml.js"></script>--> <!--<script type="text/javascript" src="raphael.vml.js"></script>-->
<!-- Comment this script tag if you are testing with AMD --> <!-- Comment this script tag if you are testing with AMD -->
<script type="text/javascript"> <!--<script type="text/javascript">
// Initialize container when document is loaded // Initialize container when document is loaded
window.onload = function () { window.onload = function () {
paper = Raphael(0, 0, 640, 720, "container"); paper = Raphael(0, 0, 640, 720, "container");
paper.circle(100, 100, 100); //example paper.circle(100, 100, 100); //example
}; };
//Work here, in a separate script file or via command line //Work here, in a separate script file or via command line
</script> </script>-->
<!-- Use amdDev.js to work with AMD and Raphael --> <!-- Use amdDev.js to work with AMD and Raphael -->
<!-- You need to do a 'bower install -D' first to get requirejs --> <!-- You need to do a 'bower install -D' first to get requirejs -->
<!--<script data-main="amdDev" src="../bower_components/requirejs/require.js"></script>--> <script data-main="amdDev" src="../bower_components/requirejs/require.js"></script>
</head> </head>
<body> <body>
......
2.1.5 • WIP 2.2.0 • WIP
------------------ ------------------
* Defined nodeps version, and changed how raphael is loaded
* Set stop-opacity in gradient defs * Set stop-opacity in gradient defs
* Fixed rounding issue in RGB formatter * Fixed rounding issue in RGB formatter
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment