Skip to content

Commit

Permalink
Added index.umd.js to export src/styles and call injectTapEventPlugin().
Browse files Browse the repository at this point in the history
Removed react-tap-event-plugin as an external
  • Loading branch information
ANich committed May 26, 2016
1 parent cc0d068 commit 1f4165c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"build:icon-index": "babel-node ./scripts/icon-index-generator.js",
"build:babel": "babel ./src --ignore *.spec.js --out-dir ./build",
"build:copy-files": "babel-node ./scripts/copy-files.js",
"build:umd": "cross-env NODE_ENV=development webpack src/index.js build/umd/MaterialUI.js",
"build:min": "cross-env NODE_ENV=production webpack -p src/index.js build/umd/MaterialUI.min.js",
"build:umd": "cross-env NODE_ENV=development webpack src/index.umd.js build/umd/MaterialUI.js",
"build:min": "cross-env NODE_ENV=production webpack -p src/index.umd.js build/umd/MaterialUI.min.js",
"clean:build": "rimraf build",
"lint": "eslint src docs/src test/integration && echo \"eslint: no lint errors\"",
"prebuild": "npm run clean:build",
Expand Down
5 changes: 5 additions & 0 deletions src/index.umd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();

export * from './index'
export * from './styles';
6 changes: 0 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ module.exports = {
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
},
'react-tap-event-plugin': {
root: 'injectTapEventPlugin',
commonjs2: 'react-tap-event-plugin',
commonjs: 'react-tap-event-plugin',
amd: 'react-tap-event-plugin'
}
}
],
Expand Down

0 comments on commit 1f4165c

Please sign in to comment.