@nx-extend/vercel 1.1.1 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,4 +1,13 @@
1
1
 
2
+ # [1.2.0](https://github.com/TriPSs/nx-extend/compare/vercel@1.1.1...vercel@1.2.0) (2022-09-06)
3
+
4
+
5
+ ### Features
6
+
7
+ * **vercel:** When deploying with `production` configuration also use that environment on Vercel ([e601cc3](https://github.com/TriPSs/nx-extend/commit/e601cc3fe136cfd9d1e82804569f43aa203cf8d1))
8
+
9
+
10
+
2
11
  ## [1.1.1](https://github.com/TriPSs/nx-extend/compare/vercel@1.1.0...vercel@1.1.1) (2022-09-05)
3
12
 
4
13
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <img src="https://badgen.net/npm/v/@nx-extend/vercel" alt="@nx-extend/vercel NPM package">
5
5
  </a>
6
6
 
7
- **Nx plugin for deploy your app to [Cloud Storage](https://cloud.google.com/storage)**.
7
+ **Nx plugin for deploy your app to [Vercel](https://vercel.com)**.
8
8
 
9
9
  ## Setup
10
10
 
@@ -16,10 +16,20 @@ npm install -D @nx-extend/vercel
16
16
 
17
17
  ## Usage
18
18
 
19
- ### Upload
19
+ ### Build
20
20
 
21
21
  #### Available options:
22
22
 
23
- | name | type | default | description |
24
- | ------------ | -------- | ------- | ---------------------------------------------------- |
25
- | | | | |
23
+ | name | type | default | description |
24
+ |-------------------|-----------|---------|---------------------------|
25
+ | **`--projectId`** | `string` | `` | Project ID of Vercel |
26
+ | **`--orgId`** | `string` | `` | Organisation ID of Vercel |
27
+ | **`--debug`** | `boolean` | `false` | Run Vercel in debug mode |
28
+
29
+ ### Deploy
30
+
31
+ #### Available options:
32
+
33
+ | name | type | default | description |
34
+ |---------------|-----------|---------|--------------------------|
35
+ | **`--debug`** | `boolean` | `false` | Run Vercel in debug mode |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx-extend/vercel",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "keywords": [
5
5
  "nx",
6
6
  "vercel"
@@ -15,6 +15,7 @@ function deployExecutor(options, context) {
15
15
  }
16
16
  return Promise.resolve((0, core_1.execCommand)((0, core_1.buildCommand)([
17
17
  'npx vercel deploy ---prebuilt',
18
+ context.configurationName === 'production' && '--prod',
18
19
  options.debug && '--debug'
19
20
  ]), {
20
21
  cwd: targets['build-next'].options.outputPath
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":";;;AAAA,0CAA2D;AAC3D,2BAA+B;AAC/B,+BAA2B;AAQ3B,SAAgB,cAAc,CAC5B,OAAuB,EACvB,OAAwB;;IAExB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAEnE,IAAI,CAAC,CAAA,MAAA,MAAA,OAAO,CAAC,YAAY,CAAC,0CAAE,OAAO,0CAAE,UAAU,CAAA,EAAE;QAC/C,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,IAAI,CAAC,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC,EAAE;QACvF,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;KACpE;IAED,OAAO,OAAO,CAAC,OAAO,CAAC,IAAA,kBAAW,EAAC,IAAA,mBAAY,EAAC;QAC9C,+BAA+B;QAC/B,OAAO,CAAC,KAAK,IAAI,SAAS;KAC3B,CAAC,EAAE;QACF,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,UAAU;KAC9C,CAAC,CAAC,CAAA;AACL,CAAC;AApBD,wCAoBC;AAED,kBAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"deploy.impl.js","sourceRoot":"","sources":["../../../../../../packages/vercel/src/executors/deploy/deploy.impl.ts"],"names":[],"mappings":";;;AAAA,0CAA2D;AAC3D,2BAA+B;AAC/B,+BAA2B;AAQ3B,SAAgB,cAAc,CAC5B,OAAuB,EACvB,OAAwB;;IAExB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAEnE,IAAI,CAAC,CAAA,MAAA,MAAA,OAAO,CAAC,YAAY,CAAC,0CAAE,OAAO,0CAAE,UAAU,CAAA,EAAE;QAC/C,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,IAAI,CAAC,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC,EAAE;QACvF,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;KACpE;IAED,OAAO,OAAO,CAAC,OAAO,CAAC,IAAA,kBAAW,EAAC,IAAA,mBAAY,EAAC;QAC9C,+BAA+B;QAC/B,OAAO,CAAC,iBAAiB,KAAK,YAAY,IAAI,QAAQ;QAEtD,OAAO,CAAC,KAAK,IAAI,SAAS;KAC3B,CAAC,EAAE;QACF,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,UAAU;KAC9C,CAAC,CAAC,CAAA;AACL,CAAC;AAtBD,wCAsBC;AAED,kBAAe,cAAc,CAAA"}
@@ -24,6 +24,8 @@ export function deployExecutor(
24
24
 
25
25
  return Promise.resolve(execCommand(buildCommand([
26
26
  'npx vercel deploy ---prebuilt',
27
+ context.configurationName === 'production' && '--prod',
28
+
27
29
  options.debug && '--debug'
28
30
  ]), {
29
31
  cwd: targets['build-next'].options.outputPath
@@ -3,7 +3,7 @@
3
3
  "type": "object",
4
4
  "cli": "nx",
5
5
  "title": "Deploy executor",
6
- "description": "Deploy to Firebase Hosting",
6
+ "description": "Deploy to Vercel",
7
7
  "properties": {
8
8
  }
9
9
  }