Skip to content

Commit 2aec5f9

Browse files
committed
refactoring the setup and cli
1 parent 947d869 commit 2aec5f9

File tree

398 files changed

+79
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+79
-170
lines changed

courses/advanced-component-design/03-date-picker/exercise/Popover/Popover.module.css

-8
This file was deleted.

courses/advanced-component-design/03-date-picker/exercise/Popover/Popover.tsx

-47
This file was deleted.

courses/advanced-component-design/03-date-picker/exercise/Popover/index.ts

-2
This file was deleted.

courses/advanced-component-design/03-date-picker/exercise/Portal/Portal.tsx

-22
This file was deleted.

courses/advanced-component-design/03-date-picker/exercise/Portal/index.ts

-2
This file was deleted.

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<body data-theme="light">
1616
<div id="root"></div>
17-
<script type="module" src="/apps/spa/entry.tsx"></script>
17+
<script type="module" src="/react/_full-app/entry.tsx"></script>
1818
</body>
1919

2020
</html>

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.0.0",
44
"scripts": {
55
"start": "node scripts/start.js",
6-
"//remix": "cd apps/remix && npm",
76
"test": "NODE_PATH=./apps jest",
87
"kill-db-port": "node scripts/kill-db-port 3333",
98
"create-db": "node scripts/create-db",

plopfile.mjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'fs'
22
import path from 'path'
33

4-
const appPath = `apps/spa`
4+
const appPath = path.join('react', '_app')
55

66
export default function create(plop) {
77
// controller generator
@@ -23,26 +23,26 @@ export default function create(plop) {
2323
{
2424
type: 'add',
2525
path: path.join(appPath, '{{name}}/index.ts'),
26-
templateFile: 'utils/plop-component/index.hbs',
26+
templateFile: 'scripts/plop-component/index.hbs',
2727
},
2828
]
2929

3030
if (input.styles) {
3131
actions.push({
3232
type: 'add',
3333
path: path.join(appPath, '{{name}}/{{name}}.module.scss'),
34-
templateFile: 'utils/plop-component/scss.hbs',
34+
templateFile: 'scripts/plop-component/scss.hbs',
3535
})
3636
actions.push({
3737
type: 'add',
3838
path: path.join(appPath, '{{name}}/{{name}}.tsx'),
39-
templateFile: 'utils/plop-component/component-with-scss.hbs',
39+
templateFile: 'scripts/plop-component/component-with-scss.hbs',
4040
})
4141
} else {
4242
actions.push({
4343
type: 'add',
4444
path: path.join(appPath, '{{name}}/{{name}}.tsx'),
45-
templateFile: 'utils/plop-component/component.hbs',
45+
templateFile: 'scripts/plop-component/component.hbs',
4646
})
4747
}
4848

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)