mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
parent
9b23ccb65d
commit
b59380a08d
2
.gitignore
vendored
2
.gitignore
vendored
@ -28,4 +28,4 @@ $RECYCLE.BIN/
|
||||
# App specific
|
||||
|
||||
node_modules/
|
||||
temp/
|
||||
temp*/
|
||||
|
||||
@ -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)));
|
||||
};
|
||||
};
|
||||
|
||||
@ -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'
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user