@wix/create-app 0.0.5
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/README.md +17 -0
- package/bin/index.cjs +20 -0
- package/build/index.cjs +44491 -0
- package/package.json +69 -0
- package/templates/app/.env.ejs +4 -0
- package/templates/app/.gitignore.ejs +30 -0
- package/templates/app/.nvmrc.ejs +4 -0
- package/templates/app/.yarnrc.yml.ejs +9 -0
- package/templates/app/README.md.ejs +20 -0
- package/templates/app/package.json.ejs +28 -0
- package/templates/app/src/admin/pages/page.json +4 -0
- package/templates/app/src/admin/pages/page.tsx +28 -0
- package/templates/app/tsconfig.json.ejs +10 -0
- package/templates/app/wix.config.json +3 -0
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/create-app",
|
|
3
|
+
"description": "Create Wix apps",
|
|
4
|
+
"version": "0.0.5",
|
|
5
|
+
"author": "Ihor Machuzhak",
|
|
6
|
+
"bin": "bin/index.cjs",
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@commander-js/extra-typings": "^10.0.2",
|
|
9
|
+
"@types/prompts": "^2.4.2",
|
|
10
|
+
"@wix/ambassador-devcenter-apps-v1-app": "^1.0.195",
|
|
11
|
+
"@wix/ambassador-devcenter-components-v1-component": "^1.0.165",
|
|
12
|
+
"@wix/ambassador-devcenter-dsm-v1-development-site": "^1.0.13",
|
|
13
|
+
"@wix/ambassador-site-list-v2-site": "^1.0.55",
|
|
14
|
+
"@wix/cli-auth": "0.0.0",
|
|
15
|
+
"@wix/gena": "0.0.0",
|
|
16
|
+
"@wix/http-client": "^1.526.0",
|
|
17
|
+
"@wix/user-browser": "0.0.0",
|
|
18
|
+
"chalk": "^5.2.0",
|
|
19
|
+
"commander": "^10.0.0",
|
|
20
|
+
"execa": "^6.1.0",
|
|
21
|
+
"ora": "^6.1.2",
|
|
22
|
+
"p-retry": "^5.1.2",
|
|
23
|
+
"prompts": "^2.4.2",
|
|
24
|
+
"tsup": "^6.5.0"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">= 14.18"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"bin",
|
|
31
|
+
"build",
|
|
32
|
+
"templates"
|
|
33
|
+
],
|
|
34
|
+
"perfer": {
|
|
35
|
+
"bundleSize": {
|
|
36
|
+
"files": [
|
|
37
|
+
{
|
|
38
|
+
"glob": "./build/index.cjs",
|
|
39
|
+
"maxSize": "270kb"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"registry": "https://registry.npmjs.org/",
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsup",
|
|
50
|
+
"build:watch": "run build --watch",
|
|
51
|
+
"dev:npm": "npx $INIT_CWD",
|
|
52
|
+
"dev:yarn": "yarn create @wix/app@portal:$INIT_CWD",
|
|
53
|
+
"test": ":",
|
|
54
|
+
"typecheck": "run -T tsc --noEmit"
|
|
55
|
+
},
|
|
56
|
+
"type": "module",
|
|
57
|
+
"wix": {
|
|
58
|
+
"artifact": {
|
|
59
|
+
"groupId": "com.wixpress",
|
|
60
|
+
"artifactId": "wix-create-app"
|
|
61
|
+
},
|
|
62
|
+
"validations": {
|
|
63
|
+
"postBuild": [
|
|
64
|
+
"typecheck"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"falconPackageHash": "9bc1bba0ebc05382b58569e45b215c5042c042e8dadaa3fa603cd270"
|
|
69
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: .gitignore
|
|
3
|
+
---
|
|
4
|
+
node_modules
|
|
5
|
+
build
|
|
6
|
+
|
|
7
|
+
# Logs
|
|
8
|
+
logs
|
|
9
|
+
*.log
|
|
10
|
+
<% if(packageManager.isYarnBerry) { -%>
|
|
11
|
+
yarn-debug.log*
|
|
12
|
+
yarn-error.log*
|
|
13
|
+
<% } else if (packageManager.isNpm) { -%>
|
|
14
|
+
npm-debug.log*
|
|
15
|
+
<% } -%>
|
|
16
|
+
|
|
17
|
+
<% if(packageManager.isYarnBerry) { -%>
|
|
18
|
+
# Yarn Berry
|
|
19
|
+
.pnp.*
|
|
20
|
+
.yarn/*
|
|
21
|
+
!.yarn/patches
|
|
22
|
+
!.yarn/plugins
|
|
23
|
+
!.yarn/releases
|
|
24
|
+
!.yarn/sdks
|
|
25
|
+
!.yarn/versions
|
|
26
|
+
|
|
27
|
+
<% } -%>
|
|
28
|
+
# Misc
|
|
29
|
+
.DS_Store
|
|
30
|
+
out
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: README.md
|
|
3
|
+
---
|
|
4
|
+
# <%= packageName %>
|
|
5
|
+
|
|
6
|
+
This project was bootstrapped with [Create Wix App](https://github.com/wix-private/wix-cli/tree/master/packages/create-app).
|
|
7
|
+
|
|
8
|
+
## Setup 🔧
|
|
9
|
+
|
|
10
|
+
##### Install dependencies:
|
|
11
|
+
|
|
12
|
+
```console
|
|
13
|
+
<%= packageManager.installCmd %>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Available Scripts
|
|
17
|
+
|
|
18
|
+
In the project directory, you can run:
|
|
19
|
+
|
|
20
|
+
...
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: package.json
|
|
3
|
+
---
|
|
4
|
+
{
|
|
5
|
+
"name": "<%= packageName %>",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"private": true,
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "<%= author.name %>",
|
|
10
|
+
"email": "<%= author.email %>"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"react": "^17",
|
|
14
|
+
"react-dom": "^17",
|
|
15
|
+
"@wix/design-system": "^1.0.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/react": "^17",
|
|
19
|
+
"@types/react-dom": "^17",
|
|
20
|
+
"@wix/temp-cli": "^1.0.0",
|
|
21
|
+
"typescript": "^4.7.4"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "wix build",
|
|
25
|
+
"serve": "wix serve",
|
|
26
|
+
"dev": "wix dev"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Page,
|
|
4
|
+
Card,
|
|
5
|
+
Text,
|
|
6
|
+
Button,
|
|
7
|
+
WixStyleReactProvider,
|
|
8
|
+
} from '@wix/design-system';
|
|
9
|
+
import '@wix/design-system/styles.css';
|
|
10
|
+
|
|
11
|
+
export default function Index() {
|
|
12
|
+
return (
|
|
13
|
+
<WixStyleReactProvider>
|
|
14
|
+
<Page>
|
|
15
|
+
<Page.Header title="Page Title" />
|
|
16
|
+
<Page.Content>
|
|
17
|
+
<Card>
|
|
18
|
+
<Card.Content>
|
|
19
|
+
<Text>Some text</Text>
|
|
20
|
+
<br />
|
|
21
|
+
<Button>Hi</Button>
|
|
22
|
+
</Card.Content>
|
|
23
|
+
</Card>
|
|
24
|
+
</Page.Content>
|
|
25
|
+
</Page>
|
|
26
|
+
</WixStyleReactProvider>
|
|
27
|
+
);
|
|
28
|
+
}
|