@nx-extend/vercel 4.1.0 → 4.2.1
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/CHANGELOG.md +18 -0
- package/README.md +14 -0
- package/package.json +2 -2
- package/src/executors/build/build.impl.js +1 -2
- package/src/executors/build/build.impl.js.map +1 -1
- package/src/executors/build/build.impl.ts +16 -25
- package/src/executors/deploy/deploy.impl.js +4 -1
- package/src/executors/deploy/deploy.impl.js.map +1 -1
- package/src/executors/deploy/deploy.impl.ts +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [4.2.1](https://github.com/TriPSs/nx-extend/compare/vercel@4.2.0...vercel@4.2.1) (2023-07-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# [4.2.0](https://github.com/TriPSs/nx-extend/compare/vercel@4.1.0...vercel@4.2.0) (2023-07-22)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **vercel:** Fixed deployment url not being written to summary ([c7814c6](https://github.com/TriPSs/nx-extend/commit/c7814c687b856264c77b4fdd64be0ebe61ec038a))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **vercel:** When running in Github set url as output ([138fa4e](https://github.com/TriPSs/nx-extend/commit/138fa4e7fd442ca12e7801310e1d6cb07a082685))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
# [4.1.0](https://github.com/TriPSs/nx-extend/compare/vercel@4.0.0...vercel@4.1.0) (2023-06-22)
|
|
6
24
|
|
|
7
25
|
|
package/README.md
CHANGED
|
@@ -34,3 +34,17 @@ npm install -D @nx-extend/vercel
|
|
|
34
34
|
|---------------|-----------|---------|--------------------------|
|
|
35
35
|
| **`--debug`** | `boolean` | `false` | Run Vercel in debug mode |
|
|
36
36
|
|
|
37
|
+
## How to create a Vercel project through the CLI
|
|
38
|
+
|
|
39
|
+
To create a new Vercel project run the following commands:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Make sure you are in the right org
|
|
43
|
+
npx vercel teams list
|
|
44
|
+
# If needed, switch to correct team
|
|
45
|
+
npx vercel teams switch <team-id>
|
|
46
|
+
# Create the project
|
|
47
|
+
npx vercel project add <my-project>
|
|
48
|
+
# Go to the Vercel dashboard, <my-project> > settings > Project ID
|
|
49
|
+
```
|
|
50
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-extend/vercel",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"nx",
|
|
6
6
|
"vercel"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@actions/core": "^1.10.0",
|
|
22
22
|
"@nx/devkit": "16.3.2",
|
|
23
23
|
"shelljs": "^0.8.5",
|
|
24
|
-
"@nx-extend/core": "4.
|
|
24
|
+
"@nx-extend/core": "4.3.0",
|
|
25
25
|
"tslib": "2.5.3"
|
|
26
26
|
},
|
|
27
27
|
"types": "./src/index.d.ts"
|
|
@@ -27,8 +27,7 @@ function buildExecutor(options, context) {
|
|
|
27
27
|
if (!((_b = (_a = targets[buildTarget]) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.outputPath)) {
|
|
28
28
|
throw new Error(`"${buildTarget}" target has no "outputPath" configured!`);
|
|
29
29
|
}
|
|
30
|
-
if (options.buildConfig &&
|
|
31
|
-
!((_c = targets[buildTarget]) === null || _c === void 0 ? void 0 : _c.configurations[options.buildConfig])) {
|
|
30
|
+
if (options.buildConfig && !((_c = targets[buildTarget]) === null || _c === void 0 ? void 0 : _c.configurations[options.buildConfig])) {
|
|
32
31
|
throw new Error(`"${buildTarget}" target has no configuration "${options.buildConfig}"!`);
|
|
33
32
|
}
|
|
34
33
|
const vercelDirectory = '.vercel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/build/build.impl.ts"],"names":[],"mappings":";;;AAAA,uCAAwD;AACxD,0CAAqE;AACrE,2BAAuC;AACvC,+BAA2B;AAI3B,qFAA6E;AAC7E,+EAAwE;AACxE,2DAAqD;AACrD,2DAAsD;AACtD,uEAAiE;AAajE,SAAgB,aAAa,CAC3B,OAAqB,EACrB,OAAwB;;IAExB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IACnE,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,QAAQ,CAAA;IAC/C,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"build.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/build/build.impl.ts"],"names":[],"mappings":";;;AAAA,uCAAwD;AACxD,0CAAqE;AACrE,2BAAuC;AACvC,+BAA2B;AAI3B,qFAA6E;AAC7E,+EAAwE;AACxE,2DAAqD;AACrD,2DAAsD;AACtD,uEAAiE;AAajE,SAAgB,aAAa,CAC3B,OAAqB,EACrB,OAAwB;;IAExB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IACnE,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,QAAQ,CAAA;IAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAE5F,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CA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W,IAAI,OAAO,CAAC,iBACjC,EAAE;YACF,eAAe,EAAE,IAAA,yCAAkB,EAAC,SAAS,EAAE,eAAe,CAAC;YAC/D,aAAa,EAAE,IAAI;YACnB,gBAAgB,EAAE,KAAK;YACvB,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,MAAM;SAC3C;KACF,CAAC,CAAA;IAEF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,kBAAW,EAAC,IAAA,mBAAY,EAAC;QAC3C,kBAAkB;QAClB,YAAY,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,UAAU,iBAAiB;QACpE,OAAO,CAAC,iBAAiB,KAAK,YAAY,IAAI,QAAQ;QACtD,0BAAW,IAAI,WAAW,0BAAW,EAAE;QAEvC,OAAO,CAAC,KAAK,IAAI,SAAS;KAC3B,CAAC,CAAC,CAAA;IAEH,IAAI,OAAO,EAAE;QACX,kDAAkD;QAClD,IAAA,sBAAa,EACX,IAAA,WAAI,EAAC,eAAe,EAAE,eAAe,EAAE,cAAc,CAAC,EACtD,IAAA,qBAAY,EAAC,iBAAiB,CAAC,CAChC,CAAA;QACD,+BAA+B;QAC/B,IAAA,eAAQ,EACN,qBAAqB,EACrB,IAAA,WAAI,EAAC,eAAe,EAAE,eAAe,CAAC,EACtC,aAAa,CACd,CAAA;QACD,8BAA8B;QAC9B,IAAA,eAAQ,EACN,OAAO,CAAC,IAAI,EACZ,IAAA,WAAI,EAAC,eAAe,EAAE,eAAe,CAAC,EACtC,eAAe,CAChB,CAAA;KACF;IAED,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;AACrC,CAAC;AA7HD,sCA6HC;AAED,kBAAe,aAAa,CAAA"}
|
|
@@ -28,8 +28,7 @@ export function buildExecutor(
|
|
|
28
28
|
): Promise<{ success: boolean }> {
|
|
29
29
|
const { targets } = context.workspace.projects[context.projectName]
|
|
30
30
|
const framework = options.framework || 'nextjs'
|
|
31
|
-
const buildTarget =
|
|
32
|
-
options.buildTarget || (framework === 'nextjs' ? 'build-next' : 'build')
|
|
31
|
+
const buildTarget = options.buildTarget || (framework === 'nextjs' ? 'build-next' : 'build')
|
|
33
32
|
|
|
34
33
|
if (!options.orgId) {
|
|
35
34
|
throw new Error(`"orgId" option is required!`)
|
|
@@ -49,10 +48,7 @@ export function buildExecutor(
|
|
|
49
48
|
throw new Error(`"${buildTarget}" target has no "outputPath" configured!`)
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
if (
|
|
53
|
-
options.buildConfig &&
|
|
54
|
-
!targets[buildTarget]?.configurations[options.buildConfig]
|
|
55
|
-
) {
|
|
51
|
+
if (options.buildConfig && !targets[buildTarget]?.configurations[options.buildConfig]) {
|
|
56
52
|
throw new Error(
|
|
57
53
|
`"${buildTarget}" target has no configuration "${options.buildConfig}"!`
|
|
58
54
|
)
|
|
@@ -74,19 +70,16 @@ export function buildExecutor(
|
|
|
74
70
|
settings: {}
|
|
75
71
|
})
|
|
76
72
|
|
|
77
|
-
const vercelEnironment =
|
|
78
|
-
context.configurationName === 'production' ? 'production' : 'preview'
|
|
73
|
+
const vercelEnironment = context.configurationName === 'production' ? 'production' : 'preview'
|
|
79
74
|
|
|
80
75
|
// Pull latest
|
|
81
|
-
const { success: pullSuccess } = execCommand(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
vercelToken && `--token=${vercelToken}`,
|
|
76
|
+
const { success: pullSuccess } = execCommand(buildCommand([
|
|
77
|
+
'npx vercel pull --yes',
|
|
78
|
+
`--environment=${vercelEnironment}`,
|
|
79
|
+
vercelToken && `--token=${vercelToken}`,
|
|
86
80
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
81
|
+
options.debug && '--debug'
|
|
82
|
+
]))
|
|
90
83
|
|
|
91
84
|
if (!pullSuccess) {
|
|
92
85
|
throw new Error(`Was unable to pull!`)
|
|
@@ -124,16 +117,14 @@ export function buildExecutor(
|
|
|
124
117
|
}
|
|
125
118
|
})
|
|
126
119
|
|
|
127
|
-
const { success } = execCommand(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
vercelToken && `--token=${vercelToken}`,
|
|
120
|
+
const { success } = execCommand(buildCommand([
|
|
121
|
+
'npx vercel build',
|
|
122
|
+
`--output ${targets[buildTarget].options.outputPath}/.vercel/output`,
|
|
123
|
+
context.configurationName === 'production' && '--prod',
|
|
124
|
+
vercelToken && `--token=${vercelToken}`,
|
|
133
125
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
)
|
|
126
|
+
options.debug && '--debug'
|
|
127
|
+
]))
|
|
137
128
|
|
|
138
129
|
if (success) {
|
|
139
130
|
// Write the project.json to the .vercel directory
|
|
@@ -36,7 +36,10 @@ function deployExecutor(options, context) {
|
|
|
36
36
|
const url = parts.find((part) => part.trim().startsWith('https://') &&
|
|
37
37
|
part.trim().endsWith('.vercel.app'));
|
|
38
38
|
if (url) {
|
|
39
|
-
githubCore.summary
|
|
39
|
+
yield githubCore.summary
|
|
40
|
+
.addLink('Vercel URL', url.trim())
|
|
41
|
+
.write();
|
|
42
|
+
yield githubCore.setOutput('url', url);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
return { success };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":";;;;AAAA,4CAA2C;
|
|
1
|
+
{"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":";;;;AAAA,4CAA2C;AAE3C,0CAA2D;AAC3D,2BAA+B;AAC/B,+BAA2B;AAI3B,2DAAqD;AACrD,2DAAsD;AAOtD,SAAsB,cAAc,CAClC,OAAsB,EACtB,OAAwB;;;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,QA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,IAAI,CACpB,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;gBAClC,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CACtC,CAAA;YAED,IAAI,GAAG,EAAE;gBACP,MAAM,UAAU,CAAC,OAAO;qBACrB,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;qBACjC,KAAK,EAAE,CAAA;gBAEV,MAAM,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;aACvC;SACF;QAED,OAAO,EAAE,OAAO,EAAE,CAAA;;CACnB;AAtDD,wCAsDC;AAED,kBAAe,cAAc,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as githubCore from '@actions/core'
|
|
2
|
+
import { setOutput } from '@actions/core'
|
|
2
3
|
import { buildCommand, execCommand } from '@nx-extend/core'
|
|
3
4
|
import { existsSync } from 'fs'
|
|
4
5
|
import { join } from 'path'
|
|
@@ -22,18 +23,13 @@ export async function deployExecutor(
|
|
|
22
23
|
const vercelBuildTarget = Object.keys(targets).find(
|
|
23
24
|
(target) => targets[target].executor === '@nx-extend/vercel:build'
|
|
24
25
|
)
|
|
25
|
-
const buildTarget =
|
|
26
|
-
targets[vercelBuildTarget]?.options?.buildTarget || 'build-next'
|
|
26
|
+
const buildTarget = targets[vercelBuildTarget]?.options?.buildTarget || 'build-next'
|
|
27
27
|
|
|
28
28
|
if (!targets[buildTarget]?.options?.outputPath) {
|
|
29
29
|
throw new Error(`"${buildTarget}" target has no "outputPath" configured!`)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
if (
|
|
33
|
-
!existsSync(
|
|
34
|
-
join(targets[buildTarget].options.outputPath, '.vercel/project.json')
|
|
35
|
-
)
|
|
36
|
-
) {
|
|
32
|
+
if (!existsSync(join(targets[buildTarget].options.outputPath, '.vercel/project.json'))) {
|
|
37
33
|
throw new Error('No ".vercel/project.json" found in dist folder! ')
|
|
38
34
|
}
|
|
39
35
|
|
|
@@ -63,7 +59,11 @@ export async function deployExecutor(
|
|
|
63
59
|
)
|
|
64
60
|
|
|
65
61
|
if (url) {
|
|
66
|
-
githubCore.summary
|
|
62
|
+
await githubCore.summary
|
|
63
|
+
.addLink('Vercel URL', url.trim())
|
|
64
|
+
.write()
|
|
65
|
+
|
|
66
|
+
await githubCore.setOutput('url', url)
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|