Skip to content

Commit d8fbe4b

Browse files
committed
feat(build): src dist without sourcemaps
1 parent bf3dcd3 commit d8fbe4b

12 files changed

+17022
-861
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.idea
22
*.iml
3+
.history
4+
.vscode
35

6+
bower_components/
47
node_modules/
58
npm-debug.log
69
yarn-error.log

README.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Raphaël: Cross-browser vector graphics the easy way.
1+
# Raphaël: Cross-browser vector graphics the easy way
22

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

@@ -7,26 +7,28 @@ Visit the library website for more information: ~~[http://raphaeljs.com](http://
77
You need to have NPM installed to build the library.
88

99
* `git clone https://github.com/DmitryBaranovskiy/raphael.git`
10-
* `npm run start`
11-
* `npm run build`
10+
* `yarn install --frozen-lockfile`
11+
* `yarn build-all`
1212

13-
To run tests you need to open `dev/test/index.html` in your browser, there's no automated way right now.
13+
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.
1414

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

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

19-
## Distributable
19+
## Distributable
2020

2121
All files are UMD compliant.
2222

2323
You can use:
24+
2425
* `raphael.min.js` (includes `eve` and it's minified)
2526
* `raphael.js` (includes `eve` and it's not minified)
2627
* `raphael.no-deps.js` (doesn't include `eve` it's not minified)
2728
* `raphael.no-deps.min.js` (doesn't include `eve` it's minified)
2829

2930
## Where to start
31+
3032
Check [Raphael-boilerplate](https://github.com/tomasAlabes/raphael-boilerplate) to see examples of loading.
3133

3234
Raphael can be loaded in a script tag or with AMD:
@@ -42,11 +44,9 @@ define([ "path/to/raphael" ], function( Raphael ) {
4244
Versions will be released as we gather and test new PRs.
4345
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.
4446

45-
4647
You can use the `raphaelTest.html` to try things, you need to start a server in the root dir to start testing things there.
4748
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.
4849

49-
5050
## Collaborators
5151

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

63-
6463
## Books
6564

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

7069
## Copyright and license
7170

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

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

76-
Licensed under the **MIT** (http://dmitrybaranovskiy.github.io/raphael/license.html) license.
75+
Licensed under the **MIT** (`http://dmitrybaranovskiy.github.io/raphael/license.html`) license.

bower.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
},
1111
"moduleType": [
1212
"amd",
13-
"globals",
14-
"node"
13+
"globals"
1514
],
1615
"keywords": ["svg", "vml", "javascript"],
1716
"authors": [

dev/banner.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐ \\
2-
// │ Raphaël 2.2.8 - JavaScript Vector Library │ \\
2+
// │ Raphaël 2.3.0 - JavaScript Vector Library │ \\
33
// ├───────────────────────────────────────────────────────────────────────────────────────────────────────┤ \\
44
// │ Copyright © 2008-2016 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
55
// │ Copyright © 2008-2016 Sencha Labs (http://sencha.com) │ \\

dev/raphael.core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ define(["eve"], function(eve) {
6767
}
6868
}
6969
}
70-
R.version = "2.2.8";
70+
R.version = "2.3.0";
7171
R.eve = eve;
7272
var loaded,
7373
separator = /[, ]+/,

history.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.3.0
2+
------------------
3+
* Unminified versions now without sourcemaps (#1110)
4+
* `start` script for building all versions (#1109)
5+
16
2.2.8
27
------------------
38
* Downgraded qunit to v1 to make tests work again

package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raphael",
3-
"version": "2.2.8",
3+
"version": "2.3.0",
44
"description": "JavaScript Vector Library",
55
"main": "raphael.min.js",
66
"author": {
@@ -17,15 +17,17 @@
1717
},
1818
"devDependencies": {
1919
"qunitjs": "^1.0.0",
20-
"webpack": "4.29.6",
21-
"webpack-cli": "3.3.0"
20+
"webpack": "4.39.2",
21+
"webpack-cli": "3.3.6"
2222
},
2323
"scripts": {
24-
"build-dev": "webpack -d",
25-
"build-no-deps": "webpack --env.noDeps -d --output-filename raphael.no-deps.js",
24+
"start": "yarn build-all",
25+
"dev": "webpack -d",
26+
"build-src": "webpack -d --devtool none",
27+
"build-no-deps": "webpack --env.noDeps -d --devtool none --output-filename raphael.no-deps.js",
2628
"build-no-deps-min": "webpack --env.noDeps -p --output-filename raphael.no-deps.min.js",
2729
"build-prod": "webpack -p --output-filename raphael.min.js",
28-
"build-all": "yarn build-dev && yarn build-no-deps && yarn build-no-deps-min && yarn build-prod",
30+
"build-all": "yarn build-src && yarn build-no-deps && yarn build-no-deps-min && yarn build-prod",
2931
"test": "echo \"Open dev/test/index.html with your browser\" && exit 1",
3032
"prepublishOnly": "yarn build-all"
3133
},

raphael.js

+8,280-6
Large diffs are not rendered by default.

raphael.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

raphael.no-deps.js

+7,853-6
Large diffs are not rendered by default.

raphael.no-deps.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)