Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit eb676a8

Browse files
committed
3.1.0
- Bumps to Typescript 3.0 - Adds local Typescript version to VSCode config - Updates README with build mode instructions, and fixes some info - Removes deprecated `no-unused-variable` setting from TSLint
1 parent e002942 commit eb676a8

File tree

5 files changed

+52
-41
lines changed

5 files changed

+52
-41
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
22
"editor.tabSize": 2,
3+
"typescript.tsdk": "node_modules/typescript/lib",
34
}

README.md

+22-12
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,30 @@ Clone, and make your own.
2929

3030
### Real-time
3131

32-
- Hot code reloading; zero refresh, real-time updates in development
33-
- Development web server that automatically sends patches on code changes, and restarts the built-in Web server for SSR renders that reflect what you'd see in production
32+
- Hot code reloading; zero refresh, real-time updates in development.
33+
- Development web server that automatically sends patches on code changes, and restarts the built-in Web server for SSR renders that reflect what you'd see in production.
3434

3535
### Code optimisation
3636

37-
- [Webpack v4](https://webpack.js.org/), with [tree shaking](https://webpack.js.org/guides/tree-shaking/) (dead code paths are automatically eliminated
38-
- Asynchronous code loading when `import()`'ing inside a function
39-
- Aggressive code minification
37+
- [Webpack v4](https://webpack.js.org/), with [tree shaking](https://webpack.js.org/guides/tree-shaking/) -- dead code paths are automatically eliminated.
38+
- Asynchronous code loading when `import()`'ing inside a function.
39+
- Aggressive code minification.
4040
- CSS code is combined, minified and optimised automatically - even if you use SASS, LESS and CSS together!
4141

4242
### Styles
4343

4444
- [Styled Components](https://www.styled-components.com/), for writing CSS styles inline and generating the minimal CSS required to properly render your components. Full type inference on themes, too.
45-
- [PostCSS v6](http://postcss.org/) with [next-gen CSS](http://cssnext.io/) and automatic vendor prefixing when importing `.css`, `.scss` or `.less` files
46-
- [SASS](http://sass-lang.com) and [LESS](http://lesscss.org/) support (also parsed through PostCSS)
47-
- Automatic vendor prefixing - write modern CSS, and let the compiler take care of browser compatibility
45+
- [PostCSS v6](http://postcss.org/) with [next-gen CSS](http://cssnext.io/) and automatic vendor prefixing when importing `.css`, `.scss` or `.less` files.
46+
- [SASS](http://sass-lang.com) and [LESS](http://lesscss.org/) support (also parsed through PostCSS.)
47+
- Automatic vendor prefixing - write modern CSS, and let the compiler take care of browser compatibility.
4848
- Mix and match SASS, LESS and regular CSS - without conflicts!
49-
- CSS modules - your classes are hashed automatically, to avoid namespace conflicts
50-
- Compatible with Foundation, Bootstrap, Material and more. Simply configure via a `.global.(css|scss|less)` import to preserve class names
49+
- CSS modules - your classes are hashed automatically, to avoid namespace conflicts.
50+
- Compatible with Foundation, Bootstrap, Material and more. Simply configure via a `.global.(css|scss|less)` import to preserve class names.
5151

5252
### Production-ready
5353

54-
- Production bundling via `npm run production`, that generates optimised server and client code
55-
- [Static compression](https://webpack.js.org/plugins/compression-webpack-plugin/) using the [Zopfli Gzip](https://en.wikipedia.org/wiki/Zopfli) and [Brotli](https://opensource.googleblog.com/2015/09/introducing-brotli-new-compression.html) algorithms for the serving of static assets as pre-compressed `.gz` and `.br` files (default `vendor.js.bz` goes from 346kb -> 89kb!)
54+
- Production bundling via `npm run production`, that generates optimised server and client code.
55+
- [Static compression](https://webpack.js.org/plugins/compression-webpack-plugin/) using the Gzip and [Brotli](https://opensource.googleblog.com/2015/09/introducing-brotli-new-compression.html) algorithms for the serving of static assets as pre-compressed `.gz` and `.br` files (default `vendor.js.bz` goes from 346kb -> 89kb!)
5656
- Automatic HTTP hardening against common attack vectors via [Koa Helmet](https://github.com/venables/koa-helmet) (highly configurable)
5757

5858
### Developer support
@@ -138,6 +138,16 @@ Files will be generated in `./dist`, and a server will also be spawned at [http:
138138

139139
Clean the cached production build with `npm run clean`, or run `npm run clean-production` to both clean and re-run the production build.
140140

141+
# Build mode
142+
143+
If you only want to build assets and not actually run the server, use:
144+
145+
```
146+
npm run build
147+
```
148+
149+
This is used in the [Dockerfile](Dockerfile), for example, to pre-compile assets and ensure faster start-up times when spawning a new container.
150+
141151
# Follow @reactql for updates
142152

143153
Get the latest updates by following us on Twitter: https://twitter.com/reactql

package-lock.json

+16-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactql",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "ReactQL - front-end React/GraphQL starter kit",
55
"main": "index.js",
66
"scripts": {
@@ -18,10 +18,10 @@
1818
"@types/compression-webpack-plugin": "^0.4.2",
1919
"@types/koa-webpack": "^5.0.1",
2020
"@types/mini-css-extract-plugin": "^0.2.0",
21-
"@types/node": "^10.5.3",
21+
"@types/node": "^10.5.5",
2222
"@types/require-from-string": "^1.2.0",
2323
"@types/source-map-support": "^0.4.1",
24-
"@types/webpack": "^4.4.8",
24+
"@types/webpack": "^4.4.9",
2525
"@types/webpack-node-externals": "^1.6.3",
2626
"babel-core": "^6.26.3",
2727
"babel-loader": "^7.1.5",
@@ -30,7 +30,7 @@
3030
"compression-webpack-plugin": "^1.1.11",
3131
"css-hot-loader": "^1.4.1",
3232
"css-loader": "^1.0.0",
33-
"cssnano": "^4.0.4",
33+
"cssnano": "^4.0.5",
3434
"file-loader": "^1.1.11",
3535
"koa-webpack": "^5.1.0",
3636
"less": "^3.8.0",
@@ -42,22 +42,22 @@
4242
"require-from-string": "^2.0.2",
4343
"resolve-url-loader": "^2.3.0",
4444
"rimraf": "^2.6.2",
45-
"sass-loader": "^7.0.3",
45+
"sass-loader": "^7.1.0",
4646
"source-map-support": "^0.5.6",
4747
"ts-loader": "^4.4.2",
4848
"ts-node": "^7.0.0",
4949
"tslint": "^5.11.0",
50-
"typescript": "^2.9.2",
51-
"webpack": "^4.16.3",
50+
"typescript": "^3.0.1",
51+
"webpack": "^4.16.4",
5252
"webpack-node-externals": "^1.7.2"
5353
},
5454
"dependencies": {
55-
"@types/history": "^4.6.2",
55+
"@types/history": "^4.7.0",
5656
"@types/kcors": "^2.2.3",
5757
"@types/koa": "^2.0.46",
58-
"@types/koa-router": "^7.0.30",
58+
"@types/koa-router": "^7.0.31",
5959
"@types/koa-send": "^4.1.1",
60-
"@types/lodash": "^4.14.114",
60+
"@types/lodash": "^4.14.116",
6161
"@types/ora": "^1.3.4",
6262
"@types/prop-types": "^15.5.4",
6363
"@types/react": "^16.4.7",
@@ -84,14 +84,14 @@
8484
"lodash": "^4.17.10",
8585
"microseconds": "^0.1.0",
8686
"ora": "^3.0.0",
87-
"react": "^16.4.1",
87+
"react": "^16.4.2",
8888
"react-addons-css-transition-group": "^15.6.2",
8989
"react-addons-transition-group": "^15.6.2",
9090
"react-apollo": "^2.1.9",
91-
"react-dom": "^16.4.1",
91+
"react-dom": "^16.4.2",
9292
"react-helmet": "^5.2.0",
9393
"react-hot-loader": "^4.3.4",
9494
"react-router-dom": "^4.3.1",
95-
"styled-components": "^3.3.3"
95+
"styled-components": "^3.4.0"
9696
}
9797
}

tslint.json

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"max-line-length": false,
1212
"no-console": false,
1313
"no-floating-promises": true,
14-
"no-unused-variable": [true, {"ignore-pattern": "^_"}],
1514
"variable-name": [
1615
true,
1716
"check-format",

0 commit comments

Comments
 (0)