Skip to content

Commit bc3d91c

Browse files
committed
(feat) add workflows for nx
1 parent a60fca0 commit bc3d91c

7 files changed

Lines changed: 88 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Create a new Nx workspace
2+
command: "npx create-nx-worskpace@latest {{name}}"
3+
tags:
4+
- nx
5+
description: "Create a new Nx workspace using the latest version of Nx."
6+
arguments:
7+
- name: name
8+
description: The name of the workspace.
9+
default_value: ~
10+
source_url: "https://nx.dev/cli/create-nx-workspace"
11+
author: mandarini
12+
author_url: "https://github.com/mandarini"
13+
shells: []

specs/nx/generate-application.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Generate a new application in your Nx workspace
2+
command: "npx nx g @nrwl/{{framework}}:application --name={{name}}"
3+
tags:
4+
- nx
5+
description: "This command generates a new application in your existing Nx workspace."
6+
arguments:
7+
- name: framework
8+
description: The framework you want to use when generating your application. Supported values -> angular, react, web, node, nest, next, detox, react-native.
9+
default_value: ~
10+
- name: name
11+
description: The name you want to use for your application
12+
default_value: ~
13+
source_url: "https://nx.dev/generators/using-schematics"
14+
author: mandarini
15+
author_url: "https://github.com/mandarini"
16+
shells: []

specs/nx/generate-library.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Generate a new library in your Nx workspace
2+
command: "npx nx g @nrwl/{{framework}}:library --name={{name}}"
3+
tags:
4+
- nx
5+
description: "This command generates a new library in your existing Nx workspace."
6+
arguments:
7+
- name: framework
8+
description: The presets you want to use when generating your library. Supported values -> angular, react, web, node, nest, next, detox, react-native, workspace, js.
9+
default_value: ~
10+
- name: name
11+
description: The name you want to use for your library
12+
default_value: ~
13+
source_url: "https://nx.dev/generators/using-schematics"
14+
author: mandarini
15+
author_url: "https://github.com/mandarini"
16+
shells: []

specs/nx/project-graph.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: View the project graph
2+
command: "npx nx graph"
3+
tags:
4+
- nx
5+
description: "Start the project graph for the current Nx workspace. This will graph the dependencies within your workspace."
6+
arguments: []
7+
source_url: "https://nx.dev/cli/dep-graph#graph"
8+
author: mandarini
9+
author_url: "https://github.com/mandarini"
10+
shells: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Remove project from Nx workspace
2+
command: "npx nx generate @nrwl/workspace:remove --projectName={{name}}"
3+
tags:
4+
- nx
5+
description: "Remove a project from your Nx workspace."
6+
arguments:
7+
- name: name
8+
description: The name of the project to remove.
9+
default_value: ~
10+
source_url: "https://nx.dev/packages/workspace/generators/remove#nrwlworkspaceremove"
11+
author: mandarini
12+
author_url: "https://github.com/mandarini"
13+
shells: []
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Build all projects at once in parallel
2+
command: "npx nx run-many --target=build --all --parallel=true"
3+
tags:
4+
- nx
5+
description: "Build all projects in your workspace, in parallel."
6+
arguments: []
7+
source_url: "https://nx.dev/cli/run-many#run-many"
8+
author: mandarini
9+
author_url: "https://github.com/mandarini"
10+
shells: []
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Test only the affected code in your Nx workspace
2+
command: "npx nx affected:test"
3+
tags:
4+
- nx
5+
description: "Test only those projects that are affected by the changes in the current Nx workspace."
6+
arguments: []
7+
source_url: "https://nx.dev/using-nx/affected#affected"
8+
author: mandarini
9+
author_url: "https://github.com/mandarini"
10+
shells: []

0 commit comments

Comments
 (0)