Skip to content

Instantly share code, notes, and snippets.

@matt-allan
Created July 2, 2021 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-allan/726af4f9a5dc42bcb0b04fb672b458b3 to your computer and use it in GitHub Desktop.
Save matt-allan/726af4f9a5dc42bcb0b04fb672b458b3 to your computer and use it in GitHub Desktop.
{
// You can extend the same config file typescript uses to avoid drift
"extends": "./base.json",
// Accepts globs. Works just like TypeScript
"include": [
"src/wiretypes/**"
],
"exclude": [
"src/wiretypes/*.test.ts"
],
// This works too:
// "files": [],
// Accepts a subset of the TypeScript options.
"compilerOptions": {
"rootDir": "src/wiretypes",
"outDir": "lib",
"lib": [
]
},
// Will work just like TypeScript's eventually
"watchOptions": {
"watchDirectory": "useFsEvents"
},
// This is the only thing that really diverges from tsconfig.json
"plugins": [
// Just pass the name if there's no config
"@wiretype/openapi",
// Use a tuple syntax to specify config
[
"@wiretype/php",
{
// Plugins can accept their own options
"namespace": "App",
// Every plugin accepts outDir as an override
"outDir": "lib/php"
}
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment