Skip to content

Commit 1efdb3f

Browse files
authored
Update README.md
1 parent 538f45a commit 1efdb3f

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

300/300/README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,43 @@ $ cd / # Go to the root of the repository
389389
$ npm init -y # If no package.json exists
390390
# Go through the initialization steps
391391
$ npm install -g nx@latest # If not already installed
392-
$ npm install --save-dev nx @nrwl/workspace
392+
$ npm install --save-dev nx
393+
$ npm install --save-dev @nrwl/workspace
393394
$ npm install --save-dev @nx/webpack
394395
$ npm install --save-dev webpack-cli
395396
$ npm install --save-dev @nx/react @nx/eslint @nx/playwright @nx/jest
396397
```
397398

399+
Above command will create a ```package.json``` file at the root of the repository:
400+
401+
```
402+
{
403+
"name": "repository-name",
404+
"version": "1.0.0",
405+
"description": "repository-name",
406+
"main": "index.js",
407+
"directories": {
408+
"doc": "docs"
409+
},
410+
"scripts": {
411+
"test": "echo \"Error: no test specified\" && exit 1"
412+
},
413+
"author": "Willem van Heemstra",
414+
"license": "ISC",
415+
"devDependencies": {
416+
"@nrwl/workspace": "^19.8.4",
417+
"@nx/eslint": "^20.4.5",
418+
"@nx/jest": "^20.4.5",
419+
"@nx/playwright": "^20.4.5",
420+
"@nx/react": "^20.4.5",
421+
"@nx/webpack": "^20.4.5",
422+
"nx": "^20.4.5",
423+
"webpack-cli": "^6.0.1"
424+
}
425+
}
426+
```
427+
repository-name/package.json
428+
398429
Now commit these changes to GitHub repository before continuing!
399430

400431
The command to connect to Nx Cloud is:

0 commit comments

Comments
 (0)