Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build/
gh-pages/
# dist/ contains npm/npmcdn distributions and ES5 compiled index.js for use by git installs
# dist/ contains npm/unpkg distributions and ES5 compiled index.js for use by git installs
# dist/
node_modules/
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build/
demo/
# dist/ contains npm/npmcdn distributions and ES5 compiled index.js for use by git installs
# dist/ contains npm/unpkg distributions and ES5 compiled index.js for use by git installs
# dist/
gh-pages/
src/
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

### Features

* **dist:** All dists to dist/ and deploy all to github/npmcdn. Expanded README. ([41f8a93](https://github.com/saschwarz/react-svgpathplayer/commit/41f8a93))
* **dist:** All dists to dist/ and deploy all to github/unpkg. Expanded README. ([41f8a93](https://github.com/saschwarz/react-svgpathplayer/commit/41f8a93))


### BREAKING CHANGES
Expand Down Expand Up @@ -147,7 +147,7 @@
### Bug Fixes

* **npm:** Correct distributions ([071386b](https://github.com/saschwarz/react-svgpathplayer/commit/071386b))
* **npmcdn:** Document npmcdn and fix github pages deploy. ([bc3595b](https://github.com/saschwarz/react-svgpathplayer/commit/bc3595b))
* **unpkg:** Document unpkg and fix github pages deploy. ([bc3595b](https://github.com/saschwarz/react-svgpathplayer/commit/bc3595b))



Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class Demo extends React.Component {

See the [demo](http://saschwarz.github.io/react-svgpathplayer/script.html) using this component in a plain HTML/JS file.

A UMD build for use directly in the browser is available via CDN at https://npmcdn.com/react-svgpathplayer@latest/dist/react-svgpathplayer.min.js, https://npmcdn.com/react-svgpathplayer@latest/dist/react-svgpathplayer.js with corresponding map files.
A UMD build for use directly in the browser is available via CDN at https://unpkg.com/react-svgpathplayer@latest/dist/react-svgpathplayer.min.js, https://unpkg.com/react-svgpathplayer@latest/dist/react-svgpathplayer.js with corresponding map files.

You'll need to include all the dependencies:

Expand All @@ -68,8 +68,8 @@ You'll need to include all the dependencies:
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js"></script>
<!-- host it locally: -->
<script src="./react-svgpathplayer.min.js"></script>
<!-- or use the npmcdn: -->
<script src="https://npmcdn/react-svgpathplayer@latest/dist/react-svgpathplayer.min.js"></script>
<!-- or use the unpkg: -->
<script src="https://unpkg/react-svgpathplayer@latest/dist/react-svgpathplayer.min.js"></script>
<script>
var props1 = {svg:"./images/pathsegments.svg", path:".dog-path-0", segments:".dog-path-segments-0", marker:".dog", units:"yd", scale:1/36.0, loading:true, time:10236};
ReactDOM.render(React.createElement(SVGPathPlayer, props1), document.getElementById('player'));
Expand Down