@wix/create-new 0.0.5 → 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/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.5",
4
+ "version": "0.0.7",
5
5
  "bin": "bin/index.cjs",
6
6
  "devDependencies": {
7
7
  "@commander-js/extra-typings": "^13.0.0",
@@ -12,6 +12,7 @@
12
12
  "@wix/cli-test-overrides": "0.0.0",
13
13
  "@wix/create-app-definitions": "0.0.0",
14
14
  "@wix/package-manager": "0.0.0",
15
+ "@wix/site-command": "0.0.0",
15
16
  "@wix/tsup-configs": "0.0.0"
16
17
  },
17
18
  "engines": {
@@ -47,5 +48,5 @@
47
48
  ]
48
49
  }
49
50
  },
50
- "falconPackageHash": "536c46a8c394b71f5829a616a21e3b6f010bf9ba6ae3f24b48b2d7b8"
51
+ "falconPackageHash": "5d13776942ed5c449ec7fb31fc64a2fd21fd41c5d3075e394826a9dc"
51
52
  }
@@ -1 +1 @@
1
- ## Astro App Templates
1
+ # Astro App Templates
@@ -0,0 +1,16 @@
1
+ ---
2
+ to: .cursor/mcp.json
3
+ skip_if: <%= ideForMcpType !== 'Cursor' %>
4
+ ---
5
+ {
6
+ "mcpServers": {
7
+ "wix-mcp-remote": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@wix/mcp-remote",
12
+ "https://mcp.wix.com/sse"
13
+ ]
14
+ }
15
+ }
16
+ }
@@ -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,5 @@
1
+ ---
2
+ to: .npmrc
3
+ skip_if: <%= packageManager.name !== 'npm' || isMonorepo %>
4
+ ---
5
+ legacy-peer-deps=true
@@ -0,0 +1 @@
1
+ 22.10.0
@@ -0,0 +1,16 @@
1
+ ---
2
+ to: .vscode/mcp.json
3
+ skip_if: <%= ideForMcpType !== 'VsCode' %>
4
+ ---
5
+ {
6
+ "servers": {
7
+ "wix-mcp-remote": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@wix/mcp-remote",
12
+ "https://mcp.wix.com/sse"
13
+ ]
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ to: .yarnrc.yml
3
+ skip_if: <%= packageManager.name !== 'yarn-berry' || isMonorepo %>
4
+ ---
5
+ nodeLinker: node-modules
@@ -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": "wix-astro-app-blank",
3
- "version": "0.0.1",
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.11.0",
6
- "@wix/dashboard": "^1.3.42",
7
- "@wix/design-system": "^1.227.0",
19
+ "@wix/astro": "^2.13.0",
20
+ "@wix/dashboard": "^1.3.36",
21
+ "@wix/design-system": "^1.0.0",
8
22
  "@wix/essentials": "^0.1.23",
9
- "@wix/sdk": "^1.17.4",
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.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"
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,3 @@
1
+ /// <reference types="@wix/sdk-types/client" />
2
+
3
+ // NOTE: This file should not be edited. This is an auto-generated file.
@@ -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/dashboard/pages/my-page/page.tsx to change this text."
16
+ subtitle="Edit src/extensions/my-page/page.tsx to change this text."
17
17
  skin="page"
18
18
  />
19
19
  </Page.Content>
@@ -1,12 +1,5 @@
1
1
  import { app } from '@wix/astro/builders';
2
- import { extensions } from '@wix/astro/builders';
2
+ import myPage from './extensions/dashboard/pages/my-page/my-page.extension';
3
3
 
4
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
- );
5
+ .use(myPage)
@@ -1,3 +1,6 @@
1
+ ---
2
+ to: wix.config.json
3
+ ---
1
4
  {
2
5
  "appId": "<%= devCenter.appId %>",
3
6
  "projectId": "<%= packageName %>",
@@ -1,3 +0,0 @@
1
- ## Astro App Blank Template
2
-
3
- Our Astro templates are still in development and subject to change.