When we execute ng -new AngularDemo it will create a complete project.
When we want to see what and all files are created while creating a new Angular project, at that time we can use the dry run option. It will show you the blueprint of the files to be created. But actually, it is not creating anything for you.
ng new AngularDemo1 --dry-run
Skip installing packages while creating a new Angular project:
ng new AngularDemo2 --skip-install
Look at the below image node_modules folder is missing as we skipped installing npm packages.
Skip creating tests:
ng new AngularDemo3 --skip-tests
Use inline styles when generating the new application
ng new AngularDemo4 --inline-style
Use inline templates when generating the new project
ng new AngularDemo4 --inline-template
ee
When we want to see what and all files are created while creating a new Angular project, at that time we can use the dry run option. It will show you the blueprint of the files to be created. But actually, it is not creating anything for you.
ng new AngularDemo1 --dry-run
Skip installing packages while creating a new Angular project:
ng new AngularDemo2 --skip-install
Look at the below image node_modules folder is missing as we skipped installing npm packages.
Skip creating tests:
ng new AngularDemo3 --skip-tests
Use inline styles when generating the new application
ng new AngularDemo4 --inline-style
Use inline templates when generating the new project
ng new AngularDemo4 --inline-template
ee
No comments:
Post a Comment