Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install npm modules #12

Open
craigmulligan opened this issue Jun 13, 2017 · 4 comments
Open

install npm modules #12

craigmulligan opened this issue Jun 13, 2017 · 4 comments
Labels

Comments

@craigmulligan
Copy link

I see we currently host git submodules for all the nodes in this repo, is there a reason for this?

IMO a cleaner approach would be to npm install them on build?

@craigmulligan craigmulligan changed the title publish npm modules install npm modules Jun 13, 2017
@nopbyte
Copy link
Member

nopbyte commented Jun 13, 2017

The biggest advantage (for me) is that we can easily develop new features by checking out all the submodules and building locally. For instance, I have to change code from different persons or create branches with security, apply all changes locally, and then do the PRs.

I personally (this is a biased opinion) don't like to publish in npm, for non-technical reasons. One of them being that (last time I checked) they force you to make your actual email address public, unlike github that offers a separate account that is then forwarded to your private email. But this is not the main reason.... the part that I really like, is how the development process works now.

@craigmulligan
Copy link
Author

We could install from github? npm 5 now comes with a prepare script which runs on every install from github which would allow us to do any build scripts.

@cskiraly
Copy link
Member

The point that @nopbyte made is that submodules allow a simple local workflow without going through a centralized repo (be it github or something else). The possibility to have such a local workflow is a key git feature we don't really want to loose.

What would be the advantage of using npm?

@craigmulligan
Copy link
Author

Are we doing the development in the container? If so you could npm link you modules and then mount node_modules into the container which should save build times in development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants