Skip to content

Commit 669e83e

Browse files
authored
Merge pull request #74 from mandarini/fix/nx-workflows
(fix) fix existing and add extra workflows for nx
2 parents ea8649e + 4cb2265 commit 669e83e

5 files changed

Lines changed: 32 additions & 11 deletions

File tree

specs/nx/create-nx-workspace-default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Create a new Nx workspace
2-
command: "npx create-nx-worskpace@latest {{name}}"
2+
command: "npx create-nx-workspace@latest {{name}}"
33
tags:
44
- nx
55
description: "Create a new Nx workspace using the latest version of Nx."
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 with a React application
2+
command: "npx create-nx-workspace@latest {{name}} --preset=react"
3+
tags:
4+
- nx
5+
description: "Create a new Nx workspace with a React application 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/nx-add-to-monorepo.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Add Nx to an Existing Project
2+
command: "npx add-nx-to-monorepo"
3+
tags:
4+
- nx
5+
description: "If you have an existing Lerna or Yarn monorepo, you can gain the benefits of Nx's computation cache and distributed task execution without modifying the file structure by running this command"
6+
source_url: "https://nx.dev/getting-started/nx-setup#add-nx-to-an-existing-project"
7+
author: mandarini
8+
author_url: "https://github.com/mandarini"
9+
shells: []

specs/nx/nx-migrate-cra.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Migrate Create-React-App project into a Nx Workspace
2+
command: "npx cra-to-nx"
3+
tags:
4+
- nx
5+
description: "If you have an existing Create-React-App project, you can gain the benefits of Nx's computation cache and distributed task execution by running this command"
6+
source_url: "https://nx.dev/migration/migration-cra"
7+
author: mandarini
8+
author_url: "https://github.com/mandarini"
9+
shells: []

specs/nx/run-many-projects-build.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)