Store and assert config file

This commit is contained in:
ColCh 2014-11-02 11:02:26 +03:00
parent bfaec14ae1
commit 89ce919eee
2 changed files with 4 additions and 0 deletions

View File

@ -32,7 +32,10 @@ var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args
this.installDependencies({ skipInstall: options['skip-install'] });
});
this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
this.config.save();
};
util.inherits(ReactWebpackGenerator, yeoman.generators.Base);

View File

@ -48,6 +48,7 @@ describe('react-webpack generator', function() {
it('should generate dotfiles', function(done) {
react.run({}, function() {
helpers.assertFile([].concat(expected, [
'.yo-rc.json',
'.editorconfig',
'.gitignore',
'.jshintrc'