@linktr.ee/create-link-app 0.2.0 → 0.2.2
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
CHANGED
|
@@ -46,7 +46,7 @@ Initialize a new Link App project
|
|
|
46
46
|
|
|
47
47
|
```
|
|
48
48
|
USAGE
|
|
49
|
-
$ create-link-app create
|
|
49
|
+
$ create-link-app create NAME [-t react|react-ts] [-p <value>]
|
|
50
50
|
|
|
51
51
|
ARGUMENTS
|
|
52
52
|
NAME Name of the Link App
|
|
@@ -112,7 +112,7 @@ Grant access to other developers to push updates for your Link App
|
|
|
112
112
|
|
|
113
113
|
```
|
|
114
114
|
USAGE
|
|
115
|
-
$ create-link-app grant-access
|
|
115
|
+
$ create-link-app grant-access LINK_APP_ID USERNAME
|
|
116
116
|
|
|
117
117
|
ARGUMENTS
|
|
118
118
|
LINK_APP_ID The Link App's ID you wish to grant access to
|
|
@@ -143,7 +143,7 @@ DESCRIPTION
|
|
|
143
143
|
Display help for create-link-app.
|
|
144
144
|
```
|
|
145
145
|
|
|
146
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.
|
|
146
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.23/src/commands/help.ts)_
|
|
147
147
|
|
|
148
148
|
## `create-link-app login`
|
|
149
149
|
|
|
@@ -12,11 +12,6 @@ const RequiredAssets = [
|
|
|
12
12
|
fileName: 'manifest.json',
|
|
13
13
|
contentType: 'application/json',
|
|
14
14
|
},
|
|
15
|
-
{
|
|
16
|
-
key: 'settings',
|
|
17
|
-
fileName: 'settings.json',
|
|
18
|
-
contentType: 'application/json',
|
|
19
|
-
},
|
|
20
15
|
{
|
|
21
16
|
key: 'package',
|
|
22
17
|
fileName: 'package.tgz',
|
|
@@ -29,6 +24,11 @@ const OptionalAssets = [
|
|
|
29
24
|
fileName: 'icon.svg',
|
|
30
25
|
contentType: 'image/svg+xml',
|
|
31
26
|
},
|
|
27
|
+
{
|
|
28
|
+
key: 'settings',
|
|
29
|
+
fileName: 'settings.json',
|
|
30
|
+
contentType: 'application/json',
|
|
31
|
+
},
|
|
32
32
|
{
|
|
33
33
|
key: 'url_match_rules',
|
|
34
34
|
fileName: 'url_match_rules.json',
|
|
@@ -31,9 +31,9 @@ async function packProject() {
|
|
|
31
31
|
});
|
|
32
32
|
archive.on('warning', (err) => {
|
|
33
33
|
if (err.code === 'ENOENT') {
|
|
34
|
-
// lock files and tsconfig may or may not exist
|
|
34
|
+
// package, lock files and tsconfig may or may not exist
|
|
35
35
|
const fileName = path_1.default.basename(err.path);
|
|
36
|
-
if (fileName === 'package-lock.json' || fileName === 'yarn.lock' || fileName === 'tsconfig.json') {
|
|
36
|
+
if (fileName === 'package.json' || fileName === 'package-lock.json' || fileName === 'yarn.lock' || fileName === 'tsconfig.json') {
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1,221 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.2",
|
|
3
|
+
"commands": {
|
|
4
|
+
"build": {
|
|
5
|
+
"id": "build",
|
|
6
|
+
"description": "Build Link App project to static assets used for production",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@linktr.ee/create-link-app",
|
|
9
|
+
"pluginAlias": "@linktr.ee/create-link-app",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"flags": {
|
|
13
|
+
"allow-any-origin": {
|
|
14
|
+
"name": "allow-any-origin",
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "Allow Link App iframe to be loadable from non-Linktree origins for debugging",
|
|
17
|
+
"hidden": true,
|
|
18
|
+
"allowNo": false
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"args": {}
|
|
22
|
+
},
|
|
23
|
+
"create": {
|
|
24
|
+
"id": "create",
|
|
25
|
+
"description": "Initialize a new Link App project",
|
|
26
|
+
"strict": true,
|
|
27
|
+
"pluginName": "@linktr.ee/create-link-app",
|
|
28
|
+
"pluginAlias": "@linktr.ee/create-link-app",
|
|
29
|
+
"pluginType": "core",
|
|
30
|
+
"aliases": [],
|
|
31
|
+
"examples": [
|
|
32
|
+
"$ create-link-app create my-link-app",
|
|
33
|
+
"$ create-link-app create my-link-app --template react",
|
|
34
|
+
"$ create-link-app create my-link-app --path my/custom/path"
|
|
35
|
+
],
|
|
36
|
+
"flags": {
|
|
37
|
+
"template": {
|
|
38
|
+
"name": "template",
|
|
39
|
+
"type": "option",
|
|
40
|
+
"char": "t",
|
|
41
|
+
"description": "Template to use for the project",
|
|
42
|
+
"multiple": false,
|
|
43
|
+
"options": [
|
|
44
|
+
"react",
|
|
45
|
+
"react-ts"
|
|
46
|
+
],
|
|
47
|
+
"default": "react-ts"
|
|
48
|
+
},
|
|
49
|
+
"path": {
|
|
50
|
+
"name": "path",
|
|
51
|
+
"type": "option",
|
|
52
|
+
"char": "p",
|
|
53
|
+
"description": "Path to create the project in",
|
|
54
|
+
"multiple": false
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"args": {
|
|
58
|
+
"name": {
|
|
59
|
+
"name": "name",
|
|
60
|
+
"description": "Name of the Link App",
|
|
61
|
+
"required": true
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"deploy": {
|
|
66
|
+
"id": "deploy",
|
|
67
|
+
"description": "Deploy your Link App and test it on Linktr.ee",
|
|
68
|
+
"strict": true,
|
|
69
|
+
"pluginName": "@linktr.ee/create-link-app",
|
|
70
|
+
"pluginAlias": "@linktr.ee/create-link-app",
|
|
71
|
+
"pluginType": "core",
|
|
72
|
+
"aliases": [],
|
|
73
|
+
"flags": {
|
|
74
|
+
"path": {
|
|
75
|
+
"name": "path",
|
|
76
|
+
"type": "option",
|
|
77
|
+
"char": "p",
|
|
78
|
+
"description": "Specify custom path to project directory",
|
|
79
|
+
"multiple": false
|
|
80
|
+
},
|
|
81
|
+
"update": {
|
|
82
|
+
"name": "update",
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"description": "Push update for existing Link App",
|
|
85
|
+
"allowNo": false
|
|
86
|
+
},
|
|
87
|
+
"endpoint": {
|
|
88
|
+
"name": "endpoint",
|
|
89
|
+
"type": "option",
|
|
90
|
+
"description": "Custom API endpoint to push assets to",
|
|
91
|
+
"hidden": true,
|
|
92
|
+
"multiple": false
|
|
93
|
+
},
|
|
94
|
+
"qa": {
|
|
95
|
+
"name": "qa",
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"description": "Use QA environment",
|
|
98
|
+
"hidden": true,
|
|
99
|
+
"allowNo": false
|
|
100
|
+
},
|
|
101
|
+
"force-update": {
|
|
102
|
+
"name": "force-update",
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"description": "Allow Link Type Admins to push updates to Link Apps in PUBLISHED state",
|
|
105
|
+
"hidden": true,
|
|
106
|
+
"allowNo": false
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"args": {}
|
|
110
|
+
},
|
|
111
|
+
"dev": {
|
|
112
|
+
"id": "dev",
|
|
113
|
+
"description": "Start development server for Link App project",
|
|
114
|
+
"strict": true,
|
|
115
|
+
"pluginName": "@linktr.ee/create-link-app",
|
|
116
|
+
"pluginAlias": "@linktr.ee/create-link-app",
|
|
117
|
+
"pluginType": "core",
|
|
118
|
+
"aliases": [],
|
|
119
|
+
"examples": [
|
|
120
|
+
"$ create-link-app dev",
|
|
121
|
+
"$ create-link-app dev --port 8000",
|
|
122
|
+
"$ create-link-app dev --https"
|
|
123
|
+
],
|
|
124
|
+
"flags": {
|
|
125
|
+
"port": {
|
|
126
|
+
"name": "port",
|
|
127
|
+
"type": "option",
|
|
128
|
+
"char": "p",
|
|
129
|
+
"description": "Development server listening port",
|
|
130
|
+
"multiple": false,
|
|
131
|
+
"default": 3000
|
|
132
|
+
},
|
|
133
|
+
"https": {
|
|
134
|
+
"name": "https",
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"description": "Use HTTPS for development server",
|
|
137
|
+
"allowNo": false
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"args": {}
|
|
141
|
+
},
|
|
142
|
+
"grant-access": {
|
|
143
|
+
"id": "grant-access",
|
|
144
|
+
"description": "Grant access to other developers to push updates for your Link App",
|
|
145
|
+
"strict": true,
|
|
146
|
+
"pluginName": "@linktr.ee/create-link-app",
|
|
147
|
+
"pluginAlias": "@linktr.ee/create-link-app",
|
|
148
|
+
"pluginType": "core",
|
|
149
|
+
"aliases": [],
|
|
150
|
+
"examples": [
|
|
151
|
+
"$ create-link-app grant-access my-link-app friend"
|
|
152
|
+
],
|
|
153
|
+
"flags": {
|
|
154
|
+
"endpoint": {
|
|
155
|
+
"name": "endpoint",
|
|
156
|
+
"type": "option",
|
|
157
|
+
"description": "Custom API endpoint to push assets to",
|
|
158
|
+
"hidden": true,
|
|
159
|
+
"multiple": false
|
|
160
|
+
},
|
|
161
|
+
"qa": {
|
|
162
|
+
"name": "qa",
|
|
163
|
+
"type": "boolean",
|
|
164
|
+
"description": "Use QA environment",
|
|
165
|
+
"hidden": true,
|
|
166
|
+
"allowNo": false
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"args": {
|
|
170
|
+
"link_app_id": {
|
|
171
|
+
"name": "link_app_id",
|
|
172
|
+
"description": "The Link App's ID you wish to grant access to",
|
|
173
|
+
"required": true
|
|
174
|
+
},
|
|
175
|
+
"username": {
|
|
176
|
+
"name": "username",
|
|
177
|
+
"description": "The Linktree username of the developer you wish to grant access to",
|
|
178
|
+
"required": true
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"login": {
|
|
183
|
+
"id": "login",
|
|
184
|
+
"description": "Login using your Linktree credentials to deploy Link Apps",
|
|
185
|
+
"strict": true,
|
|
186
|
+
"pluginName": "@linktr.ee/create-link-app",
|
|
187
|
+
"pluginAlias": "@linktr.ee/create-link-app",
|
|
188
|
+
"pluginType": "core",
|
|
189
|
+
"aliases": [],
|
|
190
|
+
"flags": {
|
|
191
|
+
"qa": {
|
|
192
|
+
"name": "qa",
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"description": "Use QA environment",
|
|
195
|
+
"hidden": true,
|
|
196
|
+
"allowNo": false
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"args": {}
|
|
200
|
+
},
|
|
201
|
+
"logout": {
|
|
202
|
+
"id": "logout",
|
|
203
|
+
"description": "Logout and clear browser session",
|
|
204
|
+
"strict": true,
|
|
205
|
+
"pluginName": "@linktr.ee/create-link-app",
|
|
206
|
+
"pluginAlias": "@linktr.ee/create-link-app",
|
|
207
|
+
"pluginType": "core",
|
|
208
|
+
"aliases": [],
|
|
209
|
+
"flags": {
|
|
210
|
+
"qa": {
|
|
211
|
+
"name": "qa",
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"description": "Use QA environment",
|
|
214
|
+
"hidden": true,
|
|
215
|
+
"allowNo": false
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"args": {}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|