mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
Added Setup instructions
This commit is contained in:
parent
34b631fa12
commit
5a98db9589
2 changed files with 14 additions and 5 deletions
|
@ -5,10 +5,18 @@
|
|||
<title>{{ name }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ name }}</h1>
|
||||
<h1><a href='/'>{{ name }}</a></h1>
|
||||
|
||||
<input type='search' />
|
||||
<button>Search</button>
|
||||
<form>
|
||||
<input type='search' name='q' />
|
||||
<button>Search</button>
|
||||
</form>
|
||||
|
||||
<h2>Setup:</h2>
|
||||
<code>
|
||||
npm set registry {{ baseUrl }}<br>
|
||||
npm adduser --registry {{ baseUrl }}
|
||||
</code>
|
||||
|
||||
{{#each locals}}
|
||||
<article>
|
||||
|
|
|
@ -139,8 +139,9 @@ module.exports = function(config_hash) {
|
|||
}
|
||||
else {
|
||||
res.send(template({
|
||||
name: "Sinopia",
|
||||
locals: locals
|
||||
name: "Sinopia",
|
||||
locals: locals,
|
||||
baseUrl: req.protocol + '://' + req.get('host') + '/'
|
||||
}));
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue