@appsemble/cli 0.35.6 → 0.35.8
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 +3 -3
- package/commands/app/publish.d.ts +1 -0
- package/commands/app/publish.js +3 -0
- package/commands/app/update.d.ts +1 -0
- package/commands/app/update.js +3 -0
- package/lib/app.d.ts +8 -0
- package/lib/app.js +10 -0
- package/package.json +7 -7
- package/templates/apps/empty/app-definition.yaml +2 -2
- package/templates/blocks/mini-jsx/package.json +1 -1
- package/templates/blocks/preact/package.json +2 -2
- package/templates/blocks/vanilla/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble CLI
|
|
2
2
|
|
|
3
3
|
> Manage apps and blocks from the command line.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/cli)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.35.8)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -323,5 +323,5 @@ appsemble run-cronjobs --interval 30
|
|
|
323
323
|
|
|
324
324
|
## License
|
|
325
325
|
|
|
326
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.35.
|
|
326
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.35.8/LICENSE.md) ©
|
|
327
327
|
[Appsemble](https://appsemble.com)
|
package/commands/app/publish.js
CHANGED
|
@@ -73,6 +73,9 @@ export function builder(yargs) {
|
|
|
73
73
|
})
|
|
74
74
|
.option('google-analytics-id', {
|
|
75
75
|
describe: 'The ID for Google Analytics for the app.',
|
|
76
|
+
})
|
|
77
|
+
.option('meta-pixel-id', {
|
|
78
|
+
describe: 'The ID for Meta Pixel for the app.',
|
|
76
79
|
})
|
|
77
80
|
.option('sentry-dsn', {
|
|
78
81
|
describe: 'The custom Sentry DSN for the app.',
|
package/commands/app/update.d.ts
CHANGED
package/commands/app/update.js
CHANGED
|
@@ -73,6 +73,9 @@ export function builder(yargs) {
|
|
|
73
73
|
})
|
|
74
74
|
.option('google-analytics-id', {
|
|
75
75
|
describe: 'The ID for Google Analytics for the app.',
|
|
76
|
+
})
|
|
77
|
+
.option('meta-pixel-id', {
|
|
78
|
+
describe: 'The ID for Meta Pixel for the app.',
|
|
76
79
|
})
|
|
77
80
|
.option('sentry-dsn', {
|
|
78
81
|
describe: 'The custom Sentry DSN for the app.',
|
package/lib/app.d.ts
CHANGED
|
@@ -137,6 +137,10 @@ interface PublishAppParams {
|
|
|
137
137
|
* The ID to use for Google Analytics for the app.
|
|
138
138
|
*/
|
|
139
139
|
googleAnalyticsId?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The ID to use for Meta Pixel for the app.
|
|
142
|
+
*/
|
|
143
|
+
metaPixelId?: string;
|
|
140
144
|
/**
|
|
141
145
|
* The custom Sentry DSN for the app.
|
|
142
146
|
*/
|
|
@@ -245,6 +249,10 @@ interface UpdateAppParams {
|
|
|
245
249
|
* The ID to use for Google Analytics for the app.
|
|
246
250
|
*/
|
|
247
251
|
googleAnalyticsId?: string;
|
|
252
|
+
/**
|
|
253
|
+
* The ID to use for Meta Pixel for the app.
|
|
254
|
+
*/
|
|
255
|
+
metaPixelId?: string;
|
|
248
256
|
/**
|
|
249
257
|
* The custom Sentry DSN for the app.
|
|
250
258
|
*/
|
package/lib/app.js
CHANGED
|
@@ -804,6 +804,7 @@ export async function publishApp({ clientCredentials, context, dryRun, modifyCon
|
|
|
804
804
|
const sentryDsn = appsembleContext.sentryDsn ?? options.sentryDsn;
|
|
805
805
|
const sentryEnvironment = appsembleContext.sentryEnvironment ?? options.sentryEnvironment;
|
|
806
806
|
const googleAnalyticsId = appsembleContext.googleAnalyticsId ?? options.googleAnalyticsId;
|
|
807
|
+
const metaPixelId = appsembleContext.metaPixelId ?? options.metaPixelId;
|
|
807
808
|
const assets = appsembleContext.assets ?? options.assets;
|
|
808
809
|
const resources = appsembleContext.resources ?? options.resources;
|
|
809
810
|
const members = appsembleContext.members ?? options.members;
|
|
@@ -863,6 +864,10 @@ export async function publishApp({ clientCredentials, context, dryRun, modifyCon
|
|
|
863
864
|
logger.info('Using Google Analytics');
|
|
864
865
|
formData.append('googleAnalyticsID', googleAnalyticsId);
|
|
865
866
|
}
|
|
867
|
+
if (metaPixelId) {
|
|
868
|
+
logger.info('Using Meta Pixel');
|
|
869
|
+
formData.append('metaPixelID', metaPixelId);
|
|
870
|
+
}
|
|
866
871
|
let authScope = 'apps:write';
|
|
867
872
|
if (resources) {
|
|
868
873
|
authScope += ' resources:write';
|
|
@@ -1002,6 +1007,7 @@ export async function updateApp({ clientCredentials, context, force, path, ...op
|
|
|
1002
1007
|
const sentryDsn = appsembleContext.sentryDsn ?? options.sentryDsn;
|
|
1003
1008
|
const sentryEnvironment = appsembleContext.sentryEnvironment ?? options.sentryEnvironment;
|
|
1004
1009
|
const googleAnalyticsId = appsembleContext.googleAnalyticsId ?? options.googleAnalyticsId;
|
|
1010
|
+
const metaPixelId = appsembleContext.metaPixelId ?? options.metaPixelId;
|
|
1005
1011
|
const resources = appsembleContext.resources ?? options.resources;
|
|
1006
1012
|
const members = appsembleContext.members ?? options.members;
|
|
1007
1013
|
const assets = appsembleContext.assets ?? options.assets;
|
|
@@ -1061,6 +1067,10 @@ export async function updateApp({ clientCredentials, context, force, path, ...op
|
|
|
1061
1067
|
logger.info('Using Google Analytics');
|
|
1062
1068
|
formData.append('googleAnalyticsID', googleAnalyticsId);
|
|
1063
1069
|
}
|
|
1070
|
+
if (metaPixelId) {
|
|
1071
|
+
logger.info('Using Meta Pixel');
|
|
1072
|
+
formData.append('metaPixelID', metaPixelId);
|
|
1073
|
+
}
|
|
1064
1074
|
let authScope = 'apps:write';
|
|
1065
1075
|
if (resources) {
|
|
1066
1076
|
authScope += ' resources:write';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.8",
|
|
4
4
|
"description": "The CLI for developing with Appsemble apps and blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"test": "vitest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@appsemble/node-utils": "0.35.
|
|
48
|
-
"@appsemble/types": "0.35.
|
|
49
|
-
"@appsemble/lang-sdk": "0.35.
|
|
50
|
-
"@appsemble/utils": "0.35.
|
|
47
|
+
"@appsemble/node-utils": "0.35.8",
|
|
48
|
+
"@appsemble/types": "0.35.8",
|
|
49
|
+
"@appsemble/lang-sdk": "0.35.8",
|
|
50
|
+
"@appsemble/utils": "0.35.8",
|
|
51
51
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
52
52
|
"@koa/cors": "^5.0.0",
|
|
53
53
|
"@odata/parser": "^0.2.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"yargs": "^17.0.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@appsemble/types": "0.35.
|
|
94
|
-
"@appsemble/server": "0.35.
|
|
93
|
+
"@appsemble/types": "0.35.8",
|
|
94
|
+
"@appsemble/server": "0.35.8",
|
|
95
95
|
"bcrypt": "5.1.1",
|
|
96
96
|
"axios-test-instance": "7.0.0",
|
|
97
97
|
"@types/concat-stream": "2.0.3",
|
|
@@ -6,7 +6,7 @@ pages:
|
|
|
6
6
|
- name: Example Page A
|
|
7
7
|
blocks:
|
|
8
8
|
- type: action-button
|
|
9
|
-
version: 0.35.
|
|
9
|
+
version: 0.35.8
|
|
10
10
|
parameters:
|
|
11
11
|
icon: arrow-right
|
|
12
12
|
actions:
|
|
@@ -17,7 +17,7 @@ pages:
|
|
|
17
17
|
- name: Example Page B
|
|
18
18
|
blocks:
|
|
19
19
|
- type: action-button
|
|
20
|
-
version: 0.35.
|
|
20
|
+
version: 0.35.8
|
|
21
21
|
parameters:
|
|
22
22
|
icon: arrow-left
|
|
23
23
|
actions:
|