@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/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.1",
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": "d7cf44a58107712fa694fb8b4d0a29b1cd8ebbeb8e9e342ad4502648"
50
+ "falconPackageHash": "6bc8a02008d0a6ec4f1d63b57bd7c2807ef9ddca4fc583fc0d2a39d0"
43
51
  }
@@ -0,0 +1 @@
1
+ ## Astro App Templates
@@ -0,0 +1,4 @@
1
+ {
2
+ "recommendations": ["astro-build.astro-vscode"],
3
+ "unwantedRecommendations": []
4
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "command": "./node_modules/.bin/astro dev",
6
+ "name": "Development server",
7
+ "request": "launch",
8
+ "type": "node-terminal"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "editor.quickSuggestions": {
3
+ "strings": "on"
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ ## Astro App Blank Template
2
+
3
+ Our Astro templates are still in development and subject to change.
@@ -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
+ );
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "astro/tsconfigs/strict",
3
+ "include": [".astro/types.d.ts", "**/*"],
4
+ "exclude": ["dist"]
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "appId": "<%= devCenter.appId %>",
3
+ "projectId": "<%= packageName %>",
4
+ "projectType": "App"
5
+ }