Skip to content

Commit

Permalink
feat(build): src dist without sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasAlabes committed Aug 14, 2019
1 parent bf3dcd3 commit d8fbe4b
Show file tree
Hide file tree
Showing 12 changed files with 17,022 additions and 861 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.idea
*.iml
.history
.vscode

bower_components/
node_modules/
npm-debug.log
yarn-error.log
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Raphaël: Cross-browser vector graphics the easy way.
# Raphaël: Cross-browser vector graphics the easy way

Visit the library website for more information: ~~[http://raphaeljs.com](http://raphaeljs.com/)~~ [https://dmitrybaranovskiy.github.io/raphael/](https://dmitrybaranovskiy.github.io/raphael/)

Expand All @@ -7,26 +7,28 @@ 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 run start`
* `npm run build`
* `yarn install --frozen-lockfile`
* `yarn build-all`

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

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

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

## Distributable
## 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.

Raphael can be loaded in a script tag or with AMD:
Expand All @@ -42,11 +44,9 @@ define([ "path/to/raphael" ], function( Raphael ) {
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 run start` before this can work.


## Collaborators

* [tomasAlabes](https://github.com/tomasAlabes)
Expand All @@ -60,7 +60,6 @@ Something like running `python -m SimpleHTTPServer` in the `raphael` directory a
* [snap](https://github.com/adobe-webplatform/Snap.svg)
* [react-raphael](https://github.com/liuhong1happy/react-raphael)


## Books

* [Learning Raphael JS Vector Graphics](http://shop.oreilly.com/product/9781782169161.do)
Expand All @@ -69,8 +68,8 @@ Something like running `python -m SimpleHTTPServer` in the `raphael` directory a

## Copyright and license

Copyright © 2008-2013 Dmitry Baranovskiy (http://dmitrybaranovskiy.github.io/raphael/)
Copyright © 2008-2013 Dmitry Baranovskiy (`http://dmitrybaranovskiy.github.io/raphael/`)

Copyright © 2008-2013 Sencha Labs (http://sencha.com)
Copyright © 2008-2013 Sencha Labs (`http://sencha.com`)

Licensed under the **MIT** (http://dmitrybaranovskiy.github.io/raphael/license.html) license.
Licensed under the **MIT** (`http://dmitrybaranovskiy.github.io/raphael/license.html`) license.
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"moduleType": [
"amd",
"globals",
"node"
"globals"
],
"keywords": ["svg", "vml", "javascript"],
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion dev/banner.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.2.8 - JavaScript Vector Library │ \\
// │ Raphaël 2.3.0 - JavaScript Vector Library │ \\
// ├───────────────────────────────────────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2016 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyright © 2008-2016 Sencha Labs (http://sencha.com) │ \\
Expand Down
2 changes: 1 addition & 1 deletion dev/raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define(["eve"], function(eve) {
}
}
}
R.version = "2.2.8";
R.version = "2.3.0";
R.eve = eve;
var loaded,
separator = /[, ]+/,
Expand Down
5 changes: 5 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.3.0
------------------
* Unminified versions now without sourcemaps (#1110)
* `start` script for building all versions (#1109)

2.2.8
------------------
* Downgraded qunit to v1 to make tests work again
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raphael",
"version": "2.2.8",
"version": "2.3.0",
"description": "JavaScript Vector Library",
"main": "raphael.min.js",
"author": {
Expand All @@ -17,15 +17,17 @@
},
"devDependencies": {
"qunitjs": "^1.0.0",
"webpack": "4.29.6",
"webpack-cli": "3.3.0"
"webpack": "4.39.2",
"webpack-cli": "3.3.6"
},
"scripts": {
"build-dev": "webpack -d",
"build-no-deps": "webpack --env.noDeps -d --output-filename raphael.no-deps.js",
"start": "yarn build-all",
"dev": "webpack -d",
"build-src": "webpack -d --devtool none",
"build-no-deps": "webpack --env.noDeps -d --devtool none --output-filename raphael.no-deps.js",
"build-no-deps-min": "webpack --env.noDeps -p --output-filename raphael.no-deps.min.js",
"build-prod": "webpack -p --output-filename raphael.min.js",
"build-all": "yarn build-dev && yarn build-no-deps && yarn build-no-deps-min && yarn build-prod",
"build-all": "yarn build-src && yarn build-no-deps && yarn build-no-deps-min && yarn build-prod",
"test": "echo \"Open dev/test/index.html with your browser\" && exit 1",
"prepublishOnly": "yarn build-all"
},
Expand Down
8,286 changes: 8,280 additions & 6 deletions raphael.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion raphael.min.js

Large diffs are not rendered by default.

7,859 changes: 7,853 additions & 6 deletions raphael.no-deps.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion raphael.no-deps.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit d8fbe4b

Please sign in to comment.