@applicaster/zapplicaster-cli 15.0.0-rc.98 → 15.0.0-rc.99

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapplicaster-cli",
3
- "version": "15.0.0-rc.98",
3
+ "version": "15.0.0-rc.99",
4
4
  "description": "CLI Tool for the zapp app and Quick Brick project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/zapp-react-dom-cli-template": "15.0.0-rc.98",
32
- "@applicaster/zapp-react-native-android-tv-cli-template": "15.0.0-rc.98",
33
- "@applicaster/zapp-react-native-cli-template": "15.0.0-rc.98",
34
- "@applicaster/zapp-react-native-tvos-cli-template": "15.0.0-rc.98",
31
+ "@applicaster/zapp-react-dom-cli-template": "15.0.0-rc.99",
32
+ "@applicaster/zapp-react-native-android-tv-cli-template": "15.0.0-rc.99",
33
+ "@applicaster/zapp-react-native-cli-template": "15.0.0-rc.99",
34
+ "@applicaster/zapp-react-native-tvos-cli-template": "15.0.0-rc.99",
35
35
  "axios": "^0.28.0",
36
36
  "camelize": "^1.0.0",
37
37
  "chalk": "^2.3.2",
@@ -123,10 +123,6 @@ const commands = [
123
123
  "-m, --manifest-only",
124
124
  "Only generates the manifest file, doesn't publish the plugin",
125
125
  ],
126
- [
127
- "-t, --targets [targets]",
128
- "Comma-separated list of targets (e.g., 'tv,mobile,tablet') for iterative releases",
129
- ],
130
126
  ],
131
127
  action: publishPlugin,
132
128
  },
@@ -22,9 +22,6 @@ exports[`publish plugin configurator returns the configuration 1`] = `
22
22
  },
23
23
  "pluginPath": "plugins/my-plugin",
24
24
  "skipGit": false,
25
- "targets": [
26
- "tv",
27
- ],
28
25
  "verbose": false,
29
26
  "version": "1.5.0",
30
27
  "yarn": false,
@@ -10,7 +10,6 @@ const getOptions = (opts = {}) => ({
10
10
  version: "1.5.0",
11
11
  singlePlatform: "",
12
12
  skipGit: false,
13
- targets: "tv",
14
13
  ...opts,
15
14
  },
16
15
  });
@@ -103,7 +102,9 @@ describe("publish plugin configurator", () => {
103
102
 
104
103
  it("returns the configuration", async () => {
105
104
  const options = getOptions();
106
- expect(await configurator(options)).toMatchSnapshot();
105
+ const config = await configurator(options);
106
+
107
+ expect(config).toMatchSnapshot();
107
108
  expect(logger.log.mock.calls).toMatchSnapshot();
108
109
  });
109
110
 
@@ -74,7 +74,6 @@ async function configurator({ cliArgs, cliOptions }) {
74
74
  singlePlatform: platform = "",
75
75
  skipGit = false,
76
76
  manifestOnly = false,
77
- targets,
78
77
  } = cliOptions;
79
78
 
80
79
  if (!version || !semver.valid(version)) {
@@ -122,10 +121,6 @@ async function configurator({ cliArgs, cliOptions }) {
122
121
  );
123
122
  }
124
123
 
125
- const parsedTargets = targets
126
- ? targets.split(",").map((t) => t.trim())
127
- : undefined;
128
-
129
124
  const config = {
130
125
  pluginPath: resolvedPluginPath,
131
126
  pluginPackageJson,
@@ -138,7 +133,6 @@ async function configurator({ cliArgs, cliOptions }) {
138
133
  skipGit,
139
134
  zappOwnerAccountId,
140
135
  manifestOnly,
141
- targets: parsedTargets,
142
136
  };
143
137
 
144
138
  return config;
@@ -26,10 +26,9 @@ function renderManifest({
26
26
  pluginPath,
27
27
  version,
28
28
  dryRun,
29
- targets,
30
29
  }) {
31
30
  return async function (platform) {
32
- const manifest = manifestConfig({ platform, version, targets });
31
+ const manifest = manifestConfig({ platform, version });
33
32
 
34
33
  const enrichedManifest = enrichManifest({ manifest, packageJson });
35
34
 
@@ -62,10 +61,10 @@ const validPlatforms = [
62
61
  ];
63
62
 
64
63
  async function generateManifest(configuration) {
65
- const { pluginPath, platforms, version, dryRun, targets } = configuration;
64
+ const { pluginPath, platforms, version, dryRun } = configuration;
66
65
 
67
66
  if (!platforms) {
68
- logger.log("Manifest does not exsist, Skipping generation");
67
+ logger.log("Manifest does not exist, Skipping generation");
69
68
 
70
69
  return true;
71
70
  }
@@ -89,7 +88,6 @@ async function generateManifest(configuration) {
89
88
  packageJson,
90
89
  version,
91
90
  dryRun,
92
- targets,
93
91
  });
94
92
 
95
93
  return Promise.all(platforms.map(manifestRenderer));
@@ -37,7 +37,7 @@ async function zappifestPublish(configuration) {
37
37
  }
38
38
 
39
39
  if (!platforms || !zappOwnerAccountId) {
40
- logger.log("Manifest does not exsist, Skipping publishing");
40
+ logger.log("Manifest does not exist, Skipping publishing");
41
41
 
42
42
  return true;
43
43
  }