@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 CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.35.6/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.35.8/config/assets/logo.svg) Appsemble CLI
2
2
 
3
3
  > Manage apps and blocks from the command line.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/cli)](https://www.npmjs.com/package/@appsemble/cli)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.35.6/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.35.6)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.35.8/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.35.8)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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.6/LICENSE.md) ©
326
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.35.8/LICENSE.md) ©
327
327
  [Appsemble](https://appsemble.com)
@@ -21,6 +21,7 @@ interface PublishAppArguments extends BaseArguments {
21
21
  sentryDsn: string;
22
22
  sentryEnvironment: string;
23
23
  googleAnalyticsId: string;
24
+ metaPixelId: string;
24
25
  dbName: string;
25
26
  dbHost: string;
26
27
  dbPort: number;
@@ -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.',
@@ -19,6 +19,7 @@ interface UpdateAppArguments extends BaseArguments {
19
19
  sentryDsn: string;
20
20
  sentryEnvironment: string;
21
21
  googleAnalyticsId: string;
22
+ metaPixelId: string;
22
23
  dbName: string;
23
24
  dbHost: string;
24
25
  dbPort: number;
@@ -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.6",
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.6",
48
- "@appsemble/types": "0.35.6",
49
- "@appsemble/lang-sdk": "0.35.6",
50
- "@appsemble/utils": "0.35.6",
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.6",
94
- "@appsemble/server": "0.35.6",
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.6
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.6
20
+ version: 0.35.8
21
21
  parameters:
22
22
  icon: arrow-left
23
23
  actions:
@@ -5,7 +5,7 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/sdk": "0.35.6",
8
+ "@appsemble/sdk": "0.35.8",
9
9
  "mini-jsx": "^4.0.0"
10
10
  }
11
11
  }
@@ -5,8 +5,8 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/preact": "0.35.6",
9
- "@appsemble/sdk": "0.35.6",
8
+ "@appsemble/preact": "0.35.8",
9
+ "@appsemble/sdk": "0.35.8",
10
10
  "preact": "^10.0.0"
11
11
  }
12
12
  }
@@ -5,6 +5,6 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/sdk": "0.35.6"
8
+ "@appsemble/sdk": "0.35.8"
9
9
  }
10
10
  }