Skip to content

Commit 4292bea

Browse files
committed
upgrade and change to v6.0.0
1 parent e7bf453 commit 4292bea

File tree

187 files changed

+9837
-14506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+9837
-14506
lines changed

.babelrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,27 @@
88
"flow"
99
],
1010
"plugins": [
11+
"loadable-components/babel",
1112
"transform-regenerator",
1213
"transform-async-to-generator"
1314
],
1415
"env": {
16+
"test": {
17+
"presets": [
18+
["env", {
19+
"modules": "commonjs"
20+
}],
21+
"react",
22+
"stage-2",
23+
"flow",
24+
"jest"
25+
],
26+
"plugins": [
27+
"loadable-components/babel",
28+
"transform-regenerator",
29+
"transform-async-to-generator"
30+
]
31+
},
1532
"production": {
1633
"presets": [
1734
"react-optimize"

.eslintrc

Lines changed: 218 additions & 240 deletions
Large diffs are not rendered by default.

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
module.name_mapper='.*\(.css\)' -> 'CSSModule'
1010
module.system=haste
1111
strip_root=true
12+
suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ dist/
77
public/assets/
88
/coverage
99
/.nyc_output
10+
11+
.DS_Store

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/*.json
2+
**/*.txt
3+
**/*.xml
4+
**/*.svg

.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"bracketSpacing": true,
5+
"jsxBracketSameLine": false,
6+
"singleQuote": true,
7+
"overrides": [],
8+
"printWidth": 80,
9+
"useTabs": false,
10+
"tabWidth": 2,
11+
"parser": "babylon"
12+
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ before_install:
1111
- sh -e /etc/init.d/xvfb start
1212
before_script:
1313
- npm install
14-
after_success: npm run coverage
14+
after_success: npm run test

README.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
React 16 + React-Router 4 + Redux + Bootstrap + Webpack 3 with Hot Reload and redux-devtools-extension STARTER
1+
React 16+ React-Router 4 + Redux + Bootstrap + Webpack 4 with Hot Reload and redux-devtools-extension STARTER
22
==========
33
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/MacKentoch/react-redux-bootstrap-webpack-starter)
44
[![Build Status](https://travis-ci.org/MacKentoch/react-redux-bootstrap-webpack-starter.svg?branch=master)](https://travis-ci.org/MacKentoch/react-redux-bootstrap-webpack-starter)
@@ -16,6 +16,20 @@ React 16 + React-Router 4 + Redux + Bootstrap + Webpack 3 with Hot Reload and re
1616
![preview](./preview/preview.png)
1717
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FMacKentoch%2Freact-redux-bootstrap-webpack-starter.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FMacKentoch%2Freact-redux-bootstrap-webpack-starter?ref=badge_shield)
1818

19+
## Breaking changes since v6.0.0
20+
21+
* upgrade to `React 16.3.x`
22+
* upgrade to `webpack 4`
23+
* upgrade to `react-hot-loader v4`
24+
* drop `CSS Module` in favor of `styled-components` (_scoped style, theme support, better scaling in huge applications, simplify toolchain and keep nearly SASS syntax_)
25+
* add `flow types` (*even a little typing at least for better dev experience*)
26+
* drop `prop-types`(*static and dynamic typing apart, flow type does far more so avoid writing 2 differents typing system*)
27+
* `workbox-webpack-plugin` (_service worker caching powerful tool from Google_)
28+
* [loadable-components](https://github.com/smooth-code/loadable-components) (_split your code: here splitted just by routes, by you can split a component level if you feel the need_)
29+
* `webpack-bundle-analyzer`: analyze your bundle size (_maybe you should split or lazy load some part of your application: you will see clearly how to fix that_)
30+
* drop `moment` for `date-fns` (*since far smaller size and job's done*)
31+
32+
1933
## Breaking changes since v5.0.0
2034
- upgrade to React 16.x
2135
- `react-router 4+` with `react-router-redux ^5.0.0-alpha.8` (*read this [nice article about migrating from react-router 3 to react-router 4](https://codeburst.io/react-router-v4-unofficial-migration-guide-5a370b8905a)*)
@@ -45,7 +59,7 @@ React 16 + React-Router 4 + Redux + Bootstrap + Webpack 3 with Hot Reload and re
4559

4660
## Breaking changes since v2.2.0
4761
- `cross-env` added so no more particular windows command
48-
- serve dev and prod bundles
62+
- serve dev and prod bundles
4963
- `npm run serve-dev`: with server hot reload (*uses nodemon*)
5064
- `npm run serve-prod`: production like node-express server
5165

@@ -65,7 +79,7 @@ React 16 + React-Router 4 + Redux + Bootstrap + Webpack 3 with Hot Reload and re
6579
## Detailed Content
6680

6781
**Front:**
68-
- React JS (16.x+ - [github :link:](https://github.com/facebook/react))
82+
- React JS (16.3+ - [github :link:](https://github.com/facebook/react))
6983
- Redux (*as you application grows managing state will be a serious concern, save pain with Redux*)
7084
- React-Redux (*Redux is not specific to ReactJS, you could easily use it with Angular2 for instance*)
7185
- redux-devtools-extension ([github :link:](https://github.com/zalmoxisus/redux-devtools-extension#redux-devtools-extension))
@@ -84,22 +98,18 @@ React 16 + React-Router 4 + Redux + Bootstrap + Webpack 3 with Hot Reload and re
8498
**Tool chain:**
8599
- babel 6+
86100
- eslint
87-
- webpack 2
101+
- webpack 4
88102
- hot reload
89103
- loaders
90104
- `js` / `jsx`
91-
- sass
92105
- css
93106
- json
94107
- images formats
95108
- svg and fonts formats
96109

97110
**tests:**
98-
- Mocha
99-
- Chai (*+ dirty-chai*)
111+
- Jest
100112
- enzyme
101-
- Sinon
102-
- nyc
103113

104114

105115
## Usage

docs/200.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>ReactJS Redux Bootstrap Starter</title>
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<meta name="description" content="ReactJS Redux Bootstrap Starter">
10+
<meta name="author" content="Erwan DATIN (MacKentoch)">
11+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css">
12+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
13+
</head>
14+
15+
<body>
16+
<section id="root"></section>
17+
<script type="text/javascript" src="./public/assets/vendors.js"></script>
18+
<script type="text/javascript" src="./public/assets/app.js"></script>
19+
</body>
20+
21+
</html>

docs/404.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!DOCTYPE html><html><head><title>ReactJS Redux Bootstrap Starter</title><meta charset="utf-8"><meta content="IE=edge" http-equiv="X-UA-Compatible"><meta content="width=device-width,initial-scale=1" name="viewport"><meta content="ReactJS Redux Bootstrap Starter" name="description"><meta content="Erwan DATIN (MacKentoch)" name="author"><link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet" type="text/css"><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"><style data-styled-components="">.eYqzQM{margin-right:10px}body,html{margin:0;height:100%;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}a{text-decoration:none;color:inherit}a:hover{text-decoration:none}@-webkit-keyframes GapJg{0%{opacity:0}100%{opacity:1;transform:none}}@keyframes GapJg{0%{opacity:0}100%{opacity:1;transform:none}}.cwEZas{opacity:0;animation-name:GapJg;animation-timing-function:ease-in;animation-duration:.7s;animation-delay:0s;animation-fill-mode:both}</style><script src="public/assets/2.js" charset="utf-8"></script><link href="https://cdnjs.cloudflare.com" rel="preconnect"></head><body><section id="root"><div id="appContainer"><nav class="navbar navbar-default"><div class="containersCustom"><div class="navbar-header"><button class="collapsed navbar-toggle" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a class="navbar-brand">React Redux Bootstrap Starter</a></div><div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"><ul class="nav navbar-nav"><ul class="nav navbar-nav"></ul></ul><ul class="nav navbar-nav navbar-right"><ul class="nav navbar-nav navbar-right"><li><a href="/">Home</a></li><li><a href="/protected">Protected</a></li><li><a href="/about">About</a></li><li><a href="/login">Disconnect</a></li></ul></ul></div></div></nav><div class="container-fluid"><div class="cwEZas sc-bwzfXH"><div><div class="jumbotron"><h1>Sorry this page does not exists...</h1></div></div></div></div><button class="btn" style="transform:translate3d(120px,0,0);position:fixed;right:-10px;bottom:40px;width:100px;z-index:10;opacity:.5;background-color:#4a4a4a"><div class="eYqzQM sc-bdVaJa"><svg fill="#F1F1F1" height="24px" viewBox="0 0 512 512" width="24px"><path d="M256,213.7L256,213.7L256,213.7l174.2,167.2c4.3,4.2,11.4,4.1,15.8-0.2l30.6-29.9c4.4-4.3,4.5-11.3,0.2-15.5L264.1,131.1
2+
c-2.2-2.2-5.2-3.2-8.1-3c-3-0.1-5.9,0.9-8.1,3L35.2,335.3c-4.3,4.2-4.2,11.2,0.2,15.5L66,380.7c4.4,4.3,11.5,4.4,15.8,0.2L256,213.7z"></path></svg></div></button></div></section><script src="./public/assets/vendors.js" type="text/javascript"></script><script src="./public/assets/app.js" type="text/javascript"></script></body></html>

0 commit comments

Comments
 (0)