Skip to content

Commit

Permalink
Updating folder post
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorciney committed Nov 17, 2023
1 parent 188631a commit 611ca17
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
50 changes: 43 additions & 7 deletions _posts/2023-11-15-how-to-start-an-standalone-app-with-nx.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ In this article, we will see how to use Nx to create a standalone Angular applic
npx create-nx-workspace@latest my-new-app-name --preset=angular-standalone
```
You will then be prompted with the following questions:
```bash
✔ Which bundler would you like to use? · esbuild
✔ Default stylesheet format · scss
✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? · No
✔ Test runner to use for end to end (E2E) tests · cypress
✔ Enable distributed caching to make your CI faster · Yes
```
![2023-11-15_nx-create-app-questions.png](../../assets/posts/2023-11-15_nx-create-app-questions.png)

### Running the application
Now that our application has been generated, we can run it using the following command:
Expand All @@ -61,3 +55,45 @@ nx lint # will run linting
```

### Folder structure
```
my-new-app-name
├── README.md
├── e2e
│   ├── cypress.config.ts
│   ├── project.json
│   ├── src
│   │   ├── e2e
│   │   │   └── app.cy.ts
│   │   ├── fixtures
│   │   │   └── example.json
│   │   └── support
│   │   ├── app.po.ts
│   │   ├── commands.ts
│   │   └── e2e.ts
│   └── tsconfig.json
├── jest.config.ts
├── jest.preset.js
├── nx.json
├── package-lock.json
├── package.json
├── project.json
├── src
│   ├── app
│   │   ├── app.component.html
│   │   ├── app.component.scss
│   │   ├── app.component.spec.ts
│   │   ├── app.component.ts
│   │   ├── app.config.ts
│   │   ├── app.routes.ts
│   │   └── nx-welcome.component.ts
│   ├── assets
│   ├── favicon.ico
│   ├── index.html
│   ├── main.ts
│   ├── styles.scss
│   └── test-setup.ts
├── tsconfig.app.json
├── tsconfig.editor.json
├── tsconfig.json
└── tsconfig.spec.json
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 611ca17

Please sign in to comment.