Skip to content

Commit

Permalink
Update: dependencies + migrate to babel@6
Browse files Browse the repository at this point in the history
  • Loading branch information
lexich committed Jan 28, 2016
1 parent 2763c47 commit f70d4c7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"stage": 0
"presets": ["es2015", "stage-0", "react"],
"plugins": ["add-module-exports"]
}
31 changes: 18 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "cd examples && node server.js",
"watch": "cd examples && webpack --watch",
"build": "cd examples && webpack -p",
"compile": "babel --stage 0 -d lib/ src/",
"compile": "babel -d lib/ src/",
"prepublish": "npm run compile"
},
"repository": {
Expand All @@ -29,19 +29,24 @@
"select2": "^4.0.0"
},
"devDependencies": {
"babel": "^5.8.29",
"babel-core": "^5.8.29",
"babel-eslint": "^4.1.1",
"babel-loader": "^5.3.2",
"css-loader": "^0.15.4",
"eslint": "^1.0.0",
"eslint-config-airbnb": "^0.0.8",
"eslint-plugin-react": "^3.2.0",
"extract-text-webpack-plugin": "^0.7.1",
"babel": "^6.3.26",
"babel-core": "^6.4.5",
"babel-cli": "^6.4.5",
"babel-eslint": "^4.1.6",
"babel-loader": "^6.2.1",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"css-loader": "^0.23.1",
"eslint": "^1.10.3",
"eslint-config-airbnb": "^4.0.0",
"eslint-plugin-react": "^3.16.1",
"extract-text-webpack-plugin": "^1.0.1",
"react-hot-loader": "^1.3.0",
"style-loader": "^0.12.3",
"webpack": "^1.10.5",
"webpack-dev-server": "^1.10.1"
"style-loader": "^0.13.0",
"webpack": "^1.12.11",
"webpack-dev-server": "^1.14.1"
},
"author": "Igor Romanov <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Select2 extends Component {
onSelect: PropTypes.func,
onChange: PropTypes.func,
onUnselect: PropTypes.func,
}
};

static defaultProps = {
data: [],
Expand All @@ -32,7 +32,7 @@ export default class Select2 extends Component {
],
options: {},
multiple: false,
}
};

constructor(props) {
super(props);
Expand Down

0 comments on commit f70d4c7

Please sign in to comment.