@wix/create-new 0.0.6 → 0.0.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/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/templates/app/README.md +1 -1
- package/templates/app/blank/.cursor/mcp.json.ejs +16 -0
- package/templates/app/blank/.gitignore.ejs +45 -0
- package/templates/app/blank/.npmrc.ejs +5 -0
- package/templates/app/blank/.nvmrc +1 -0
- package/templates/app/blank/.vscode/mcp.json.ejs +16 -0
- package/templates/app/blank/.yarnrc.yml.ejs +5 -0
- package/templates/app/blank/astro.config.mjs +3 -14
- package/templates/app/blank/{package.json → package.json.ejs} +25 -22
- package/templates/app/blank/src/env.d.ts +3 -0
- package/templates/app/blank/src/extensions/dashboard/pages/my-page/my-page.extension.ts.ejs +11 -0
- package/templates/app/blank/src/extensions/dashboard/pages/my-page/{page.tsx → my-page.tsx} +1 -1
- package/templates/app/blank/src/extensions.ts +3 -2
- package/templates/app/blank/{wix.config.json → wix.config.json.ejs} +3 -0
- package/templates/app/blank/README.md +0 -3
- package/templates/app/blank/src/extensions/dashboard/pages/my-page/page.extension.ts +0 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/create-new",
|
|
3
3
|
"description": "General entry point for creating Wix projects",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"bin": "bin/index.cjs",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@commander-js/extra-typings": "^13.0.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "5d13776942ed5c449ec7fb31fc64a2fd21fd41c5d3075e394826a9dc"
|
|
52
52
|
}
|
package/templates/app/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
# Astro App Templates
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: .gitignore
|
|
3
|
+
---
|
|
4
|
+
# wix integration
|
|
5
|
+
.wix/
|
|
6
|
+
|
|
7
|
+
# build output
|
|
8
|
+
dist/
|
|
9
|
+
|
|
10
|
+
# generated types
|
|
11
|
+
.astro/
|
|
12
|
+
|
|
13
|
+
# dependencies
|
|
14
|
+
node_modules/
|
|
15
|
+
|
|
16
|
+
# logs
|
|
17
|
+
*.log
|
|
18
|
+
<% if(packageManager.name === 'yarn' || packageManager.name === 'yarn-berry') { -%>
|
|
19
|
+
yarn-debug.log*
|
|
20
|
+
yarn-error.log*
|
|
21
|
+
<% } else if (packageManager.name === 'npm') { -%>
|
|
22
|
+
npm-debug.log*
|
|
23
|
+
<% } -%>
|
|
24
|
+
|
|
25
|
+
<% if(packageManager.name === 'yarn-berry') { -%>
|
|
26
|
+
# Yarn Berry
|
|
27
|
+
.pnp.*
|
|
28
|
+
.yarn/*
|
|
29
|
+
!.yarn/patches
|
|
30
|
+
!.yarn/plugins
|
|
31
|
+
!.yarn/releases
|
|
32
|
+
!.yarn/sdks
|
|
33
|
+
!.yarn/versions
|
|
34
|
+
|
|
35
|
+
<% } -%>
|
|
36
|
+
|
|
37
|
+
# environment variables
|
|
38
|
+
.env
|
|
39
|
+
.env.local
|
|
40
|
+
.env.production
|
|
41
|
+
|
|
42
|
+
# misc
|
|
43
|
+
.DS_Store
|
|
44
|
+
.idea/
|
|
45
|
+
out
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
22.10.0
|
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
import { defineConfig } from 'astro/config';
|
|
3
3
|
import wix from '@wix/astro';
|
|
4
|
-
|
|
5
4
|
import react from "@astrojs/react";
|
|
6
5
|
import cloudflare from "@astrojs/cloudflare";
|
|
7
6
|
|
|
8
|
-
// https://astro.build/config
|
|
9
7
|
export default defineConfig({
|
|
10
|
-
integrations: [wix(), react()],
|
|
11
|
-
|
|
12
|
-
adapter: cloudflare({
|
|
13
|
-
platformProxy: {
|
|
14
|
-
enabled: false,
|
|
15
|
-
},
|
|
16
|
-
}),
|
|
17
|
-
|
|
18
|
-
image: {
|
|
19
|
-
domains: ["static.wixstatic.com"],
|
|
20
|
-
},
|
|
21
|
-
|
|
22
8
|
output: "server",
|
|
9
|
+
adapter: cloudflare(),
|
|
10
|
+
integrations: [wix(), react()],
|
|
11
|
+
image: { domains: ["static.wixstatic.com"] },
|
|
23
12
|
});
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: package.json
|
|
3
|
+
---
|
|
1
4
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"
|
|
5
|
+
"name": "<%= packageName %>",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"version": "1.0.0",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"astro": "astro",
|
|
10
|
+
"wix": "wix",
|
|
11
|
+
"env": "wix env",
|
|
12
|
+
"dev": "wix dev",
|
|
13
|
+
"build": "wix build",
|
|
14
|
+
"preview": "wix preview",
|
|
15
|
+
"release": "wix release",
|
|
16
|
+
"generate": "wix generate"
|
|
17
|
+
},
|
|
4
18
|
"dependencies": {
|
|
5
|
-
"@wix/astro": "^2.
|
|
6
|
-
"@wix/dashboard": "^1.3.
|
|
7
|
-
"@wix/design-system": "^1.
|
|
8
|
-
"@wix/essentials": "^0.1.
|
|
9
|
-
"@wix/sdk": "^1.17.4",
|
|
19
|
+
"@wix/astro": "^2.13.0",
|
|
20
|
+
"@wix/dashboard": "^1.3.36",
|
|
21
|
+
"@wix/design-system": "^1.0.0",
|
|
22
|
+
"@wix/essentials": "^0.1.23",
|
|
10
23
|
"astro": "^5.8.0",
|
|
11
24
|
"typescript": "^5.8.3"
|
|
12
25
|
},
|
|
@@ -15,19 +28,9 @@
|
|
|
15
28
|
"@astrojs/react": "^4.3.0",
|
|
16
29
|
"@types/react": "^18.3.1",
|
|
17
30
|
"@types/react-dom": "^18.3.1",
|
|
18
|
-
"@wix/cli": "^1.1.
|
|
19
|
-
"
|
|
20
|
-
"react
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"astro": "astro",
|
|
24
|
-
"build": "wix build",
|
|
25
|
-
"dev": "wix dev",
|
|
26
|
-
"env": "wix env",
|
|
27
|
-
"generate": "wix generate",
|
|
28
|
-
"preview": "wix preview",
|
|
29
|
-
"release": "wix release",
|
|
30
|
-
"wix": "wix"
|
|
31
|
-
},
|
|
32
|
-
"type": "module"
|
|
31
|
+
"@wix/cli": "^1.1.135",
|
|
32
|
+
"@wix/sdk-types": "^1.0.0",
|
|
33
|
+
"react": "^18.3.1",
|
|
34
|
+
"react-dom": "^18.3.1"
|
|
35
|
+
}
|
|
33
36
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: src/extensions/dashboard/pages/my-page/my-page.extension.ts
|
|
3
|
+
---
|
|
4
|
+
import { extensions } from '@wix/astro/builders';
|
|
5
|
+
|
|
6
|
+
export default extensions.dashboardPage({
|
|
7
|
+
id: '<%= generatePageID() %>',
|
|
8
|
+
title: 'My Page',
|
|
9
|
+
routePath: '/',
|
|
10
|
+
component: './extensions/dashboard/pages/my-page/my-page.tsx',
|
|
11
|
+
});
|
|
@@ -13,7 +13,7 @@ const DashboardPage: FC = () => {
|
|
|
13
13
|
<Page.Content>
|
|
14
14
|
<EmptyState
|
|
15
15
|
title="My Page"
|
|
16
|
-
subtitle="Edit src/extensions/
|
|
16
|
+
subtitle="Edit src/extensions/my-page/page.tsx to change this text."
|
|
17
17
|
skin="page"
|
|
18
18
|
/>
|
|
19
19
|
</Page.Content>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { app } from '@wix/astro/builders';
|
|
2
|
-
import
|
|
2
|
+
import myPage from './extensions/dashboard/pages/my-page/my-page.extension';
|
|
3
3
|
|
|
4
|
-
export default app()
|
|
4
|
+
export default app()
|
|
5
|
+
.use(myPage)
|