Skip to content

Commit f36b2ab

Browse files
authored
Merge pull request aspnetzero#218 from aspnetzero/pr/3747-2
Update document for aspnetzero/aspnet-zero-core#3748
2 parents 9594555 + 0580d1d commit f36b2ab

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

docs/en/Getting-Started-Angular-Merged.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,28 @@ For example when you navigate **Swagger UI**, you will see following page:
8888

8989
Navigate to the root folder of ***.Web.Host** project, open a command line and run the following command to restore the packages:
9090

91-
yarn
91+
```bash
92+
yarn
93+
```
94+
95+
Then, run the following command to create dynamic bundles *(This is only required for the first time when you download the project or when you update dynamic bundles)*:
96+
97+
```bash
98+
npm run create-dynamic-bundles
99+
```
92100

93101
We use [yarn](https://yarnpkg.com/) because NPM has some problems; It is slow and can not consistently resolve dependencies. Yarn solves those problems and it is compatible to NPM as well.
94102

95103
### Running The Application
96104

97105
Open the command line and run the following command:
98-
99-
npm start
100-
106+
```bash
107+
npm start
108+
```
101109
Once the application compiled, you can browse <http://localhost:4200> in your browser. ASP.NET Zero also has also **HMR** (Hot Module Replacement) enabled. You can use the following command (instead of NPM start) to enable HMR on development time:
102-
103-
npm run hmr
104-
110+
```bash
111+
npm run hmr
112+
```
105113
In development time, since we use **angular-cli** and it is a separate process, we need to run *.Web.Host project and Angular UI separately. However, merged Angular solution can be published to a single website or two separate websites.
106114

107115
### Login

docs/en/Getting-Started-Angular.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ Navigate to the **angular** folder, open a command line and run the following co
9999
yarn
100100
```
101101

102+
Then, run the following command to create dynamic bundles *(This is only required for the first time when you download the project or when you update dynamic bundles)*:
103+
104+
```bash
105+
npm run create-dynamic-bundles
106+
```
107+
102108
We use [yarn](https://yarnpkg.com/) because NPM has some problems; It is slow and can not consistently resolve dependencies. Yarn solves those problems and it is compatible to NPM as well.
103109

104110
### Running The Application

docs/en/Infrastructure-Angular-Bundling-Minifying-Compiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Bundle definitions are store in **bundles.json** file. Here is a sample screensh
1515

1616
All input sections in **bundles.json **supports wildcard syntax. So, you can include all files under a folder (ex: *.js) or all files under a folder and its subfolders (ex: /**/*.css) or you can exclude some files (ex: !wwwroot/**/*.min.css) using wildcard syntax.
1717

18-
By default, if you use `npm start` command, AspNet Zero will automatically create dynamic bundle(s). ASP.NET Zero has command for bundling style and script files "**npm run create-dynamic-bundles**".
18+
ASP.NET Zero has command for bundling style and script files "**npm run create-dynamic-bundles**".
1919

2020
* **npm run create-dynamic-bundles**: This command is introduced for development time usage. It automatically updates bundle(s). If you modify **bundles.json** file, you need to re-run this command. It also writes output to console about the bundling progress. Script and style bundles are not minified when using this command.
2121

0 commit comments

Comments
 (0)