-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add headerComment option, consolidate tests & use ts-node
Adds a header comment to generated output, configurable with the new headerComment option. Also consolidates many of the tests by using multiple generator blocks within a single schema file. The tests also now run using ts-node, and test.ts no longer needs to be built to run tests. Because of this, the tsconfig has also been split into two files. The base tsconfig.json targets all ts files, so that type checking in the editor and running with ts-node works properly. The tsconfig.build.json is used when building the generator, and targets only generator.ts.
- Loading branch information
Showing
42 changed files
with
727 additions
and
347 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ jobs: | |
cache: "npm" | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run build | ||
- run: npm test |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.