Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
Simon Bailey 2014-01-08 15:27:24 +00:00
parent 9b23ccb65d
commit b59380a08d
3 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -28,4 +28,4 @@ $RECYCLE.BIN/
# App specific
node_modules/
temp/
temp*/

View File

@ -13,7 +13,7 @@ var Generator = module.exports = function Generator() {
this.appname = path.basename(process.cwd());
this.appname = this._.slugify(this._.humanize(this.appname));
this.scriptAppName = this._.capitalize(this.appname) + generalUtils.appName(this);
this.scriptAppName = this._.camelize(this._.capitalize(this.appname)) + generalUtils.appName(this);
this.classedName = this._.capitalize(this.name);
if (typeof this.env.options.appPath === 'undefined') {
@ -56,4 +56,4 @@ Generator.prototype.htmlTemplate = function (src, dest) {
Generator.prototype.generateSourceAndTest = function (appTemplate, testTemplate, targetDirectory) {
this.appTemplate(appTemplate, path.join('scripts', targetDirectory, this._.capitalize(this.name)));
this.testTemplate(testTemplate, path.join(targetDirectory, this._.capitalize(this.name)));
};
};

View File

@ -15,7 +15,7 @@ describe('react-webpack generator', function () {
'../../component',
'../../main'
];
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
helpers.testDirectory(path.join(__dirname, 'temp-test'), function (err) {
if (err) {
return done(err);
}
@ -42,7 +42,7 @@ describe('react-webpack generator', function () {
'karma.conf.js',
'package.json',
'package.json',
'src/scripts/components/TempApp.js',
'src/scripts/components/TempTestApp.js',
'test/helpers/phantomjs-shims.js',
'test/helpers/react/addons.js'
];