fix(build): change checkformat to check md files
This commit is contained in:
parent
b71e8275ac
commit
505ba43bb0
@ -4,3 +4,5 @@ tmp
|
|||||||
node_modules
|
node_modules
|
||||||
/package.json
|
/package.json
|
||||||
packages/schematics/src/collection/**/files/*.json
|
packages/schematics/src/collection/**/files/*.json
|
||||||
|
/.vscode
|
||||||
|
/.idea
|
||||||
|
|||||||
28
README.md
28
README.md
@ -32,19 +32,17 @@
|
|||||||
|
|
||||||
With Nx, you can:
|
With Nx, you can:
|
||||||
|
|
||||||
* Build full-stack applications using Angular and NestJS
|
- Build full-stack applications using Angular and NestJS
|
||||||
* Use effective development practices pioneered at Google
|
- Use effective development practices pioneered at Google
|
||||||
* Use innovative tools like Cypress and Jest
|
- Use innovative tools like Cypress and Jest
|
||||||
|
|
||||||
|
|
||||||
## Does it replace Angular CLI?
|
## Does it replace Angular CLI?
|
||||||
|
|
||||||
Nx **is not** a replacement for Angular CLI. **An Nx workspace is an Angular CLI workspace.**
|
Nx **is not** a replacement for Angular CLI. **An Nx workspace is an Angular CLI workspace.**
|
||||||
|
|
||||||
* You run same `ng build`, `ng serve` commands.
|
|
||||||
* You configure your projects in `angular.json`.
|
|
||||||
* Anything you can do in a standard Angular CLI project, you can also do in an Nx workspace.
|
|
||||||
|
|
||||||
|
- You run same `ng build`, `ng serve` commands.
|
||||||
|
- You configure your projects in `angular.json`.
|
||||||
|
- Anything you can do in a standard Angular CLI project, you can also do in an Nx workspace.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@ -56,11 +54,10 @@ With Nx, you can build a backend application next to your Angular application in
|
|||||||
|
|
||||||
Using Nx, you can implement monorepo-style development--an approach popularized by Google and used by many tech companies today (Facebook, Uber, Twitter, etc..).
|
Using Nx, you can implement monorepo-style development--an approach popularized by Google and used by many tech companies today (Facebook, Uber, Twitter, etc..).
|
||||||
|
|
||||||
*Doesn't Angular CLI support having multiple projects in the same workspace?*
|
_Doesn't Angular CLI support having multiple projects in the same workspace?_
|
||||||
|
|
||||||
Yes, starting with Angular CLI 6 you can add different types of projects to a single workspace (by default you can add applications and libraries). This is great, but is not sufficient to enable the monorepo-style development. Nx adds an extra layer of tooling to make this possible.
|
Yes, starting with Angular CLI 6 you can add different types of projects to a single workspace (by default you can add applications and libraries). This is great, but is not sufficient to enable the monorepo-style development. Nx adds an extra layer of tooling to make this possible.
|
||||||
|
|
||||||
|
|
||||||
In addition to using the monorepo, Google is also know for its use of automation. Nx adds powerful capabilities helping your team promote best practices and ensure consistency.
|
In addition to using the monorepo, Google is also know for its use of automation. Nx adds powerful capabilities helping your team promote best practices and ensure consistency.
|
||||||
|
|
||||||
### Use Innovative Tools
|
### Use Innovative Tools
|
||||||
@ -71,13 +68,10 @@ It's not the case that Apollo is always better than REST or Cypress is always be
|
|||||||
|
|
||||||
Adding these tools to the dev workflow is challenging in a regular CLI project. The choice you have is not between Protractor or Cypress, but between a hacked-up setup for Cypress and a great CLI setup for Protractor. Nx changes that!
|
Adding these tools to the dev workflow is challenging in a regular CLI project. The choice you have is not between Protractor or Cypress, but between a hacked-up setup for Cypress and a great CLI setup for Protractor. Nx changes that!
|
||||||
|
|
||||||
|
|
||||||
## A la carte
|
## A la carte
|
||||||
|
|
||||||
Most importantly, you can use these power-ups a la carte. Just want to build a single Angular application using Cypress? Nx is still an excellent choice for that.
|
Most importantly, you can use these power-ups a la carte. Just want to build a single Angular application using Cypress? Nx is still an excellent choice for that.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Getting Started
|
# Getting Started
|
||||||
|
|
||||||
Nx is just a set of power-ups for Angular CLI, **so an Nx workspace is an Angular CLI workspace**. This means that it will be handy to have the Angular CLI installed globally, which can be done via npm or yarn as well.
|
Nx is just a set of power-ups for Angular CLI, **so an Nx workspace is an Angular CLI workspace**. This means that it will be handy to have the Angular CLI installed globally, which can be done via npm or yarn as well.
|
||||||
@ -108,7 +102,6 @@ yarn global add @nrwl/schematics
|
|||||||
|
|
||||||
> If you want to work with the version still in development you can use `@nrwl/schematics@next` as the package to install.
|
> If you want to work with the version still in development you can use `@nrwl/schematics@next` as the package to install.
|
||||||
|
|
||||||
|
|
||||||
## Nx Workspace
|
## Nx Workspace
|
||||||
|
|
||||||
### Creating an Nx Workspace
|
### Creating an Nx Workspace
|
||||||
@ -127,7 +120,6 @@ 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.
|
This command still runs `ng new` under the hood, but it does it in a sandboxed environment, and, as a result, never fails.
|
||||||
|
|
||||||
|
|
||||||
### Adding to an Existing Angular CLI workspace
|
### Adding to an Existing Angular CLI workspace
|
||||||
|
|
||||||
If you already have a regular Angular CLI project, you can add Nx power-ups by running:
|
If you already have a regular Angular CLI project, you can add Nx power-ups by running:
|
||||||
@ -136,8 +128,6 @@ If you already have a regular Angular CLI project, you can add Nx power-ups by r
|
|||||||
ng add @nrwl/schematics
|
ng add @nrwl/schematics
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Creating First Application
|
## Creating First Application
|
||||||
|
|
||||||
Unlike the CLI, an Nx workspace starts blank. There are no applications to build, serve, and test. To create one run:
|
Unlike the CLI, an Nx workspace starts blank. There are no applications to build, serve, and test. To create one run:
|
||||||
@ -180,12 +170,10 @@ nx.json
|
|||||||
|
|
||||||
All the files that the CLI would have in a new project are still here, just in a different folder structure which makes it easier to create more apps and libs in the future.
|
All the files that the CLI would have in a new project are still here, just in a different folder structure which makes it easier to create more apps and libs in the future.
|
||||||
|
|
||||||
|
|
||||||
## Serving Application
|
## Serving Application
|
||||||
|
|
||||||
Run `ng serve myapp` to serve the newly generated application!
|
Run `ng serve myapp` to serve the newly generated application!
|
||||||
|
|
||||||
|
|
||||||
You are good to go!
|
You are good to go!
|
||||||
|
|
||||||
## Quick Start & Documentation
|
## Quick Start & Documentation
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "Checking prettier"
|
echo "Checking prettier"
|
||||||
prettier "**/*.{ts,js,json,css,scss}" "!**/{__name__,__directory__}/**" --list-different
|
prettier "**/*.{ts,js,json,css,scss,md}" "!**/{__name__,__directory__}/**" --list-different
|
||||||
PRETTIER_STATUS=$?
|
PRETTIER_STATUS=$?
|
||||||
|
|
||||||
echo "Checking CRLF"
|
echo "Checking CRLF"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user