@cloudcommerce/cli 0.9.0 → 0.10.0
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/.turbo/turbo-build.log +1 -1
- package/lib/build.js +2 -0
- package/lib/cli.js +4 -2
- package/package.json +2 -2
- package/src/build.ts +2 -0
- package/src/cli.ts +5 -2
package/.turbo/turbo-build.log
CHANGED
package/lib/build.js
CHANGED
package/lib/cli.js
CHANGED
|
@@ -4,11 +4,13 @@ import {
|
|
|
4
4
|
$, argv, fs, echo, chalk,
|
|
5
5
|
} from 'zx';
|
|
6
6
|
import login from './login.js';
|
|
7
|
-
import build from './build.js';
|
|
7
|
+
import build, { prepareCodebases } from './build.js';
|
|
8
8
|
import { siginGcloudAndSetIAM, createServiceAccountKey } from './setup-gcloud.js';
|
|
9
9
|
import createGhSecrets from './setup-gh.js';
|
|
10
10
|
|
|
11
11
|
const { FIREBASE_PROJECT_ID, GOOGLE_APPLICATION_CREDENTIALS, GITHUB_TOKEN } = process.env;
|
|
12
|
+
// https://github.com/google/zx/issues/124
|
|
13
|
+
process.env.FORCE_COLOR = '3';
|
|
12
14
|
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
|
13
15
|
const pwd = process.cwd();
|
|
14
16
|
let projectId = FIREBASE_PROJECT_ID;
|
|
@@ -144,7 +146,7 @@ Finish by saving the following secrets to your GitHub repository:
|
|
|
144
146
|
`;
|
|
145
147
|
}
|
|
146
148
|
if (argv._.includes('dev') || !argv._.length) {
|
|
147
|
-
await
|
|
149
|
+
await prepareCodebases();
|
|
148
150
|
return $`npm --prefix "${path.join(pwd, 'functions/ssr')}" run dev`;
|
|
149
151
|
}
|
|
150
152
|
return $`echo 'Hello from @cloudcommerce/cli'`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce CLI tools",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cloudcommerce": "./bin/run.mjs"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"libsodium-wrappers": "^0.7.11",
|
|
27
27
|
"md5": "^2.3.0",
|
|
28
28
|
"zx": "^7.2.1",
|
|
29
|
-
"@cloudcommerce/api": "0.
|
|
29
|
+
"@cloudcommerce/api": "0.10.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "bash ../../scripts/build-lib.sh"
|
package/src/build.ts
CHANGED
package/src/cli.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
chalk,
|
|
9
9
|
} from 'zx';
|
|
10
10
|
import login from './login';
|
|
11
|
-
import build from './build';
|
|
11
|
+
import build, { prepareCodebases } from './build';
|
|
12
12
|
import { siginGcloudAndSetIAM, createServiceAccountKey } from './setup-gcloud';
|
|
13
13
|
import createGhSecrets from './setup-gh';
|
|
14
14
|
|
|
@@ -18,6 +18,9 @@ const {
|
|
|
18
18
|
GITHUB_TOKEN,
|
|
19
19
|
} = process.env;
|
|
20
20
|
|
|
21
|
+
// https://github.com/google/zx/issues/124
|
|
22
|
+
process.env.FORCE_COLOR = '3';
|
|
23
|
+
|
|
21
24
|
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
|
22
25
|
const pwd = process.cwd();
|
|
23
26
|
|
|
@@ -176,7 +179,7 @@ Finish by saving the following secrets to your GitHub repository:
|
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
if (argv._.includes('dev') || !argv._.length) {
|
|
179
|
-
await
|
|
182
|
+
await prepareCodebases();
|
|
180
183
|
return $`npm --prefix "${path.join(pwd, 'functions/ssr')}" run dev`;
|
|
181
184
|
}
|
|
182
185
|
return $`echo 'Hello from @cloudcommerce/cli'`;
|