0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-24 23:55:46 -05:00

feature: 💄 add publish introduce

This commit is contained in:
Meeeeow 2017-07-22 02:11:17 +08:00
parent 8ecf4ae0a9
commit 8ff89a7141
3 changed files with 34 additions and 6 deletions

3
package-lock.json generated
View file

@ -1,8 +1,7 @@
{
"name": "verdaccio",
"version": "2.2.6",
"version": "2.3.0-beta",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@verdaccio/file-locking": {
"version": "0.0.3",

View file

@ -23,7 +23,18 @@ export default class PackageList extends React.Component {
{
this.props.packages.length ?
this.renderList():
<li className={classes.noPkg}>No Package Available</li>
<li className={classes.noPkg}>
<h1 className={classes.noPkgTitle}>No Package Published Yet</h1>
<p>
To publish your first package just:
<br/><br/>
<strong>1. Login</strong><br/>
<code>npm adduser --registry {location.origin}</code><br/>
<strong>2. Publish</strong><br/>
<code>npm publish --registry {location.origin}</code><br/>
<strong>3. Done!</strong>
</p>
</li>
}
</div>
);

View file

@ -8,9 +8,27 @@
}
li.noPkg {
text-align: center;
line-height: 3;
display: flex;
flex-direction: column;
align-items: center;
padding: 30px 0;
font-size: 20px;
color: lightgrey;
color: #9f9f9f;
.noPkgTitle {
margin: 0;
padding: 0;
font-size: 24px;
}
p {
line-height: 1.5;
margin: 0 auto;
font-size: 14px;
}
code {
font-style: italic;
}
}
}