Skip to content

Commit

Permalink
removing .umd suffix from umd build (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon authored Apr 11, 2018
1 parent 7aeb3d5 commit f00ffe2
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 117 deletions.
10 changes: 5 additions & 5 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"dist/react-beautiful-dnd.js": {
"bundled": 372144,
"minified": 142587,
"gzipped": 40258
},
"dist/react-beautiful-dnd.min.js": {
"bundled": 333499,
"minified": 126416,
"gzipped": 35488
},
"dist/react-beautiful-dnd.umd.js": {
"bundled": 372144,
"minified": 142587,
"gzipped": 40258
},
"dist/react-beautiful-dnd.esm.js": {
"bundled": 176301,
"minified": 88736,
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ We have created some basic examples on `codesandbox` for you to play with direct

We have created upgrade instructions in our release notes to help you upgrade to the latest version!

- [Upgrading from `6.x` to `7.x`](https://github.com/atlassian/react-beautiful-dnd/releases/tag/v7.0.0)
- [Upgrading from `5.x` to `6.x`](https://github.com/atlassian/react-beautiful-dnd/releases/tag/v6.0.0)
- [Upgrading from `4.x` to `5.x`](https://github.com/atlassian/react-beautiful-dnd/releases/tag/v5.0.0)
- [Upgrading from `3.x` to `4.x`](https://github.com/atlassian/react-beautiful-dnd/releases/tag/v4.0.0)
Expand Down Expand Up @@ -461,11 +462,11 @@ You can use the UMD to run `react-beautiful-dnd` directly in the browser.

```html
<!-- peer dependency -->
<script src="https://unpkg.com/react@15.6.0/dist/react.js"></script>
<script src="https://unpkg.com/react@16.3.1/umd/react.development.js"></script>
<!-- lib (change x.x.x for the version you would like) -->
<script src="https://unpkg.com/react-beautiful-dnd@x.x.x/dist/react-beautiful-dnd.js"></script>
<!-- needed to mount your react app -->
<script src="https://unpkg.com/react-dom@15.6.0/dist/react-dom.js"></script>
<script src="https://unpkg.com/react-dom@16.3.1/umd/react-dom.development.js"></script>

<script>
const React = window.React;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
],
"scripts": {
"test": "jest --config ./jest.config.js",
"validate": "yarn run lint && yarn run typecheck",
"validate": "yarn lint && yarn typecheck",
"lint": "yarn eslint .",
"typecheck": "flow check",
"check-bundle-sizes": "cross-env SNAPSHOT=check yarn build:dist && yarn build:clean",
"update-bundle-sizes": "yarn build:dist && yarn build:clean",
"build": "yarn run build:clean && yarn run build:dist && yarn run build:flow",
"build": "yarn build:clean && yarn build:dist && yarn build:flow",
"build:clean": "rimraf dist",
"build:dist": "rollup -c",
"build:flow": "echo \"// @flow\n\nexport * from '../src';\" > dist/react-beautiful-dnd.cjs.js.flow",
Expand All @@ -55,7 +55,7 @@
"reselect": "^3.0.1"
},
"devDependencies": {
"@atlaskit/css-reset": "^1.2.0",
"@atlaskit/css-reset": "^2.0.0",
"@storybook/react": "^3.2.16",
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.1",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default [
{
input,
output: {
file: 'dist/react-beautiful-dnd.umd.js',
file: 'dist/react-beautiful-dnd.js',
format: 'umd',
name: 'ReactBeautifulDnd',
globals: { react: 'React' },
Expand Down
Loading

0 comments on commit f00ffe2

Please sign in to comment.