@wix/create-new 0.0.1 → 0.0.3
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/build-6IMWAXMA.js +182 -0
- package/build/build-6IMWAXMA.js.map +1 -0
- package/build/chunk-4EFJZ3GQ.js +66 -0
- package/build/chunk-4EFJZ3GQ.js.map +1 -0
- package/build/chunk-C4SUTB4O.js +8289 -0
- package/build/chunk-C4SUTB4O.js.map +1 -0
- package/build/chunk-Z4MHKCET.js +3451 -0
- package/build/chunk-Z4MHKCET.js.map +1 -0
- package/build/devtools-ZMIKPDMD.js +3703 -0
- package/build/devtools-ZMIKPDMD.js.map +1 -0
- package/build/esm-KPR2HWDF.js +15068 -0
- package/build/esm-KPR2HWDF.js.map +1 -0
- package/build/index.js +86645 -245
- package/build/index.js.map +1 -1
- package/package.json +11 -3
- package/templates/app/README.md +1 -0
- package/templates/app/blank/.vscode/extensions.json +4 -0
- package/templates/app/blank/.vscode/launch.json +11 -0
- package/templates/app/blank/.vscode/settings.json +5 -0
- package/templates/app/blank/README.md +3 -0
- package/templates/app/blank/astro.config.mjs +23 -0
- package/templates/app/blank/package.json +33 -0
- package/templates/app/blank/src/extensions/dashboard/pages/my-page/page.tsx +25 -0
- package/templates/app/blank/src/extensions.ts +12 -0
- package/templates/app/blank/tsconfig.json +5 -0
- package/templates/app/blank/wix.config.json +5 -0
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
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.3",
|
|
5
5
|
"bin": "bin/index.cjs",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@commander-js/extra-typings": "^13.0.0",
|
|
8
|
+
"@wix/app-command": "0.0.0",
|
|
9
|
+
"@wix/cli-auth": "0.0.0",
|
|
10
|
+
"@wix/cli-error-reporting": "0.0.0",
|
|
11
|
+
"@wix/cli-panorama": "0.0.0",
|
|
12
|
+
"@wix/cli-test-overrides": "0.0.0",
|
|
13
|
+
"@wix/create-app-definitions": "0.0.0",
|
|
14
|
+
"@wix/package-manager": "0.0.0",
|
|
8
15
|
"@wix/tsup-configs": "0.0.0"
|
|
9
16
|
},
|
|
10
17
|
"engines": {
|
|
@@ -12,7 +19,8 @@
|
|
|
12
19
|
},
|
|
13
20
|
"files": [
|
|
14
21
|
"bin",
|
|
15
|
-
"build"
|
|
22
|
+
"build",
|
|
23
|
+
"templates"
|
|
16
24
|
],
|
|
17
25
|
"publishConfig": {
|
|
18
26
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -39,5 +47,5 @@
|
|
|
39
47
|
]
|
|
40
48
|
}
|
|
41
49
|
},
|
|
42
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "6bc8a02008d0a6ec4f1d63b57bd7c2807ef9ddca4fc583fc0d2a39d0"
|
|
43
51
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Astro App Templates
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { defineConfig } from 'astro/config';
|
|
3
|
+
import wix from '@wix/astro';
|
|
4
|
+
|
|
5
|
+
import react from "@astrojs/react";
|
|
6
|
+
import cloudflare from "@astrojs/cloudflare";
|
|
7
|
+
|
|
8
|
+
// https://astro.build/config
|
|
9
|
+
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
|
+
output: "server",
|
|
23
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wix-astro-app-blank",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@wix/astro": "^2.11.0",
|
|
6
|
+
"@wix/dashboard": "^1.3.42",
|
|
7
|
+
"@wix/design-system": "^1.225.0",
|
|
8
|
+
"@wix/essentials": "^0.1.23",
|
|
9
|
+
"@wix/sdk": "^1.17.3",
|
|
10
|
+
"astro": "^5.8.0",
|
|
11
|
+
"typescript": "^5.8.3"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@astrojs/cloudflare": "^12.5.3",
|
|
15
|
+
"@astrojs/react": "^4.3.0",
|
|
16
|
+
"@types/react": "^18.3.1",
|
|
17
|
+
"@types/react-dom": "^18.3.1",
|
|
18
|
+
"@wix/cli": "^1.1.92",
|
|
19
|
+
"react": "18.3.1",
|
|
20
|
+
"react-dom": "18.3.1"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
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"
|
|
33
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { EmptyState, Page, WixDesignSystemProvider } from '@wix/design-system';
|
|
3
|
+
import '@wix/design-system/styles.global.css';
|
|
4
|
+
|
|
5
|
+
const DashboardPage: FC = () => {
|
|
6
|
+
return (
|
|
7
|
+
<WixDesignSystemProvider features={{ newColorsBranding: true }}>
|
|
8
|
+
<Page>
|
|
9
|
+
<Page.Header
|
|
10
|
+
title="My Page"
|
|
11
|
+
subtitle="This is a subtitle for your page"
|
|
12
|
+
/>
|
|
13
|
+
<Page.Content>
|
|
14
|
+
<EmptyState
|
|
15
|
+
title="My Page"
|
|
16
|
+
subtitle="Edit src/extensions/dashboard/pages/my-page/page.tsx to change this text."
|
|
17
|
+
skin="page"
|
|
18
|
+
/>
|
|
19
|
+
</Page.Content>
|
|
20
|
+
</Page>
|
|
21
|
+
</WixDesignSystemProvider>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default DashboardPage;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { app } from '@wix/astro/builders';
|
|
2
|
+
import * as extensions from '@wix/astro/builders';
|
|
3
|
+
|
|
4
|
+
export default app()
|
|
5
|
+
.use(
|
|
6
|
+
extensions.dashboardPage({
|
|
7
|
+
id: '<%= generatePageID() %>',
|
|
8
|
+
component: './extensions/dashboard/pages/my-page/page.tsx',
|
|
9
|
+
routePath: 'my-page',
|
|
10
|
+
title: 'My Page',
|
|
11
|
+
})
|
|
12
|
+
);
|