mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-10 12:00:17 +08:00
+2
-2
@@ -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)));
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user