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