@applicaster/zapplicaster-cli 13.0.0-alpha.3592913150 → 13.0.0-alpha.3640541630
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 +5 -5
- package/src/commands/prepareWorkspace/appBootstrapper.js +8 -6
- package/src/commands/publishPlugin/generateManifest.js +3 -4
- package/src/commands/publishPlugin/updateCorePluginsIfNeeded.js +6 -9
- package/src/render/__tests__/render.test.js +6 -8
- package/src/settings/__tests__/settings.test.js +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapplicaster-cli",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.3640541630",
|
|
4
4
|
"description": "CLI Tool for the zapp app and Quick Brick project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@applicaster/zapp-react-dom-cli-template": "13.0.0-alpha.
|
|
36
|
-
"@applicaster/zapp-react-native-android-tv-cli-template": "13.0.0-alpha.
|
|
37
|
-
"@applicaster/zapp-react-native-cli-template": "13.0.0-alpha.
|
|
38
|
-
"@applicaster/zapp-react-native-tvos-cli-template": "13.0.0-alpha.
|
|
35
|
+
"@applicaster/zapp-react-dom-cli-template": "13.0.0-alpha.3640541630",
|
|
36
|
+
"@applicaster/zapp-react-native-android-tv-cli-template": "13.0.0-alpha.3640541630",
|
|
37
|
+
"@applicaster/zapp-react-native-cli-template": "13.0.0-alpha.3640541630",
|
|
38
|
+
"@applicaster/zapp-react-native-tvos-cli-template": "13.0.0-alpha.3640541630",
|
|
39
39
|
"axios": "^0.28.0",
|
|
40
40
|
"camelize": "^1.0.0",
|
|
41
41
|
"chalk": "^2.3.2",
|
|
@@ -83,12 +83,14 @@ async function appBootstrapper(configuration) {
|
|
|
83
83
|
logger.log("injecting dependencies...");
|
|
84
84
|
const { dependencies, scripts } = template;
|
|
85
85
|
|
|
86
|
-
const pluginConfigurations = require(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
const pluginConfigurations = require(
|
|
87
|
+
getFileDestinationPath({
|
|
88
|
+
destinationPath,
|
|
89
|
+
platform,
|
|
90
|
+
folder: "config",
|
|
91
|
+
fileName: "plugin_configurations.json",
|
|
92
|
+
})
|
|
93
|
+
);
|
|
92
94
|
|
|
93
95
|
const getExcludedNodeModules = R.compose(
|
|
94
96
|
R.map((plug) => new RegExp(plug)),
|
|
@@ -58,10 +58,9 @@ async function generateManifest(configuration) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
try {
|
|
61
|
-
const manifestConfig = require(
|
|
62
|
-
pluginPath,
|
|
63
|
-
|
|
64
|
-
));
|
|
61
|
+
const manifestConfig = require(
|
|
62
|
+
resolve(pluginPath, "manifests/manifest.config.js")
|
|
63
|
+
);
|
|
65
64
|
|
|
66
65
|
const packageJson = require(resolve(pluginPath, "package.json"));
|
|
67
66
|
|
|
@@ -9,10 +9,9 @@ const QUICK_BRICK_WORKSPACE_NAME = "quick-brick";
|
|
|
9
9
|
const CORE_PLUGINS_PATH = "packages/quick-brick-core-plugins";
|
|
10
10
|
|
|
11
11
|
async function updateCorePluginsIfNeeded(configuration) {
|
|
12
|
-
const { name: workspaceName } = require(
|
|
13
|
-
process.cwd(),
|
|
14
|
-
|
|
15
|
-
));
|
|
12
|
+
const { name: workspaceName } = require(
|
|
13
|
+
path.join(process.cwd(), PACKAGE_DOT_JSON)
|
|
14
|
+
);
|
|
16
15
|
|
|
17
16
|
if (workspaceName !== QUICK_BRICK_WORKSPACE_NAME) {
|
|
18
17
|
return;
|
|
@@ -21,11 +20,9 @@ async function updateCorePluginsIfNeeded(configuration) {
|
|
|
21
20
|
const { version, pluginPackageJson } = configuration;
|
|
22
21
|
const { name } = pluginPackageJson;
|
|
23
22
|
|
|
24
|
-
const corePluginsPackageJson = require(
|
|
25
|
-
process.cwd(),
|
|
26
|
-
|
|
27
|
-
PACKAGE_DOT_JSON
|
|
28
|
-
));
|
|
23
|
+
const corePluginsPackageJson = require(
|
|
24
|
+
path.join(process.cwd(), CORE_PLUGINS_PATH, PACKAGE_DOT_JSON)
|
|
25
|
+
);
|
|
29
26
|
|
|
30
27
|
const { dependencies } = corePluginsPackageJson;
|
|
31
28
|
const isPluginCore = R.contains(name, R.keys(dependencies));
|
|
@@ -69,10 +69,9 @@ describe("injectDependencies", () => {
|
|
|
69
69
|
"./fixtures/packageWithDependencies"
|
|
70
70
|
);
|
|
71
71
|
|
|
72
|
-
const templatePackageJson = require(
|
|
73
|
-
templatePackageJsonPath,
|
|
74
|
-
|
|
75
|
-
));
|
|
72
|
+
const templatePackageJson = require(
|
|
73
|
+
resolve(templatePackageJsonPath, "./package.json")
|
|
74
|
+
);
|
|
76
75
|
|
|
77
76
|
await injectDependencies(dependencies, templatePackageJsonPath);
|
|
78
77
|
|
|
@@ -126,10 +125,9 @@ describe("injectScripts", () => {
|
|
|
126
125
|
"./fixtures/packageWithDependencies"
|
|
127
126
|
);
|
|
128
127
|
|
|
129
|
-
const templatePackageJson = require(
|
|
130
|
-
templatePackageJsonPath,
|
|
131
|
-
|
|
132
|
-
));
|
|
128
|
+
const templatePackageJson = require(
|
|
129
|
+
resolve(templatePackageJsonPath, "./package.json")
|
|
130
|
+
);
|
|
133
131
|
|
|
134
132
|
await injectScripts(scripts, templatePackageJsonPath);
|
|
135
133
|
|
|
@@ -35,10 +35,9 @@ describe("isZappReactNativeRepo", () => {
|
|
|
35
35
|
|
|
36
36
|
describe("getCLIProperties", () => {
|
|
37
37
|
it("returns the cli package's name & version", () => {
|
|
38
|
-
const { name, version } = require(
|
|
39
|
-
__dirname,
|
|
40
|
-
|
|
41
|
-
));
|
|
38
|
+
const { name, version } = require(
|
|
39
|
+
path.resolve(__dirname, "../../../package.json")
|
|
40
|
+
);
|
|
42
41
|
|
|
43
42
|
expect(getCLIProperties()).toEqual({
|
|
44
43
|
name,
|