Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
update dependencies for prod build
  • Loading branch information
mac-s-g committed Jul 9, 2017
commit f4d9bc311cc74a7f3b14ef6e2e78f21790055be7
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node
FROM node:8.1.2-slim
MAINTAINER mac <[email protected]>

# install the node modules at container build time
Expand Down
3 changes: 3 additions & 0 deletions entrypoints/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ echo Running Coverage Report

cd /react

echo Installing Test Dependencies
sh ./entrypoints/install-test-dependencies.sh

echo Running: npm run unit_test
npm run test:unit

Expand Down
3 changes: 3 additions & 0 deletions entrypoints/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

cd /react

echo Installing Test Dependencies
sh ./entrypoints/install-test-dependencies.sh

echo getting source tree..
npm run modules:tree > debug/tree.json

Expand Down
14 changes: 14 additions & 0 deletions entrypoints/install-test-dependencies.sh
3 changes: 3 additions & 0 deletions entrypoints/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ echo Running Tests

cd /react

echo Installing Test Dependencies
sh ./entrypoints/install-test-dependencies.sh

exec npm run test:unit
3 changes: 3 additions & 0 deletions entrypoints/test_watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
echo Running Tests
cd /react

echo Installing Test Dependencies
sh ./entrypoints/install-test-dependencies.sh

exec npm run test:watch
27 changes: 15 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
"files": [
"dist/"
],
"dependencies": {
"clipboard": "^1.6.1",
"flux": "^3.1.2",
"radium":"^0.19.1",
"react-base16-styling": "^0.5.3",
"react-icons": "2.2.5",
"react-tooltip": "^3.3.0"
},
"devDependencies": {
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
Expand All @@ -19,31 +27,26 @@
"babel-preset-stage-0": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babel-register": "^6.24.1",
"html-webpack-plugin": "2.28.0",
"react-hot-loader": "^3.0.0-beta.6",
"webpack": "^2.2.1",
"webpack-dev-server": "^2.3.0"
},
"peerDependencies": {
"chai": "^3.5.0",
"clipboard": "^1.6.1",
"coveralls": "^2.13.1",
"enzyme": "^2.8.2",
"flux": "^3.1.2",
"html-webpack-plugin": "2.28.0",
"ignore-styles": "^5.0.1",
"istanbul": "^0.4.5",
"jsdom": "^10.1.0",
"mocha": "^3.2.0",
"nyc": "^10.3.2",
"radium":"^0.19.1",
"react": "^15.5.4",
"react-base16-styling": "^0.5.3",
"react-dom": "^15.5.4",
"react-hot-loader": "^3.0.0-beta.6",
"react-icons": "2.2.5",
"react-test-renderer": "^15.5.4",
"react-tooltip": "^3.3.0",
"sinon": "^2.2.0",
"webpack": "^2.2.1",
"webpack-bundle-size-analyzer": "^2.7.0",
"webpack-dev-server": "^2.3.0"
"webpack-bundle-size-analyzer": "^2.7.0"
},
"dependencies": {},
"scripts": {
"build": "webpack -p --display-error-details --progress",
"dev:hot": "webpack-dev-server",
Expand Down
2 changes: 2 additions & 0 deletions src/html/index.html.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
<![endif]-->
<script src="https://unpkg.com/react@15/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script>
<style>
.react-json-view {
padding: 4px 6px;
Expand Down
16 changes: 14 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,20 @@ const config = {
entry: [entrypoint],
externals: {
'cheerio': 'window',
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react',
umd: 'react',
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom',
umd: 'react-dom',
},
},
devServer: {
host: '0.0.0.0',
Expand Down