Created
July 2, 2021 20:43
-
-
Save matt-allan/726af4f9a5dc42bcb0b04fb672b458b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// 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