create-rayso 1.0.0 → 1.0.2
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/bin/index.js +3 -0
- package/package.json +1 -1
- package/template/frontend/(core)/fetch/.gitkeep +0 -0
- package/template/frontend/(core)/lib/.gitkeep +0 -0
- package/template/frontend/components/animation/.gitkeep +0 -0
- package/template/frontend/components/icons/.gitkeep +0 -0
- package/template/frontend/components/layout/.gitkeep +0 -0
- package/template/frontend/components/sections/.gitkeep +0 -0
- package/template/frontend/components/ui/.gitkeep +0 -0
- package/template/frontend/public/img/.gitkeep +0 -0
- package/template/package.json +9 -2
package/bin/index.js
CHANGED
|
@@ -54,6 +54,9 @@ const copySpinner = ora('Scaffolding project...').start();
|
|
|
54
54
|
try {
|
|
55
55
|
await fs.copy(TEMPLATE_DIR, targetDir);
|
|
56
56
|
|
|
57
|
+
const gitkeeps = await fs.glob('**/.gitkeep', { cwd: targetDir });
|
|
58
|
+
await Promise.all(gitkeeps.map(f => fs.remove(path.join(targetDir, f))));
|
|
59
|
+
|
|
57
60
|
// Inject project name + description into root package.json
|
|
58
61
|
const rootPkg = await fs.readJson(path.join(targetDir, 'package.json'));
|
|
59
62
|
rootPkg.name = projectName;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/template/package.json
CHANGED
|
@@ -10,8 +10,15 @@
|
|
|
10
10
|
"deploy:studio": "cd studio && sanity deploy",
|
|
11
11
|
"zip": "bash zip.sh"
|
|
12
12
|
},
|
|
13
|
-
"workspaces": [
|
|
14
|
-
|
|
13
|
+
"workspaces": [
|
|
14
|
+
"frontend",
|
|
15
|
+
"studio"
|
|
16
|
+
],
|
|
17
|
+
"overrides": {
|
|
18
|
+
"react": "^19.0.0",
|
|
19
|
+
"react-dom": "^19.0.0"
|
|
20
|
+
},
|
|
21
|
+
"private": "false",
|
|
15
22
|
"license": "MIT",
|
|
16
23
|
"devDependencies": {
|
|
17
24
|
"npm-run-all": "^4.1.5"
|