Compare commits

...
6 Commits
Author SHA1 Message Date
Chris 6b9e24c85a 3.2.4 2016-03-02 11:56:34 +01:00
Chris 561e072a9c Adjusted generated unit tests 2016-03-02 11:56:12 +01:00
Chris 56d6b9cd48 3.2.3 2016-02-23 22:14:34 +01:00
Chris 43f3bce786 Added changelog for 3.2.3 (adjusted postcss config to work with new react-webpack-template). 2016-02-23 22:14:02 +01:00
Chris f6327e1904 Merge pull request #188 from thewtex/grammar
Grammar improvement to the style prompt.
2016-01-25 08:33:00 +01:00
Matt McCormick bd5748bb89 Grammar improvement to the style prompt. 2016-01-24 10:14:47 -05:00
6 changed files with 22 additions and 12 deletions
+8
View File
@@ -1,5 +1,13 @@
# generator-react-webpack - Changelog # generator-react-webpack - Changelog
## 3.2.4
1. Added whitespaces to generated unit tests (made problems when using it with various eslint rules)
## 3.2.3
1. Adjusted postcss to work with react-webpack-template 1.4 upwards
2. Improved styling output (provided by [thewtex](https://github.com/thewtex))
## 3.2.2 ## 3.2.2
1. Cleaned up formatting of unit tests 1. Cleaned up formatting of unit tests
+1 -1
View File
@@ -138,7 +138,7 @@ module.exports = generator.Base.extend({
install: function() { install: function() {
if(this.postcss) { if(this.postcss) {
let postcss = require('./postcss'); let postcss = require('./postcss');
postcss.write(path.join(this.destinationRoot(), 'cfg/base.js')); postcss.write(path.join(this.destinationRoot(), 'cfg/defaults.js'));
} }
if(!this.options['skip-install']) { if(!this.options['skip-install']) {
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = [
{ {
type: 'list', type: 'list',
name: 'style', name: 'style',
message: 'Which styles language you want to use?', message: 'Which style language do you want to use?',
choices: utils.config.getChoices('style'), choices: utils.config.getChoices('style'),
default: utils.config.getDefaultChoice('style') default: utils.config.getDefaultChoice('style')
}, },
+3 -3
View File
@@ -1,6 +1,6 @@
/*eslint-env node, mocha */ /* eslint-env node, mocha */
/*global expect */ /* global expect */
/*eslint no-console: 0*/ /* eslint no-console: 0 */
'use strict'; 'use strict';
// Uncomment the following lines to use the react test utilities // Uncomment the following lines to use the react test utilities
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "generator-react-webpack", "name": "generator-react-webpack",
"version": "3.2.2", "version": "3.2.4",
"description": "Yeoman generator for using React with Webpack via Babel", "description": "Yeoman generator for using React with Webpack via Babel",
"keywords": [ "keywords": [
"yeoman-generator", "yeoman-generator",
+8 -6
View File
@@ -65,6 +65,7 @@ describe('react-webpack:app', () => {
assert.file([ assert.file([
'cfg/base.js', 'cfg/base.js',
'cfg/defaults.js',
'cfg/dev.js', 'cfg/dev.js',
'cfg/dist.js', 'cfg/dist.js',
'cfg/test.js', 'cfg/test.js',
@@ -159,6 +160,7 @@ describe('react-webpack:app non-default-prompts', () => {
assert.file([ assert.file([
'cfg/base.js', 'cfg/base.js',
'cfg/defaults.js',
'cfg/dev.js', 'cfg/dev.js',
'cfg/dist.js', 'cfg/dist.js',
'cfg/test.js', 'cfg/test.js',
@@ -169,16 +171,16 @@ describe('react-webpack:app non-default-prompts', () => {
it('should insert the postcss loader into the style pipes', () => { it('should insert the postcss loader into the style pipes', () => {
assert.fileContent('cfg/base.js', 'loader: \'style-loader!css-loader!postcss-loader\''); assert.fileContent('cfg/defaults.js', 'loader: \'style-loader!css-loader!postcss-loader\'');
assert.fileContent('cfg/base.js', 'loader: \'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded&indentedSyntax\''); assert.fileContent('cfg/defaults.js', 'loader: \'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded&indentedSyntax\'');
assert.fileContent('cfg/base.js', 'loader: \'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded\''); assert.fileContent('cfg/defaults.js', 'loader: \'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded\'');
assert.fileContent('cfg/base.js', 'loader: \'style-loader!css-loader!postcss-loader!less-loader\''); assert.fileContent('cfg/defaults.js', 'loader: \'style-loader!css-loader!postcss-loader!less-loader\'');
assert.fileContent('cfg/base.js', 'loader: \'style-loader!css-loader!postcss-loader!stylus-loader\''); assert.fileContent('cfg/defaults.js', 'loader: \'style-loader!css-loader!postcss-loader!stylus-loader\'');
}); });
it('should append the postcss function to the base config', () => { it('should append the postcss function to the base config', () => {
assert.fileContent('cfg/base.js', ',\n postcss: function () {\n return [];\n }'); assert.fileContent('cfg/defaults.js', ',\n postcss: function () {\n return [];\n }');
}); });
it('should generate required source files', () => { it('should generate required source files', () => {