@applicaster/zapplicaster-cli 14.0.0-alpha.1661204539 → 14.0.0-alpha.2247415563
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 +7 -8
- package/src/commands/prepareWorkspace/__tests__/appBootstrapper.test.js +3 -3
- package/src/commands/publishPlugin/__tests__/__snapshots__/npmPublish.test.js.snap +2 -0
- package/src/commands/publishPlugin/__tests__/npmPublish.test.js +2 -1
- package/src/templates/newWorkspaceTemplate/index.js +1 -6
- package/src/zapp/__tests__/zapp.test.js +3 -3
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapplicaster-cli",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.2247415563",
|
|
4
4
|
"description": "CLI Tool for the zapp app and Quick Brick project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": "
|
|
11
|
-
"yarn": "^
|
|
10
|
+
"node": ">= 18.0.0",
|
|
11
|
+
"yarn": "^4.0.0"
|
|
12
12
|
},
|
|
13
13
|
"bin": "./index.js",
|
|
14
14
|
"repository": {
|
|
@@ -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": "14.0.0-alpha.
|
|
32
|
-
"@applicaster/zapp-react-native-android-tv-cli-template": "14.0.0-alpha.
|
|
33
|
-
"@applicaster/zapp-react-native-cli-template": "14.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-react-native-tvos-cli-template": "14.0.0-alpha.
|
|
31
|
+
"@applicaster/zapp-react-dom-cli-template": "14.0.0-alpha.2247415563",
|
|
32
|
+
"@applicaster/zapp-react-native-android-tv-cli-template": "14.0.0-alpha.2247415563",
|
|
33
|
+
"@applicaster/zapp-react-native-cli-template": "14.0.0-alpha.2247415563",
|
|
34
|
+
"@applicaster/zapp-react-native-tvos-cli-template": "14.0.0-alpha.2247415563",
|
|
35
35
|
"axios": "^0.28.0",
|
|
36
36
|
"camelize": "^1.0.0",
|
|
37
37
|
"chalk": "^2.3.2",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"react-native-fs": "*",
|
|
63
63
|
"react-native-gesture-handler": "*",
|
|
64
64
|
"react-native-linear-gradient": "*",
|
|
65
|
-
"react-native-safe-area-context": "*",
|
|
66
65
|
"react-native-svg": "*",
|
|
67
66
|
"react-native-web": "*",
|
|
68
67
|
"react-native-webview": "*",
|
|
@@ -85,11 +85,11 @@ const {
|
|
|
85
85
|
getPluginDependencies,
|
|
86
86
|
} = require("../../../plugins");
|
|
87
87
|
|
|
88
|
-
const mockedRenderTemplateFileCurried = jest.fn(Promise.resolve);
|
|
88
|
+
const mockedRenderTemplateFileCurried = jest.fn(() => Promise.resolve());
|
|
89
89
|
|
|
90
90
|
jest.mock("../../../render", () => ({
|
|
91
|
-
injectDependencies: jest.fn(Promise.resolve),
|
|
92
|
-
injectScripts: jest.fn(Promise.resolve),
|
|
91
|
+
injectDependencies: jest.fn(() => Promise.resolve()),
|
|
92
|
+
injectScripts: jest.fn(() => Promise.resolve()),
|
|
93
93
|
renderTemplateFile: jest.fn(() => mockedRenderTemplateFileCurried),
|
|
94
94
|
}));
|
|
95
95
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`npm publish step with default options throws if the npm command fails 1`] = `[Error: Failed to publish package]`;
|
|
4
|
+
|
|
5
|
+
exports[`npm publish step with dry run flag throws if used with the yarn flag as well 1`] = `true`;
|
|
@@ -154,7 +154,8 @@ describe("npm publish step", () => {
|
|
|
154
154
|
// didn't work
|
|
155
155
|
it.skip("throws if used with the yarn flag as well", async () => {
|
|
156
156
|
const configuration = getConfig({ dryRun: true, yarn: true });
|
|
157
|
-
|
|
157
|
+
const res = await npmPublish(configuration);
|
|
158
|
+
expect(res).toMatchSnapshot();
|
|
158
159
|
});
|
|
159
160
|
});
|
|
160
161
|
|
|
@@ -66,18 +66,13 @@ const template = {
|
|
|
66
66
|
{ name: "jest-extended", version: "^0.6.0", type: "devDependencies" },
|
|
67
67
|
{ name: "jest-html-reporter", version: "^2.3.0", type: "devDependencies" },
|
|
68
68
|
{ name: "lerna", version: "^2.11.0", type: "devDependencies" },
|
|
69
|
-
{
|
|
70
|
-
name: "metro-react-native-babel-preset",
|
|
71
|
-
version: "^0.59",
|
|
72
|
-
type: "devDependencies",
|
|
73
|
-
},
|
|
74
69
|
{ name: "ramda", version: "0.26.1", type: "devDependencies" },
|
|
75
70
|
{
|
|
76
71
|
name: "react-addons-test-utils",
|
|
77
72
|
version: "^15.6.2",
|
|
78
73
|
type: "devDependencies",
|
|
79
74
|
},
|
|
80
|
-
{ name: "react-dom", version: "
|
|
75
|
+
{ name: "react-dom", version: "18.3.1", type: "devDependencies" },
|
|
81
76
|
{ name: "react-test-renderer", version: "16.4.1", type: "devDependencies" },
|
|
82
77
|
{
|
|
83
78
|
name: "regenerator-runtime",
|
|
@@ -25,13 +25,13 @@ describe("when ZAPP_TOKEN is not defined", () => {
|
|
|
25
25
|
process.env = ENV;
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
it("throws an error",
|
|
29
|
-
const { getAppVersionParams } = require("../
|
|
28
|
+
it("throws an error", () => {
|
|
29
|
+
const { getAppVersionParams } = require("../");
|
|
30
30
|
|
|
31
31
|
const ERROR_MESSAGE =
|
|
32
32
|
"no $ZAPP_TOKEN defined - please add it to your environment variables";
|
|
33
33
|
|
|
34
|
-
expect(getAppVersionParams(VERSION_ID)).rejects.
|
|
34
|
+
expect(getAppVersionParams(VERSION_ID)).rejects.toThrow(ERROR_MESSAGE);
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
|