Skip to content

Commit

Permalink
Merge pull request #2 from rintoj/feat/resolver
Browse files Browse the repository at this point in the history
Feat/resolver
  • Loading branch information
rintoj authored Jun 13, 2024
2 parents f5bfdaa + e8bc147 commit f916c26
Show file tree
Hide file tree
Showing 20 changed files with 2,447 additions and 102 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,41 @@ ARGUMENTS
file The source file to inspect and generate

```

## Configure VSCode

Install [Save and Run](https://marketplace.visualstudio.com/items?itemName=wk-j.save-and-run)
extension and add the following to `<PROJECT_ROOT>/.vscode/settings.json`

```json
{
"saveAndRun": {
"commands": [
{
"match": ".model.ts",
"cmd": "gql-assist generate '${file}'",
"useShortcut": false,
"silent": true
},
{
"match": ".resolver.ts",
"cmd": "gql-assist generate '${file}'",
"useShortcut": false,
"silent": true
},
{
"match": ".enum.ts",
"cmd": "gql-assist generate '${file}'",
"useShortcut": false,
"silent": true
},
{
"match": ".input.ts",
"cmd": "gql-assist generate '${file}'",
"useShortcut": false,
"silent": true
}
]
}
}
```
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"gqlassist": ".bin/cli"
"gql-assist": ".bin/cli"
},
"private": false,
"scripts": {
Expand All @@ -31,15 +31,19 @@
},
"license": "ISC",
"dependencies": {
"chalk": "4.0.0",
"clifer": "^1.2.1",
"fs-extra": "^11.2.0",
"name-util": "^1.3.0",
"shelljs": "^0.8.5",
"tsds-tools": "^1.2.1"
},
"devDependencies": {
"@types/chalk": "^2.2.0",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.0",
"@types/shelljs": "^0.8.15",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^27.0.4",
Expand Down
Loading

0 comments on commit f916c26

Please sign in to comment.