Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
{
"presets": [
["es2015", { "modules": false }],
"stage-0",
"react",
"airbnb"
"env",
"react",
"stage-0"
],
"plugins": [
"transform-runtime",
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-rest-spread",
"react-hot-loader/babel"
],
"env": {
"test": {
"plugins": [
"transform-decorators-legacy",
"transform-object-rest-spread",
"istanbul"
]
}
}
}
]
}
61 changes: 48 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"node": true,
"mocha": true
},
"globals": {
"ENV": false
},
"extends": "airbnb",
"rules": {
"linebreak-style": 0,
Expand All @@ -21,16 +24,45 @@
"react/sort-comp": 0,
"indent": 0,
"quotes": 0,
"comma-dangle": ["off"],
"no-unused-vars": ["warn"],
"object-curly-spacing": ["off"],
"padded-blocks": ["off"],
"react/jsx-closing-bracket-location": ["off"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-space-before-closing": ["off"],
"react/prefer-stateless-function": ["off"],
"no-underscore-dangle": [ "error", { "allowAfterThis": true }],
"import/no-unresolved": ["error", {
"comma-dangle": [
"off"
],
"no-unused-vars": [
"warn"
],
"object-curly-spacing": [
"off"
],
"padded-blocks": [
"off"
],
"react/jsx-closing-bracket-location": [
"off"
],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"react/jsx-space-before-closing": [
"off"
],
"react/prefer-stateless-function": [
"off"
],
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true
}
],
"import/no-unresolved": [
"error",
{
"ignore": [
"components/",
"config/",
Expand All @@ -41,9 +73,12 @@
"theme/",
"utils/"
]
}],
"import/no-extraneous-dependencies": ["off"],
}
],
"import/no-extraneous-dependencies": [
"off"
],
"import/extensions": "off",
"global-require": "off"
}
}
}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Simple React Start Kit 2017

這個環境包可以讓你快速體驗 ReactJS 開發環境的便利,我們並沒有在裏面放入太多套件(例如 redux, karma),希望可以讓你用最簡單的環境開始學習 React
這個環境包可以讓你快速體驗 ReactJS 開發環境的便利,我們並沒有在裏面放入額外的套件(例如 redux, karma),希望可以讓你用最簡單的環境開始學習 React

## 特色

* [react 16](https://github.com/facebook/react)
* [react-router 4](https://reacttraining.com/react-router/web/example/basic)
* [webpack 3](https://github.com/webpack/webpack)
* [babel stage-0](https://github.com/babel/babel)
* [webpack 4](https://github.com/webpack/webpack)
* [babel 6](https://github.com/babel/babel)
* [eslint](http://eslint.org)

## 需求配置
* node `^4.5.0`
* npm `^3.0.0`
* node `^6.11.5`
* npm `^3.10.10`

## 開始

先確定好安裝了 node 4.5 以上的版本,接著就可以輸入以下指令
先確定好安裝了 node 6.11.5 以上的版本,接著就可以輸入以下指令

```bash
$ git clone https://github.com/ReactMaker/simple_react_start_kit_2017
Expand All @@ -27,7 +27,7 @@ $ npm start # Compile and launch

如果一切成功,就會看到以下畫面,並且瀏覽器會打開的範例頁面

![Imgur](http://i.imgur.com/14aROBn.png)
![Imgur](https://i.imgur.com/MLcE6SO.png)

開發當中最常用到的是 `npm start` 指令,我們還有一些其他的指令要介紹給你知道

Expand Down
128 changes: 0 additions & 128 deletions conf/webpack/Base.js

This file was deleted.

45 changes: 0 additions & 45 deletions conf/webpack/Dev.js

This file was deleted.

50 changes: 0 additions & 50 deletions conf/webpack/Dist.js

This file was deleted.

Loading