Commit 5398c90c authored by Tomas Alabes's avatar Tomas Alabes

nodeps version

parent d9365a7c
node_modules
neurons
build
raphael.pro-min.js
raphael.pro.js
/.idea
bower_components/
......@@ -16,7 +16,11 @@ module.exports = function(grunt) {
},
dist: {
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: {
......@@ -30,7 +34,7 @@ module.exports = function(grunt) {
files: [{
expand: true,
flatten: true,
src: "<%= concat.dist.dest %>",
src: ["<%= concat.dist.dest %>", "<%= concat.nodeps.dest %>"],
dest: "./"
}]
}
......@@ -45,6 +49,15 @@ module.exports = function(grunt) {
"dev/raphael.vml.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.
## Dependencies
* [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.
Raphael can be loaded in a script tag or with AMD:
......
......@@ -8,7 +8,6 @@
"requirejs": "~2.1.17"
},
"ignore": [
"eve",
"**/.*",
"*.html",
"*.json",
......@@ -16,9 +15,6 @@
"*.md",
"copy.js",
"Gruntfile.js",
"raphael.core.js",
"raphael.svg.js",
"raphael.vml.js",
"reference.js"
]
}
......@@ -2,8 +2,9 @@
require.config({
paths: {
raphael: '../raphael'/*,
eve: '../bower_components/eve/eve'*/
raphael: '../raphael'
//you will need eve if you use the nodeps version
/*eve: '../bower_components/eve/eve'*/
}
});
......
......@@ -7,7 +7,7 @@
<!-- Global use -->
<!-- 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 -->
<!--<script type="text/javascript" src="../raphael-min.js"></script>-->
......@@ -20,18 +20,18 @@
<!--<script type="text/javascript" src="raphael.vml.js"></script>-->
<!-- Comment this script tag if you are testing with AMD -->
<script type="text/javascript">
<!--<script type="text/javascript">
// Initialize container when document is loaded
window.onload = function () {
paper = Raphael(0, 0, 640, 720, "container");
paper.circle(100, 100, 100); //example
};
//Work here, in a separate script file or via command line
</script>
</script>-->
<!-- Use amdDev.js to work with AMD and Raphael -->
<!-- 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>
<body>
......
2.1.5 • WIP
2.2.0 • WIP
------------------
* Defined nodeps version, and changed how raphael is loaded
* Set stop-opacity in gradient defs
* Fixed rounding issue in RGB formatter
......
This diff is collapsed.
This diff is collapsed.
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 to comment