Skip to content

Commit a86dfa9

Browse files
committed
fix: readme intructions
1 parent 9e0e8b5 commit a86dfa9

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

packages/nx/README.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- [Table of Contents](#table-of-contents)
2121
- [Getting started](#getting-started)
2222
- [Create a new Nx workspace](#create-a-new-nx-workspace)
23+
- [Init workspace](#init-workspace)
2324
- [Install NativeScript plugin](#install-nativescript-plugin)
2425
- [Create an app](#create-an-app)
2526
- [`--framework [angular|vanilla]`](#--framework-angularvanilla)
@@ -41,16 +42,6 @@
4142

4243
## Getting started
4344

44-
Prior to executing any commands, ensure that the node package manager you're going to use is set for NativeScript (more info at ['Package Managers'](https://docs.nativescript.org/development-workflow.html#package-managers) section of docs) and Nx (more info at ['Nx DevKit - Module'](https://nx.dev/nx-devkit/index#package-manager-type-aliases-1) section of docs).
45-
46-
For an example, setting Yarn as your package manager, do the following:
47-
48-
```sh
49-
ns package-manager set yarn
50-
```
51-
52-
Now create a Nx workspace using the yarn command expression in the following section.
53-
5445
### Create a new Nx workspace
5546

5647
```sh
@@ -61,20 +52,38 @@ npx create-nx-workspace@latest
6152
yarn create-nx-workspace@latest
6253
```
6354

64-
If you run into any issue with latest Nx workspace version you may want to try the last known stable version with the following:
55+
At the prompts, you can use:
6556

6657
```sh
67-
58+
✔ Where would you like to create your workspace? · {your-workspace-name}
59+
60+
# Choose "None"
61+
62+
? Which stack do you want to use?
63+
None: Configures a minimal structure without specific frameworks or technologies.
6864

69-
Need to install the following packages:
70-
71-
Ok to proceed? (y) y
65+
# Choose "Integrated"
66+
67+
? Package-based or integrated?
68+
Integrated: Nx creates a workspace structure most suitable for building apps.
69+
```
7270

73-
> NX Let's create a new workspace [https://nx.dev/getting-started/intro]
71+
### Init workspace
7472

75-
✔ Choose your style · integrated
76-
✔ What to create in the new workspace · apps
77-
✔ Enable distributed caching to make your CI faster · No
73+
Install the @nx/js plugin.
74+
75+
```sh
76+
# Using npm
77+
npm install --save-dev @nx/js
78+
79+
# Using yarn
80+
yarn add -D @nx/js
81+
```
82+
83+
Now initialize -- This will ensure a `tsconfig.base.json` is created to begin building your workspace.
84+
85+
```sh
86+
npx nx g @nx/js:init
7887
```
7988

8089
### Install NativeScript plugin

0 commit comments

Comments
 (0)