mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-06-28 03:50:54 +08:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b3abd3159d | |||
| f56a70b13d | |||
| 1a12e83eb0 | |||
| d0720735be | |||
| 32fb22fbe6 | |||
| 9c921f608d | |||
| 834fe2569d | |||
| 9243cbfe57 | |||
| fcd1fe5ad1 | |||
| 27621bdd78 | |||
| d8d510a67d | |||
| 5ec8667f0f | |||
| fdf5601791 | |||
| 746e738443 |
@@ -1,5 +1,24 @@
|
||||
# react-webpack-template - Changelog
|
||||
|
||||
## 1.3.1:
|
||||
|
||||
1. Removed karma-phantomjs-shim (with PhantomJS 2 there is no need for shims anymore)
|
||||
|
||||
## 1.3.0:
|
||||
|
||||
1. Updated phantomjs to 2.0
|
||||
|
||||
## 1.2.1:
|
||||
|
||||
1. Updated lodash to latest stable version
|
||||
2. Cleaned up formatting of unittests
|
||||
|
||||
## 1.2.0:
|
||||
|
||||
1. Updated core-js to new 2.0 stable
|
||||
2. Moved lodash and react-addons-testutils to devDependencies (provided by [harunhasdal](https://github.com/harunhasdal))
|
||||
3. Moved run component from ```src/components/run.js``` to ```src/index.js``` (provided by [stylesuxx](https://github.com/stylesuxx))
|
||||
|
||||
## 1.1.0:
|
||||
|
||||
1. Added support for easier webpack include management (can now be set via cfg/base.js, see README.md)
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ let config = _.merge({
|
||||
entry: [
|
||||
'webpack-dev-server/client?http://127.0.0.1:8000',
|
||||
'webpack/hot/only-dev-server',
|
||||
'./src/components/run'
|
||||
'./src/index'
|
||||
],
|
||||
cache: true,
|
||||
devtool: 'eval',
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ let baseConfig = require('./base');
|
||||
let BowerWebpackPlugin = require('bower-webpack-plugin');
|
||||
|
||||
let config = _.merge({
|
||||
entry: path.join(__dirname, '../src/components/run'),
|
||||
entry: path.join(__dirname, '../src/index'),
|
||||
cache: false,
|
||||
devtool: 'sourcemap',
|
||||
plugins: [
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ module.exports = function(config) {
|
||||
],
|
||||
port: 8080,
|
||||
captureTimeout: 60000,
|
||||
frameworks: [ 'phantomjs-shim', 'mocha', 'chai' ],
|
||||
frameworks: [ 'mocha', 'chai' ],
|
||||
client: {
|
||||
mocha: {}
|
||||
},
|
||||
|
||||
+6
-7
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-webpack-template",
|
||||
"version": "1.1.0",
|
||||
"version": "1.3.1",
|
||||
"description": "A base skeleton template for react and webpack without task runners",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
@@ -56,15 +56,16 @@
|
||||
"karma-coverage": "^0.5.3",
|
||||
"karma-mocha": "^0.2.0",
|
||||
"karma-mocha-reporter": "^1.1.1",
|
||||
"karma-phantomjs-launcher": "^0.2.1",
|
||||
"karma-phantomjs-shim": "^1.1.1",
|
||||
"karma-phantomjs-launcher": "^1.0.0",
|
||||
"karma-sourcemap-loader": "^0.3.5",
|
||||
"karma-webpack": "^1.7.0",
|
||||
"lodash": "^4.0.0",
|
||||
"minimist": "^1.2.0",
|
||||
"mocha": "^2.2.5",
|
||||
"null-loader": "^0.1.1",
|
||||
"open": "0.0.5",
|
||||
"phantomjs": "^1.9.18",
|
||||
"phantomjs-prebuilt": "^2.0.0",
|
||||
"react-addons-test-utils": "^0.14.0",
|
||||
"react-hot-loader": "^1.2.9",
|
||||
"rimraf": "^2.4.3",
|
||||
"style-loader": "^0.13.0",
|
||||
@@ -73,11 +74,9 @@
|
||||
"webpack-dev-server": "^1.12.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"core-js": "^1.2.6",
|
||||
"lodash": "^3.10.1",
|
||||
"core-js": "^2.0.0",
|
||||
"normalize.css": "^3.0.3",
|
||||
"react": "^0.14.0",
|
||||
"react-addons-test-utils": "^0.14.0",
|
||||
"react-dom": "^0.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'core-js/fn/object/assign';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './Main';
|
||||
import App from './components/Main';
|
||||
|
||||
// Render the main component into the dom
|
||||
ReactDOM.render(<App />, document.getElementById('app'));
|
||||
@@ -11,13 +11,13 @@ import createComponent from 'helpers/shallowRenderHelper';
|
||||
import Main from 'components/Main';
|
||||
|
||||
describe('MainComponent', () => {
|
||||
let MainComponent;
|
||||
let MainComponent;
|
||||
|
||||
beforeEach(() => {
|
||||
MainComponent = createComponent(Main);
|
||||
});
|
||||
beforeEach(() => {
|
||||
MainComponent = createComponent(Main);
|
||||
});
|
||||
|
||||
it('should have its component name as default className', () => {
|
||||
expect(MainComponent.props.className).to.equal('index');
|
||||
});
|
||||
it('should have its component name as default className', () => {
|
||||
expect(MainComponent.props.className).to.equal('index');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user