create-catalyst-app-internal 0.0.1-beta.6 → 0.0.1-beta.7
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 +1 -1
- package/scripts/cli.cjs +1 -4
- package/templates/common/src/js/containers/Home/Home.js +2 -2
- package/templates/none-js/package.json +1 -1
- package/templates/redux-js/package.json +1 -1
- package/templates/redux-js/src/js/containers/App/reducer.js +1 -2
- package/templates/rtk-js/package.json +1 -1
package/package.json
CHANGED
package/scripts/cli.cjs
CHANGED
|
@@ -63,12 +63,10 @@ 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=${projectDescription}` : ""
|
|
67
|
-
} && git init --quiet`,
|
|
66
|
+
`cd ${projectName} && npm i && npm pkg set name=${projectName} ${projectDescription ? `description=${projectDescription}` : ""} && git init --quiet`,
|
|
68
67
|
{ stdio: "inherit" }
|
|
69
68
|
)
|
|
70
69
|
|
|
71
|
-
console.log(cyan(`Installing Packages`))
|
|
72
70
|
|
|
73
71
|
deleteDirectory(tempDir)
|
|
74
72
|
} catch (error) {
|
|
@@ -238,4 +236,3 @@ function createGitignore(projectName) {
|
|
|
238
236
|
fs.writeFileSync(gitignorePath, gitiIgnorePatterns.join('\n'));
|
|
239
237
|
}
|
|
240
238
|
|
|
241
|
-
// Create .gitignore with hardcoded patterns
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import css from "./Home.scss"
|
|
3
3
|
|
|
4
|
-
function
|
|
4
|
+
function Home() {
|
|
5
5
|
return (
|
|
6
6
|
<div className={css.app}>
|
|
7
7
|
<header className={css.appHeader}>
|
|
@@ -20,4 +20,4 @@ function Landing() {
|
|
|
20
20
|
)
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export default
|
|
23
|
+
export default Home
|
|
@@ -4,7 +4,7 @@ export const defaultState = {
|
|
|
4
4
|
testActionDispatched: false,
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
const shellReducer = (state = defaultState, action) => {
|
|
7
|
+
export const shellReducer = (state = defaultState, action) => {
|
|
8
8
|
switch (action.type) {
|
|
9
9
|
case ShellActions.REDUX_TEST: {
|
|
10
10
|
return {
|
|
@@ -18,4 +18,3 @@ const shellReducer = (state = defaultState, action) => {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export default shellReducer
|