generate-react-cli 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generate-react-cli",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "A simple React CLI to generate components instantly and more.",
|
|
5
5
|
"repository": "https://github.com/arminbro/generate-react-cli",
|
|
6
6
|
"bugs": "https://github.com/arminbro/generate-react-cli/issues",
|
|
@@ -4,7 +4,7 @@ import replace from 'replace';
|
|
|
4
4
|
import camelCase from 'lodash/camelCase.js';
|
|
5
5
|
import kebabCase from 'lodash/kebabCase.js';
|
|
6
6
|
import snakeCase from 'lodash/snakeCase.js';
|
|
7
|
-
import
|
|
7
|
+
import startCase from 'lodash/startCase.js';
|
|
8
8
|
import fsExtra from 'fs-extra';
|
|
9
9
|
|
|
10
10
|
import componentJsTemplate from '../templates/component/componentJsTemplate.js';
|
|
@@ -375,7 +375,7 @@ export function generateComponent(componentName, cmd, cliConfigFile) {
|
|
|
375
375
|
// Will replace the TemplateName in PascalCase
|
|
376
376
|
replace({
|
|
377
377
|
regex: 'TemplateName',
|
|
378
|
-
replacement:
|
|
378
|
+
replacement: startCase(camelCase(componentName)).replace(/ /g, ''),
|
|
379
379
|
paths: [componentPath],
|
|
380
380
|
recursive: false,
|
|
381
381
|
silent: true,
|