forked from kriasoft/react-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:kriasoft/react-starter-kit
* 'master' of github.com:kriasoft/react-starter-kit: (68 commits) Format Markdown (.md) files by Prettier (kriasoft#1461) Move prettier options to a separate file for editor or ide plugin Update dependencies; bump react to v16.1.1 Update Babel to v7.0.0-beta.32 (kriasoft#1452) Update universal-router and react-error-overlay Use babel react optimization plugins for production instead of development Bump babel-preset-env Update dependencies; fix eslint warnings Update yarn.lock Add tools to babel-loader include Fore all Babel transforms in release mode only for UglifyJS2 Update babel-plugin-transform-react-* to v7 Fix babel ignore configuration Use webpack-hot-middleware api instead of query string Improve developer experience; update react-error-overlay (kriasoft#1421) Update React to v16 (kriasoft#1417) Update server-side dependencies Update Babel to v7 (kriasoft#1413) Remove unused mocha configs and dependencies Update PostCSS related dependencies, remove unused ...
- Loading branch information
Showing
89 changed files
with
6,585 additions
and
3,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* React Starter Kit (https://www.reactstarterkit.com/) | ||
* | ||
* Copyright © 2014-present Kriasoft, LLC. All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
|
||
// Babel configuration | ||
// https://babeljs.io/docs/usage/api/ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current', | ||
}, | ||
}, | ||
], | ||
'@babel/preset-stage-2', | ||
'@babel/preset-flow', | ||
'@babel/preset-react', | ||
], | ||
ignore: ['node_modules', 'build'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
# Include your project-specific ignores in this file | ||
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
.idea | ||
# Dependencies | ||
node_modules/ | ||
|
||
# Compiled output | ||
build | ||
|
||
# Runtime data | ||
database.sqlite | ||
node_modules | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# Test coverage | ||
coverage | ||
|
||
# Logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editors and IDEs | ||
.idea | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# Misc | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* React Starter Kit (https://www.reactstarterkit.com/) | ||
* | ||
* Copyright © 2014-present Kriasoft, LLC. All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
|
||
// Prettier configuration | ||
// https://prettier.io/docs/en/configuration.html | ||
module.exports = { | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* React Starter Kit (https://www.reactstarterkit.com/) | ||
* | ||
* Copyright © 2014-present Kriasoft, LLC. All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE.txt file in the root directory of this source tree. | ||
*/ | ||
|
||
// stylelint configuration | ||
// https://stylelint.io/user-guide/configuration/ | ||
module.exports = { | ||
// The standard config based on a handful of CSS style guides | ||
// https://github.com/stylelint/stylelint-config-standard | ||
extends: 'stylelint-config-standard', | ||
|
||
plugins: [ | ||
// stylelint plugin to sort CSS rules content with specified order | ||
// https://github.com/hudochenkov/stylelint-order | ||
'stylelint-order', | ||
], | ||
|
||
rules: { | ||
'property-no-unknown': [ | ||
true, | ||
{ | ||
ignoreProperties: [ | ||
// CSS Modules composition | ||
// https://github.com/css-modules/css-modules#composition | ||
'composes', | ||
], | ||
}, | ||
], | ||
|
||
'selector-pseudo-class-no-unknown': [ | ||
true, | ||
{ | ||
ignorePseudoClasses: [ | ||
// CSS Modules :global scope | ||
// https://github.com/css-modules/css-modules#exceptions | ||
'global', | ||
], | ||
}, | ||
], | ||
|
||
// Opinionated rule, you can disable it if you want | ||
'string-quotes': 'single', | ||
|
||
// https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md | ||
'order/order': [ | ||
'custom-properties', | ||
'dollar-variables', | ||
'declarations', | ||
'at-rules', | ||
'rules', | ||
], | ||
|
||
// https://github.com/hudochenkov/stylelint-order/blob/master/rules/properties-order/README.md | ||
'order/properties-order': [], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- '7' | ||
- 'stable' | ||
- '6' | ||
env: | ||
- CXX=g++-4.8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
FROM node:7.9.0-alpine | ||
FROM node:8.6.0-alpine | ||
|
||
# Set a working directory | ||
WORKDIR /usr/src/app | ||
|
||
# Copy application files | ||
COPY ./build /usr/src/app | ||
COPY ./build/package.json . | ||
COPY ./build/yarn.lock . | ||
|
||
# Install Node.js dependencies | ||
RUN yarn install --production --no-progress | ||
|
||
# Copy application files | ||
COPY ./build . | ||
|
||
# Run the container under "node" user by default | ||
USER node | ||
|
||
CMD [ "node", "server.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.