Skip to content

Commit

Permalink
feat: use external hooks repo to not duplicate code (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg committed May 14, 2020
1 parent ff540e3 commit 814e853
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 21 deletions.
10 changes: 8 additions & 2 deletions .tp-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
"server": {
"description": "The server you want to use in the code.",
"required": true
},
"asyncapiFileDir": {
"description": "Custom location of the AsyncAPI file that you provided as an input in generation. By default it is located in the root of the output directory"
}
},
"generator": ">=0.41.0 <2.0.0",
"generator": ">=0.46.0 <2.0.0",
"filters": [
"@asyncapi/generator-filters"
]
],
"hooks": {
"@asyncapi/generator-hooks": "createAsyncapiFile"
}
}
18 changes: 0 additions & 18 deletions hooks/create-asyncapi-file.js

This file was deleted.

64 changes: 64 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"access": "public"
},
"dependencies": {
"@asyncapi/generator-filters": "^1.0.0"
"@asyncapi/generator-filters": "^1.0.0",
"@asyncapi/generator-hooks": "^0.1.0"
},
"devDependencies": {
"@semantic-release/commit-analyzer": "^8.0.1",
Expand Down

0 comments on commit 814e853

Please sign in to comment.