@@ -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+
398429Now commit these changes to GitHub repository before continuing!
399430
400431The command to connect to Nx Cloud is:
0 commit comments