Commit b57360d
committed
2.9.0
2.9.0 - 2017-10-17
-----------------------------------------------
## Building
* Fixes static building via `npm run build-static`, by replacing broken
`chunk-manifest-webpack-plugin` (closes #55)
## Webpack
* Adds `src` to modules path, to avoid `src/` prefixes at the start of
userland imports (closes #69)
* Fixes stats configuration to work with the latest Webpack versions
* Adds CORS config to webpack_dev_server, to enable LAN-wide browser
hot-code reloading (closes #99)
* Removes leading `/` in asset output, to allow defining a `<base>` tag
in userland via React Helmet (closes #102)
## ESLint
* Refactors rules, to be grouped by plugin
* Adds `jsx-a11y/anchor-is-valid` rule to avoid 'href' on React Router
`<Link>` attributes
* Adds `function-paren-newline` rule to enforce consistent parenthesis
* Adds `object-curly-newline` rule to allow one-line / multi-line
object definitions
* Fixes various kit and src files to conform to new rules
## React
* Bumps to React v16 - officially out of RC!
## Config
* Adds `.disableKoaHelmet()` for disabling
[koa-helmet](https://www.npmjs.com/package/koa-helmet) on the server
(closes #79)
* Adds `.setKoaHelmetOptions()` for passing options to Koa Helmet
* Sets `.koaHelmetOptions` and `.bodyParserOptions` to null by default
## App
* Disables SSL by default
## Server
* Removes leading `/` in bundled assets (along with Webpack) to allow
for a `<base>` tag to define the load path
## Testing (Jest)
* Fixes Jest testing to be compatible with Babel and React (closes #81,
merges #84 - thanks @Nate0001)
## General
* Fixes 'local' typo (merges #89 - thanks @kane-c)
* Fixes misspelled `browserslist` file (merges #95 - thanks @klarstrup)
* Adds idiomatic [React Helmet](https://github.com/nfl/react-helmet)
`<head>` tags, adds missing html/body attributes, base, link, style,
script and noscript, uses new `Helmet.renderStatic()` call (closes #101
& #94 - thanks @klarstrup)
* Adds default `<base href="/" />` tag, when none is defined with React
Helmet
## Docker
* Adds Alpine-based `Dockerfile` to reduce Docker image size from 943mb
-> 323mb (closes #98, merges #97 - thanks @kane-c)
* Adds `docker-compose.yml` for production (closes #98)
* Adds `docker-compose.dev.yml` for local development. Removes the
local `node_modules` to ensure Alpine-compatible Linux binaries are
being referenced by local code changes. Supports hot code reloading
in-browser and via SSR
## NPM
* Bumps packages:
"babel-eslint": "^8.0.1"
"copy-webpack-plugin": "^4.1.1",
"cross-env": "^5.1.0",
"eslint": "^4.9.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-compat": "^2.0.1",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.4.0",
"extract-text-webpack-plugin": "^3.0.1",
"file-loader": "^1.1.5",
"graphql-tag": "^2.5.0",
"iltorb": "^2.0.1"
"jest": "^21.2.1",
"less": "^3.0.0-alpha.3",
"postcss-loader": "^2.0.8",
"resolve-url-loader": "^2.1.1",
"rimraf": "^2.6.2",
"serve": "^6.2.0",
"style-loader": "^0.19.0",
"webpack": "^3.8.0",
"webpack-chunk-hash": "^0.5.0",
"webpack-config": "^7.5.0",
"webpack-dev-server": "^2.9.2",
"webpack-manifest-plugin": "^1.3.2",
"apollo-server-koa": "^1.1.7",
"graphql": "^0.11.7",
"koa-send": "^4.1.1",
"prop-types": "^15.6.0",
"react": "^16.0.0",
"react-apollo": "^1.4.16",
"react-dom": "^16.0.0",
"react-hot-loader": "^3.1.1"File tree
17 files changed
+379
-158
lines changed- kit
- entry
- views
- webpack
- src
- components/main
17 files changed
+379
-158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
32 | | - | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 3 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 22 | + | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
36 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
37 | 34 | | |
38 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments