1

I am developing an application with a few modules. Each module is individually deploy-able on the server. I am using Angular for my UI.

Because I have 4 modules, I obviously have 4 different Angular projects, setup & files.

Though there are certain differences like routing, controllers, views, the external frameworks, libraries used can be very similar and I do not want to replicate all of them.

Hence I wish to have a common project/folder/directory and use these in different modules. this way I can avoid redundancy (if it can be called that). Can someone please help me understand if my thought process is correct? If so how can I achieve this?

8
  • any reason you not using a package manager? npm or bower and then maintain a package.json for each application? Commented Jun 14, 2016 at 10:32
  • 1
    Can you point to some tutorials for a start and links. Which package manager is good? Commented Jun 14, 2016 at 10:34
  • 1
    something like this is a good start blog.npmjs.org/post/114584444410/… Commented Jun 14, 2016 at 10:41
  • 2
    npm is a package manager and gulp/grunt is a build tool. execute code on server before/after deploy. which one is best is a personal preference. Commented Jun 14, 2016 at 10:45
  • 1
    @Immortal it definitely sounded to me like you have some classes or interfaces you wrote you want to share between your 4 projects. Forgive me for misunderstanding you there ;) Commented Jun 14, 2016 at 10:51

1 Answer 1

2

Use a third party package manager like npm or bower. You can then add the libraries during build time with browserify or custom gulp/grunt code.

You can then bundle all you libraries into a single file and include it in you application.

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

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.