You can access your own packages from custom git repos in package.json.
For example, I have:
"dependencies": {
"express": : "~4.11.1",
"my-package":
"git+ssh://[email protected]:my-org/my-package.git#branch",
....
}
npm install/update will update these each time, I think. You can hit
specific branches, tags or refs with #ref part at the end, or just use
master.
>From then on, use it as normal packages:
var package = require('my-package');
Zlatko
On Tuesday, March 3, 2015 at 5:46:39 PM UTC+1, AaronNGray wrote:
>
> Hi,
>
> I have two possible requirements :-
>
> 1) A local NPM server that I can run on my Windows machine without
> needing to download and store all NPM packages, that will allow me to
> override specific packages with my own GitHub packages.
>
> or
>
> 2) The ability to refer to either GitHub or local packages or both in
> package.json files.
>
> Many thanks in advance,
>
> Aaron
>
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/90fc18a4-3895-4442-9f2c-d95588c48023%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.