Skip to content

Commit

Permalink
adding object rest spread and class property JS support
Browse files Browse the repository at this point in the history
  • Loading branch information
andresn committed Mar 28, 2018
1 parent 96d702d commit bd84031
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"presets": ["react", "env"]
"presets": ["react", "env"],
"plugins": [
[
// See: https://github.com/babel/babel-preset-env/issues/49
"transform-object-rest-spread",
{
"useBuiltIns": true
}
],
"transform-class-properties"
]
}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# ReduxSimpleStarterRefreshed

This fork contains the following updates as of 3/27/2018:
This fork contains the following updates as of 3/28/2018:
- Upgraded to React 16.
- Upgraded to React-Redux 5.
- Upgraded to Webpack 4.
- Changed babel preset to 'env': https://www.npmjs.com/package/babel-preset-env
- Changed babel preset to 'env': https://www.npmjs.com/package/babel-preset-env
- Moved from using Mocha/Chai to Jest/Enzyme.
- Package control using Yarn instead of NPM.
- Added support for JS object rest spread (...destructuring) and class properties.

Interested in learning [Redux](https://www.udemy.com/react-redux/)?

Expand Down Expand Up @@ -38,4 +39,4 @@ This repo uses Jest and Enzyme for testing. Here's a great video intro: https://
```
> yarn test
> yarn test:watch # tests will run as you make modifications
```
```
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"babel-jest": "^22.4.3",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"jest": "^22.4.3",
Expand All @@ -22,6 +23,9 @@
},
"dependencies": {
"babel-loader": "^7.1.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"react": "^16.2.0",
Expand Down

0 comments on commit bd84031

Please sign in to comment.