Compare commits

...

14 Commits

Author SHA1 Message Date
Chris b3abd3159d 1.3.1 2016-01-29 13:54:38 +01:00
Chris f56a70b13d Fix: Removed karma-phantomjs-shim from packages list and karma (it is no longer needed in phantomjs 2) 2016-01-29 13:54:28 +01:00
Chris 1a12e83eb0 1.3.0 2016-01-29 13:32:49 +01:00
Chris d0720735be Updated phantomjs to 2.0 2016-01-29 13:32:39 +01:00
Chris 32fb22fbe6 1.2.1 2016-01-13 07:51:50 +01:00
Chris 9c921f608d Adjusted changelog for v1.2.1 2016-01-13 07:51:40 +01:00
Chris 834fe2569d Updated lodash to current stable, cleaned up unit test formatting 2016-01-13 07:50:37 +01:00
Chris 9243cbfe57 1.2.0 2015-12-28 08:13:36 +01:00
Chris fcd1fe5ad1 Updated core-js, moved some dependencies to devDependencies, moved component runner to source root 2015-12-28 08:13:18 +01:00
Chris 27621bdd78 Merge pull request #19 from stylesuxx/flux-agnostic
Moved run script to root of src folder
2015-12-28 07:59:48 +01:00
stylesuxx d8d510a67d Moved run script to root of src folder and renamed it to index.j. Updated config files to use this as entry point to the template 2015-12-18 11:28:43 +01:00
Chris 5ec8667f0f Merge pull request #17 from harunhasdal/cleanup-dependencies
Move core-js, lodash and react-addons-test-utils to devDependencies
2015-12-16 08:47:02 +01:00
harunhasdal fdf5601791 Move core-js back out of devDependencies 2015-12-15 13:45:28 +00:00
harunhasdal 746e738443 Move core-js, lodash and react-addons-test-utils to devDependencies 2015-12-15 12:50:46 +00:00
7 changed files with 36 additions and 18 deletions
+19
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -9,7 +9,7 @@ module.exports = function(config) {
],
port: 8080,
captureTimeout: 60000,
frameworks: [ 'phantomjs-shim', 'mocha', 'chai' ],
frameworks: [ 'mocha', 'chai' ],
client: {
mocha: {}
},
+6 -7
View File
@@ -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 -1
View File
@@ -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'));
+7 -7
View File
@@ -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');
});
});