|
S.N. |
Activity |
Commands |
|
1. |
Check node version |
node -v |
|
2. |
Check npm version |
npm -v |
|
3. |
Check Angular version |
ng version |
|
3. |
Install angular |
npm install -g @angular/cli |
|
4. |
Install Jquery |
npm install jquery |
|
5. |
Install Typescript |
npm install typescript |
|
6. |
View Angular versions |
view angular versions |
|
7. |
View Jquery Versions |
view jquery versions |
|
8. |
Install tsconfig.json file |
Tsc --init |
|
9. |
Convert ts file to js |
tsc filename.ts |
|
10. |
Run js file using node |
node filename.js |
|
11. |
To implement change in tsconfig.json file |
Tsc |
|
12. |
To install webpack |
npm install -g webpack-cli or npm install webpack webpack-cli g |
|
13. |
To run webpack |
webpack |
- Difference between ng serve and ng build
- ng serve compiles and bundle code for development whereas ng build compiles and bundle code for production
- ng serve runs a development server on localhost:4200 whereas ng build generates production ready build that can be deployed to a web server or hosting service
- ng serve serves application from memory with no output stored in disk whereas ng build generates static file in ./dist folder by default.
Comments
Post a Comment