Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-nx-workspace

Package Overview
Dependencies
Maintainers
1
Versions
1781
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-nx-workspace - npm Package Compare versions

Comparing version 7.6.4 to 7.7.0-beta.9

4

bin/create-nx-workspace.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc