Skip to content

Commit 73f7dd3

Browse files
committed
fix: shorter usage name
use the tool by typing gga instead of generate-graphql-app
1 parent 676c4c0 commit 73f7dd3

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ Cli tool for bootstrapping production grade GraphQL server, using:
2020

2121
Open shell in the desired folder for bootstrapping the server, and typed:
2222

23-
```generate-graphql-app init <project-name>```
23+
```gga init <project-name>```
2424

2525
The command will prompt available server seeds options. Choose the boilerplate project
2626
you want, and start coding!
27-
28-

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generate-graphql-app",
3-
"version": "1.1.5",
3+
"version": "1.2.1",
44
"description": "Cli tool for bootstrapping production grade GraphQL server",
55
"keywords": [
66
"graphql",
@@ -9,9 +9,9 @@
99
"typescript",
1010
"apollo"
1111
],
12-
"main": "dist/generate-graphql-app.umd.js",
13-
"module": "dist/generate-graphql-app.es5.js",
14-
"typings": "dist/types/generate-graphql-app.d.ts",
12+
"main": "dist/gga.umd.js",
13+
"module": "dist/gga.es5.js",
14+
"typings": "dist/types/gga.d.ts",
1515
"files": [
1616
"dist"
1717
],
@@ -25,7 +25,7 @@
2525
"node": ">=6.0.0"
2626
},
2727
"preferGlobal": true,
28-
"bin": "./dist/lib/generate-graphql-app.js",
28+
"bin": "./dist/lib/gga.js",
2929
"scripts": {
3030
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
3131
"prebuild": "rimraf dist",

rollup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import shebang from 'rollup-plugin-preserve-shebang'
88

99
const pkg = require('./package.json')
1010

11-
const libraryName = 'generate-graphql-app'
11+
const libraryName = 'gga'
1212

1313
export default {
1414
input: `src/${libraryName}.ts`,

src/generate-graphql-app.ts renamed to src/gga.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as program from 'commander'
44
import allCommands from './commands/all-commands'
55

6-
program.version('0.0.1').description('Cli tool for bootstrapping production grade GraphQL server')
6+
program.version('1.2.0').description('Cli tool for bootstrapping production grade GraphQL server')
77

88
for (let command of allCommands) {
99
program

0 commit comments

Comments
 (0)