create-catalyst-app-internal 0.0.1-beta.7 → 0.0.1-beta.9
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
package/scripts/cli.cjs
CHANGED
|
@@ -63,7 +63,7 @@ const program = new Commander.Command()
|
|
|
63
63
|
createGitignore(projectName)
|
|
64
64
|
|
|
65
65
|
execSync(
|
|
66
|
-
`cd ${projectName} && npm i && npm pkg set name=${projectName} ${projectDescription ? `description
|
|
66
|
+
`cd ${projectName} && npm i && npm pkg set name=${projectName} ${projectDescription ? `description="${projectDescription}"` : ""} && git init --quiet`,
|
|
67
67
|
{ stdio: "inherit" }
|
|
68
68
|
)
|
|
69
69
|
|
|
@@ -221,9 +221,9 @@ function deleteDirectory(dirPath) {
|
|
|
221
221
|
function createGitignore(projectName) {
|
|
222
222
|
|
|
223
223
|
const gitiIgnorePatterns = [
|
|
224
|
-
'
|
|
225
|
-
'build
|
|
226
|
-
'logs
|
|
224
|
+
'node_module',
|
|
225
|
+
'build',
|
|
226
|
+
'logs'
|
|
227
227
|
];
|
|
228
228
|
|
|
229
229
|
const gitignorePath = path.join(process.cwd(), projectName, '.gitignore');
|
|
@@ -12,11 +12,9 @@ window.addEventListener("load", () => {
|
|
|
12
12
|
const router = clientRouter({ routerInitialState: routerInitialData })
|
|
13
13
|
|
|
14
14
|
const Application = (
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
</React.StrictMode>
|
|
19
|
-
</Provider>
|
|
15
|
+
<React.StrictMode>
|
|
16
|
+
<RouterProvider router={router} />
|
|
17
|
+
</React.StrictMode>
|
|
20
18
|
)
|
|
21
19
|
|
|
22
20
|
const container = document.getElementById("app")
|