Skip to content

Commit

Permalink
feat: rename project to ybiq (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 31, 2017
1 parent e35110d commit 81899b4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# ybiquitous's command-line tools
# ybiq

[![Build Status](https://travis-ci.org/ybiquitous/cli.svg?branch=master)](https://travis-ci.org/ybiquitous/cli)

Command-line utilities for `npm`.

## Install

```sh
npm install @ybiquitous/cli --save-dev
npm install ybiq --save-dev
```

## Usage

For details, please show help.

```sh
ybiq --help
```

### `init`

Setup npm project.

```sh
ybiquitous --help
ybiq init
```

## License
Expand Down
4 changes: 2 additions & 2 deletions bin/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import assert from 'assert'
import assertThrows from '../test/assert-throws'

const HELP = `
ybiquitous <command>
ybiq <command>
Commands:
init Initialize Node.js project
init Setup npm project
Options:
--help Show help [boolean]
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@ybiquitous/cli",
"name": "ybiq",
"version": "0.1.0",
"description": "ybiquitous's command-line tools",
"description": "Command-line utilities for npm",
"author": "ybiquitous <ybiquitous@gmail.com>",
"license": "MIT",
"repository": "ybiquitous/cli",
"bugs": "https://github.com/ybiquitous/cli/issues",
"homepage": "https://github.com/ybiquitous/cli#readme",
"repository": "ybiquitous/ybiq",
"bugs": "https://github.com/ybiquitous/ybiq/issues",
"homepage": "https://github.com/ybiquitous/ybiq#readme",
"keywords": [
"cli",
"command-line",
Expand All @@ -15,7 +15,7 @@
],
"main": "index.js",
"bin": {
"ybiquitous": "./bin/cli.js"
"ybiq": "./bin/cli.js"
},
"dependencies": {
"@commitlint/cli": "^3.1.3",
Expand Down
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const init = require('./init')
module.exports = function cli() {
// eslint-disable-next-line no-unused-expressions
yargs
.usage('ybiquitous <command>')
.usage('ybiq <command>')
.command({
command: 'init',
desc: 'Initialize Node.js project',
desc: 'Setup npm project',
handler: () => init(),
})
.demandCommand(1)
Expand Down

0 comments on commit 81899b4

Please sign in to comment.