Skip to content

Commit

Permalink
Merge pull request #1044 from DmitryBaranovskiy/webpack
Browse files Browse the repository at this point in the history
Webpack and v2.2.0
  • Loading branch information
tomasAlabes committed Apr 13, 2016
2 parents cca8f94 + 44644e5 commit a5cd61a
Show file tree
Hide file tree
Showing 26 changed files with 16,432 additions and 16,769 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,6 @@
module.exports = {
"extends": "standard",
"plugins": [
"standard"
]
};
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
@@ -1,9 +1,11 @@
## Want to contribute?

All changes in code must go to `raphael.core`, `raphael.svg` or `raphael.vml`.
`raphael.js` and `raphael-min.js` are generated files, generated after running `grunt` in the `dev` directory.
The rest are generated files, generated after running `npm run build`.

After changing the core/vml/svg files, execute `grunt` in the dev folder to generate the minified version, make a commit and you are ready to make a pull request!
To run tests you need to open `dev/test/index.html` in your browser, there's no automated way right now.

After changing the core/vml/svg files, execute `npm run build` to generate all versions, make a commit and you are ready to make a pull request!
Remember that if you want to add a functionality it must be present in the vml and svg versions, **no svg-only features will be accepted.**

## Found an issue?
Expand Down
24 changes: 17 additions & 7 deletions README.md
Expand Up @@ -7,14 +7,24 @@ Visit the library website for more information: ~~[http://raphaeljs.com](http://
You need to have NPM installed to build the library.

* `git clone https://github.com/DmitryBaranovskiy/raphael.git`
* `npm install && bower install && ./node_modules/grunt-cli/bin/grunt` or just `npm install && bower install && grunt` if you have grunt already installed
* `npm run start`
* `npm run build`

To run tests you need to open `dev/test/index.html` in your browser, there's no automated way right now.

## Dependencies
* [eve](https://github.com/adobe-webplatform/eve)

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).
For AMD loading like Browserify, you can use raphael.amd.js.

## Distributable

All files are UMD compliant.

You can use:
* `raphael.min.js` (includes `eve` and it's minified)
* `raphael.js` (includes `eve` and it's not minified)
* `raphael.no-deps.js` (doesn't include `eve` it's not minified)
* `raphael.no-deps.min.js` (doesn't include `eve` it's minified)

## Where to start
Check [Raphael-boilerplate](https://github.com/tomasAlabes/raphael-boilerplate) to see examples of loading.
Expand All @@ -29,12 +39,12 @@ define([ "path/to/raphael" ], function( Raphael ) {

## Development

Versions will be released as we gather and test new PRs. Each version should have a correspondent branch.
As there are not automated tests, we will use the feedback from the users for the fixes.
Versions will be released as we gather and test new PRs.
As there are a lot of browsers being supported it might take a while to accept a PR, we will use the feedback from other users too.


You can use the `raphaelTest.html` to try things, you need to start a server in the root dir to start testing things there.
Something like running `python -m SimpleHTTPServer` in the `raphael` directory and hitting `http://localhost:8000/dev/raphaelTest.html` with the browser. You should run `npm install -g bower && bower install -D ` before this can work.
Something like running `python -m SimpleHTTPServer` in the `raphael` directory and hitting `http://localhost:8000/dev/raphaelTest.html` with the browser. You should run `npm run start` before this can work.


## Collaborators
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "raphael",
"main": "raphael.js",
"main": "raphael.min.js",
"description": "JavaScript Vector Library",
"dependencies": {
"eve": "https://github.com/adobe-webplatform/eve.git#eef80ed"
Expand Down
23 changes: 0 additions & 23 deletions cortex.json

This file was deleted.

11 changes: 0 additions & 11 deletions dev/.jshintrc

This file was deleted.

16 changes: 0 additions & 16 deletions dev/amdDev.js

This file was deleted.

8 changes: 8 additions & 0 deletions dev/banner.txt
@@ -0,0 +1,8 @@
// ┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.2.0 - JavaScript Vector Library │ \\
// ├───────────────────────────────────────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2016 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyright © 2008-2016 Sencha Labs (http://sencha.com) │ \\
// ├───────────────────────────────────────────────────────────────────────────────────────────────────────┤ \\
// │ Licensed under the MIT (https://github.com/DmitryBaranovskiy/raphael/blob/master/license.txt) license.│ \\
// └───────────────────────────────────────────────────────────────────────────────────────────────────────┘ \\
8 changes: 0 additions & 8 deletions dev/copy.js

This file was deleted.

0 comments on commit a5cd61a

Please sign in to comment.