create-nx-workspace
Advanced tools
Comparing version 7.6.4 to 7.7.0-beta.9
@@ -38,4 +38,4 @@ #!/usr/bin/env node | ||
var tmpDir = tmp_1.dirSync().name; | ||
var nxVersion = "7.6.2"; | ||
var cliVersion = "7.3.1"; | ||
var nxVersion = '7.7.0-beta.9'; | ||
var cliVersion = '7.3.1'; | ||
fs_1.writeFileSync(path.join(tmpDir, 'package.json'), JSON.stringify({ | ||
@@ -42,0 +42,0 @@ dependencies: (_a = {}, |
{ | ||
"name": "create-nx-workspace", | ||
"version": "7.6.4", | ||
"version": "7.7.0-beta.9", | ||
"description": "Angular CLI power-ups for modern Web development", | ||
@@ -25,9 +25,8 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/nrwl/nx#readme", | ||
"homepage": "https://nx.dev", | ||
"dependencies": { | ||
"tmp": "0.0.33", | ||
"yargs-parser": "10.0.0", | ||
"yargs": "^11.0.0", | ||
"@types/yargs": "^11.0.0" | ||
"yargs": "^11.0.0" | ||
} | ||
} |
@@ -61,34 +61,22 @@ <p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/nx-logo.png"></p> | ||
## Creating an Nx Workspace Using Npx | ||
## Creating an Nx Workspace | ||
Using [Npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) you can create a new Nx workspace without installing any packages. | ||
**Using `npx`** | ||
Simply run: | ||
```bash | ||
npx -p @nrwl/schematics create-nx-workspace myworkspace | ||
npx create-nx-workspace myworkspace | ||
``` | ||
## Creating an Nx Workspace Without Npx | ||
**Using `npm init`** | ||
Install `@nrwl/schematics`. | ||
```bash | ||
npm install -g @nrwl/schematics | ||
npm init nx-workspace myworkspace | ||
``` | ||
Then run: | ||
**Using `yarn create`** | ||
```bash | ||
ng new myworkspace --collection=@nrwl/schematics | ||
yarn create nx-workspace myworkspace | ||
``` | ||
The `ng new` command uses globally-installed packages. Anything installed globally can be in a messy state. If you have any problems running the command above, you can also run: | ||
```bash | ||
create-nx-workspace myworkspacename | ||
``` | ||
This command still runs `ng new` under the hood, but it does it in a sandboxed environment, and, as a result, never fails. | ||
## Adding Nx to an Existing Angular CLI workspace | ||
@@ -95,0 +83,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
11946
1
196
- Removed@types/yargs@^11.0.0
- Removed@types/yargs@11.1.8(transitive)