mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-03 05:45:24 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f4fcd9111e | |||
| 73fffaf9b9 | |||
| c6901b226a | |||
| 7742d6d89b | |||
| bcfc2f429f | |||
| 6d886d8bbc |
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"parser": "babel-eslint",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"react"
|
"react"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## 1.0.2:
|
## 1.0.2:
|
||||||
|
|
||||||
|
1. Added babel-eslint (as suggested in https://github.com/newtriks/generator-react-webpack/issues/173)
|
||||||
|
|
||||||
|
## 1.0.2:
|
||||||
|
|
||||||
1. Updated css-loader to current stable (0.23)
|
1. Updated css-loader to current stable (0.23)
|
||||||
2. Updated glob to new major (5.x to 6.x)
|
2. Updated glob to new major (5.x to 6.x)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ module.exports = {
|
|||||||
preLoaders: [
|
preLoaders: [
|
||||||
{
|
{
|
||||||
test: /\.(js|jsx)$/,
|
test: /\.(js|jsx)$/,
|
||||||
include: path.join(__dirname, 'src'),
|
include: srcPath,
|
||||||
loader: 'eslint-loader'
|
loader: 'eslint-loader'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
+3
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-webpack-template",
|
"name": "react-webpack-template",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "A base skeleton template for react and webpack without task runners",
|
"description": "A base skeleton template for react and webpack without task runners",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -37,6 +37,7 @@
|
|||||||
"homepage": "https://github.com/weblogixx/react-webpack-template#readme",
|
"homepage": "https://github.com/weblogixx/react-webpack-template#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.0.0",
|
"babel-core": "^6.0.0",
|
||||||
|
"babel-eslint": "^5.0.0-beta4",
|
||||||
"babel-loader": "^6.0.0",
|
"babel-loader": "^6.0.0",
|
||||||
"babel-preset-es2015": "^6.0.15",
|
"babel-preset-es2015": "^6.0.15",
|
||||||
"babel-preset-react": "^6.0.15",
|
"babel-preset-react": "^6.0.15",
|
||||||
@@ -72,6 +73,7 @@
|
|||||||
"webpack-dev-server": "^1.12.0"
|
"webpack-dev-server": "^1.12.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"core-js": "^1.2.6",
|
||||||
"lodash": "^3.10.1",
|
"lodash": "^3.10.1",
|
||||||
"normalize.css": "^3.0.3",
|
"normalize.css": "^3.0.3",
|
||||||
"react": "^0.14.0",
|
"react": "^0.14.0",
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
/*eslint no-console:0 */
|
/*eslint no-console:0 */
|
||||||
|
require('core-js/fn/object/assign');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var WebpackDevServer = require('webpack-dev-server');
|
var WebpackDevServer = require('webpack-dev-server');
|
||||||
var config = require('./webpack.config');
|
var config = require('./webpack.config');
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'core-js/fn/object/assign';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import App from './Main';
|
import App from './Main';
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
|
// Settings configured here will be merged into the final config object.
|
||||||
|
export default {
|
||||||
|
}
|
||||||
+5
-2
@@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const config = {
|
import baseConfig from './base';
|
||||||
|
|
||||||
|
|
||||||
|
let config = {
|
||||||
appEnv: 'dev' // feel free to remove the appEnv property here
|
appEnv: 'dev' // feel free to remove the appEnv property here
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default Object.freeze(Object.assign({}, baseConfig, config));
|
||||||
|
|||||||
+6
-2
@@ -1,7 +1,11 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const config = {
|
import baseConfig from './base';
|
||||||
|
|
||||||
|
|
||||||
|
let config = {
|
||||||
appEnv: 'dist' // feel free to remove the appEnv property here
|
appEnv: 'dist' // feel free to remove the appEnv property here
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default Object.freeze(Object.assign({}, baseConfig, config));
|
||||||
|
|
||||||
|
|||||||
+6
-2
@@ -1,7 +1,11 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const config = {
|
import baseConfig from './base';
|
||||||
|
|
||||||
|
|
||||||
|
let config = {
|
||||||
appEnv: 'test' // don't remove the appEnv property here
|
appEnv: 'test' // don't remove the appEnv property here
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default Object.freeze(Object.assign(baseConfig, config));
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
require('core-js/fn/object/assign');
|
||||||
|
|
||||||
// Add support for all files in the test directory
|
// Add support for all files in the test directory
|
||||||
const testsContext = require.context('.', true, /(Test\.js$)|(Helper\.js$)/);
|
const testsContext = require.context('.', true, /(Test\.js$)|(Helper\.js$)/);
|
||||||
testsContext.keys().forEach(testsContext);
|
testsContext.keys().forEach(testsContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user