Commit 86463d02 by Tomas Alabes

Setted ground for contributions

parent e5856252
node_modules
raphael.pro-min.js
raphael.pro.js
[submodule "eve"]
path = eve
url = git://github.com/adobe-webplatform/eve.git
# Raphaël
# Raphaël: Cross-browser vector graphics the easy way.
Cross-browser vector graphics the easy way. Visit the library website for more information: [http://raphaeljs.com](http://raphaeljs.com/)
\ No newline at end of file
Visit the library website for more information: [http://raphaeljs.com](http://raphaeljs.com/)
## Quickstart guide
* `git clone https://github.com/DmitryBaranovskiy/raphael.git`
* `git submodule init && git submodule update && npm install`
(thank you [Wes Tood](https://github.com/wesleytodd))
### Dependencies
* [uglifyjs](https://github.com/mishoo/UglifyJS)
* [eve](https://github.com/adobe-webplatform/eve)
## Development
At the moment we have 4 milestones:
### v2.1.1
Milestone for bug fixes contributed by the community.
### v2.2.0
Milestone for enhancements from contributors pull requests.
### v2.2.1
Milestone with bug fixes added from issues created by community.
This fixes were not provided in the issues.
### v2.3.0
Milestone with enhancements suggested in issues but not provided by community at those issues.
We are organizing the current issues between this milestones, setting the grounds for people to contribute and start pushing code soon.
## Want to contribute?
All changes in code must go to `raphael.core`, `raphael.svg` or `raphael.vml`. `raphael.js` is a generated file.
After adding your changes, execute `./make`, the minified version will be created, commit and you are ready to make a pull request!
## Collaborators
* [tomasAlabes](https://github.com/tomasAlabes)
## Copyright and license
Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com)
Copyright © 2008-2012 Sencha Labs (http://sencha.com)
Licensed under the **MIT** (http://raphaeljs.com/license.html) license.
\ No newline at end of file
// ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.0 - JavaScript Vector Library │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\
// └────────────────────────────────────────────────────────────────────┘ \\
\ No newline at end of file
Subproject commit eef80ed8d188423c2272746fb8ae5cc8dad84cb1
#!/usr/bin/env node
var setup = {
input: {
core: "raphael.core.js",
svg: "raphael.svg.js",
vml: "raphael.vml.js",
eve: "../mywork/eve/eve.js",
copy: "copy.js"
},
output: {
"raphael-min.js": function () {
return this.copy + "\n" + minify(this.eve + this.core + this.svg + this.vml);
},
"raphael.js": function () {
return this.copy + "\n" + this.eve + "\n\n" + this.core + "\n\n" + this.svg + "\n\n" + this.vml;
},
"raphael.pro-min.js": function () {
return this.copy + "\n" + minify(this.eve + this.core + this.svg);
},
"raphael.pro.js": function () {
return this.copy + "\n" + this.eve + "\n\n" + this.core + "\n\n" + this.svg ;
},
}
},
ujs = require("/Users/dmitry/Sites/UglifyJS/uglify-js.js"),
jsp = ujs.parser,
pro = ujs.uglify,
fs = require("fs"),
rxdr = /\/\*\\[\s\S]+?\\\*\//g;
var ujs = require('uglify-js'),
fs = require('fs'),
input = {
core : 'raphael.core.js',
svg : 'raphael.svg.js',
vml : 'raphael.vml.js',
eve : './eve/eve.js',
copy : 'copy.js'
},
output = {
'raphael-min.js' : ['eve', 'core', 'svg', 'vml'],
'raphael.js' : ['eve', 'core', 'svg', 'vml'],
'raphael.pro-min.js' : ['eve', 'core', 'svg'],
'raphael.pro.js' : ['eve', 'core', 'svg'],
};
function minify(code) {
return pro.gen_code(pro.ast_squeeze(pro.ast_mangle(jsp.parse(code))));
for (var file in input) {
input[file] = fs.readFileSync(input[file], 'utf8');
}
var files = {};
for (var file in setup.input) {
files[file] = String(fs.readFileSync(setup.input[file], "utf8")).replace(rxdr, "");
for (var file in output) {
var out = '';
if (file.indexOf('min') !== -1) {
console.log('Compressing ' + file);
for (var i = 0, l = output[file].length; i < l; i++) {
var o = ujs.minify(input[output[file][i]], {
fromString : true
});
out += o.code;
}
} else {
console.log('Concatinating ' + file);
for (var i = 0, l = output[file].length; i < l; i++) {
out += input[output[file][i]] + '\n';
}
}
(function(f, code){
fs.writeFile(f, input.copy + '\n' + code, function(err) {
if (err) {
console.log(err);
} else {
console.log('Saved to \033[32m' + f + '\033[0m\n');
}
});
})(file, out);
}
for (file in setup.output) {
(function (file) {
fs.writeFile(file, setup.output[file].call(files), function () {
console.log("Saved to \033[32m" + file + "\033[0m\n");
});
})(file);
}
\ No newline at end of file
{
"name": "raphael",
"version": "2.1.0",
"description": "JavaScript Vector Library",
"main": "raphael.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/DmitryBaranovskiy/raphael.git"
},
"author": "Dmitry Baranovskiy",
"license": "MIT",
"readmeFilename": "README.markdown",
"gitHead": "52bff469f60988f1391e8b3d7cb5349163df8ba1",
"devDependencies": {
"uglify-js": "~2.2.3"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
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