Skip to content

Commit df73feb

Browse files
committed
updated dependencies, removed unused dependencies, optimized build
1 parent d70ff73 commit df73feb

File tree

7 files changed

+15
-31
lines changed

7 files changed

+15
-31
lines changed

.babelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"plugins": [
33
'transform-class-properties',
4-
'transform-decorators-legacy',
54
'react-html-attrs',
65
'transform-function-bind'
76
],

entrypoints/install-test-dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
npm install --silent \
22
33
4+
45
56
67

package.json

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,28 @@
77
"dist/"
88
],
99
"dependencies": {
10-
"clipboard": "^1.6.1",
11-
"flux": "^3.1.2",
12-
"radium":"^0.19.1",
10+
"clipboard": "^1.7.1",
11+
"flux": "^3.1.3",
1312
"react-base16-styling": "^0.5.3"
1413
},
1514
"devDependencies": {
16-
"babel-core": "^6.21.0",
17-
"babel-loader": "^6.2.10",
18-
"babel-plugin-transform-class-properties": "^6.11.5",
19-
"babel-plugin-transform-decorators-legacy": "^1.3.4",
20-
"babel-plugin-transform-function-bind": "^6.8.0",
21-
"babel-plugin-transform-node-env-inline": "^6.8.0",
15+
"babel-core": "^6.25.0",
16+
"babel-loader": "^7.1.1",
17+
"babel-plugin-transform-class-properties": "^6.24.1",
18+
"babel-plugin-transform-function-bind": "^6.22.0",
19+
"babel-plugin-transform-node-env-inline": "^0.2.0",
2220
"babel-plugin-react-html-attrs": "^2.0.0",
2321
"babel-preset-es2015": "^6.24.1",
2422
"babel-preset-react": "^6.24.1",
2523
"babel-preset-stage-0": "^6.24.1",
26-
"babel-preset-stage-2": "^6.24.1",
27-
"babel-register": "^6.24.1",
2824
"css-loader": "^0.28.4",
29-
"html-webpack-plugin": "2.28.0",
25+
"html-webpack-plugin": "2.30.1",
3026
"node-sass": "^4.5.3",
3127
"react-hot-loader": "^3.0.0-beta.6",
3228
"sass-loader": "^6.0.6",
3329
"style-loader": "^0.18.2",
34-
"webpack": "^2.2.1",
35-
"webpack-dev-server": "^2.3.0"
30+
"webpack": "^3.5.4",
31+
"webpack-dev-server": "^2.7.0"
3632
},
3733
"peerDependencies": {
3834
"chai": "^3.5.0",
@@ -50,7 +46,7 @@
5046
"webpack-bundle-size-analyzer": "^2.7.0"
5147
},
5248
"scripts": {
53-
"build": "webpack -p --display-error-details --progress",
49+
"build": "webpack -p --display-error-details --progress --optimize-minimize",
5450
"dev:hot": "webpack-dev-server",
5551
"modules:debug": "./docker/debug.sh",
5652
"modules:tree": "webpack --json",

src/js/components/DataTypes/Object.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ import {
2020

2121
//theme
2222
import Theme from './../../themes/getStyle';
23-
import Radium from 'radium';
2423

2524
//increment 1 with each nested object & array
2625
const DEPTH_INCREMENT = 1
2726
//single indent is 5px
2827
const SINGLE_INDENT = 5;
2928

3029

31-
@Radium
3230
class rjvObject extends React.Component {
3331

3432
constructor(props) {

src/js/components/VariableEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ import {Edit, CheckCircle, RemoveCircle as Remove} from './icons';
1616

1717
//theme
1818
import Theme from './../themes/getStyle';
19-
import Radium from 'radium';
2019

21-
@Radium
20+
2221
class VariableEditor extends React.Component {
2322

2423
state = {

src/js/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,6 @@ export default class extends React.Component {
7979
}
8080
}
8181

82-
// PR 96 - removed until major version update occurs
83-
// componentDidUpdate() {
84-
// ObjectAttributes.set(
85-
// this.rjvId,
86-
// 'global',
87-
// 'src',
88-
// this.props.src
89-
// );
90-
// }
91-
9282
init = (props) => {
9383
for (let i in this.defaults) {
9484
if (props[i] !== undefined) {

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ const config = {
5858
},
5959
plugins: [
6060
new webpack.EnvironmentPlugin(['NODE_ENV']),
61-
new webpack.HotModuleReplacementPlugin()
61+
new webpack.HotModuleReplacementPlugin(),
62+
new webpack.optimize.UglifyJsPlugin()
6263
],
6364
resolve: {
6465
extensions: [".js", ".json", ".css", ".scss"]

0 commit comments

Comments
 (0)