Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Kaustav | #40 | Added nvmrc file. Removed default test cases from the…
Browse files Browse the repository at this point in the history
… test files. | TG-40
  • Loading branch information
phoenixTW committed Jul 30, 2019
1 parent 820d1ca commit 8ba7de4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 42 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11.5.0
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

A CLI tool to create and manage initial react project

[![Version](https://img.shields.io/npm/v/@itchef/rg-cli.svg)](https://npmjs.org/package/@itchef/rg-cli)
[![License](https://img.shields.io/npm/l/@itchef/rg-cli.svg)](https://github.com/ITChef/rg-cli/blob/master/package.json)
![npm](https://img.shields.io/npm/v/@itchef/rg-cli?style=for-the-badge)![npm](https://img.shields.io/npm/dm/@itchef/rg-cli?logo=rg-cli&style=for-the-badge)
![npm bundle size](https://img.shields.io/bundlephobia/min/@itchef/rg-cli?style=for-the-badge)
![NPM](https://img.shields.io/npm/l/@itchef/rg-cli?style=for-the-badge)

<!-- toc -->
* [Usage](#usage)
Expand All @@ -26,24 +27,29 @@ USAGE
<!-- usagestop -->
# Commands
<!-- commands -->
* [`rg generate`](#rg-generate)
* [`rg help [COMMAND]`](#rg-help-command)
* [`rg new APPNAME`](#rg-new-appname)
- [@itchef/rg-cli](#itchefrg-cli)
- [Usage](#usage)
- [Commands](#commands)
- [`rg generate`](#rg-generate)
- [`rg help [COMMAND]`](#rg-help-command)
- [`rg new APPNAME`](#rg-new-appname)
- [License](#license)
- [The MIT License](#the-mit-license)

## `rg generate`

Describe the command here
Generate new files. Such as components, modules etc.

```
USAGE
$ rg generate
OPTIONS
-n, --name=name name to print
Arguments
task name of the task
name generator name
DESCRIPTION
...
Extra documentation goes here
Currently we are only supporting COMPONENT generation task.
```

_See code: [src/commands/generate.js](https://github.com/ITChef/rg-cli/blob/v0.1.0/src/commands/generate.js)_
Expand Down
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
"bugs": "https://github.com/ITChef/rg-cli/issues",
"dependencies": {
"@itchef/rg-lib": "git+https://[email protected]/itchef/rg-lib.git",
"@oclif/command": "^1.5.13",
"@oclif/config": "^1.13.0",
"@oclif/plugin-help": "^2.1.6",
"cli-ux": "^5.3.1",
"@oclif/command": "1.5.13",
"@oclif/config": "1.13.0",
"@oclif/plugin-help": "2.1.6",
"cli-ux": "5.3.1",
"temp": "0.9.0"
},
"devDependencies": {
"@oclif/dev-cli": "^1.22.0",
"@oclif/test": "^1.2.4",
"chai": "^4.2.0",
"eslint": "^6.1.0",
"eslint-config-oclif": "^3.1.0",
"globby": "^10.0.1",
"mocha": "^6.2.0",
"nyc": "^14.1.1"
"@oclif/dev-cli": "1.22.0",
"@oclif/test": "1.2.4",
"chai": "4.2.0",
"eslint": "6.1.0",
"eslint-config-oclif": "3.1.0",
"globby": "10.0.1",
"mocha": "6.2.0",
"nyc": "14.1.1"
},
"engines": {
"node": ">=8.0.0"
"node": ">=11.5.0"
},
"files": [
"/bin",
Expand All @@ -50,9 +50,8 @@
"repository": "ITChef/rg-cli",
"scripts": {
"postpack": "rm -f oclif.manifest.json",
"posttest": "eslint .",
"prepack": "oclif-dev manifest && oclif-dev readme",
"test": "echo \"Error: no test specified\" && exit 0",
"test": "nyc mocha --forbid-only \"test/**/*.test.js\"",
"version": "oclif-dev readme && git add README.md"
}
}
18 changes: 1 addition & 17 deletions test/commands/generate.test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
const {expect, test} = require('@oclif/test')

describe('generate', () => {
test
.stdout()
.command(['generate'])
.it('runs hello', ctx => {
expect(ctx.stdout).to.contain('hello world')
})

test
.stdout()
.command(['generate', '--name', 'jeff'])
.it('runs hello --name jeff', ctx => {
expect(ctx.stdout).to.contain('hello jeff')
})
})
describe("generate", () => {});
1 change: 1 addition & 0 deletions test/commands/new.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
describe("new", () => {});

0 comments on commit 8ba7de4

Please sign in to comment.