2

Instead of every time doing ng new project_name what is the alternative to getting the project structure. what if I do have node modules folder downloaded and creating the e2e and project structure thereafter. Or I just have another alternative to it like a fully new project structure downloaded once and use anywhere and every time.

4 Answers 4

2

I would say to spend some time and read the documentation :

https://angular.io/guide/architecture

It will help you to clarify all your questions.

Sign up to request clarification or add additional context in comments.

3 Comments

This doesn't answer the question. Yes, the title is about the structure, but the question is totally different. Focus on the last sentence and you will understand.
@trichetriche yes i asked about getting the one structure and use it anywhere becuase it will be hectic to do npm new projectname everytime since aroung 200 MB are being downloaded i donot know why people have given the answer 2 ups
Three actually, I downvoted it. A lot of people don't even take time to read the question now, but I don't blame them, a lot of questions are poorly asked. Have you taken a look at my answer to you ?
0

You will find your answer in their blog, under the schematics article :

Angular Schematics

That's basically a way to create default projects that you will be able to reuse in other projects.

2 Comments

schematics are used to change a component in tree structure but i just want to get new file structure every time i create a new project without doing ng new projectname as it consumes a lot of time downloading node modules and other file of > 200 MB range
If the download size is your only issue, simply copy and paste the folder into your projects. I wouldn't do that though, since generating a new project takes the latest versions of the dependencies.
0

You can use generator-ngx-rocket. It's a extensible Angular 5+ enterprise-grade project generator.
Hope I help!

Comments

0

This article explane a good practies about angular project structue from how you can divied you components , pages , modules

https://medium.com/@motcowley/angular-folder-structure-d1809be95542

right now the best way to create angular project is to use angular cli , before there is a lot of people during the early version of angular the create seed project you can look to son example

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.