Skip to content

Commit

Permalink
fix: two generators of the same type not being rendered (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni authored Aug 1, 2024
1 parent ca90549 commit 7f4fae1
Show file tree
Hide file tree
Showing 16 changed files with 309 additions and 249 deletions.
32 changes: 16 additions & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests.v2",
"request": "launch",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--config",
"${workspaceFolder}\\.mocharc.json",
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/test/**/*.test.ts",
"--runInBand",
"--watchAll=false",
"--testNamePattern",
"${jest.testNamePattern}",
"--runTestsByPath",
"${jest.testFile}"
],
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
}
]
}
9 changes: 8 additions & 1 deletion docs/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ The only difference between them is what they enable you to do. The difference i

For example, with the [`custom`](./generators/custom.md) generator, you provide a callback to render something, this is not possible if your configuration file is either `json` or `yaml` format.

Reason those two exist, is because adding a `.js` configuration file to a Java project, might confuse developers, and if you dont need to take advantage of the customization features that require callback, it will probably be better to use one of the other two.
Reason those two exist, is because adding a `.js` configuration file to a Java project, might confuse developers, and if you dont need to take advantage of the customization features that require callback, it will probably be better to use one of the other two.

If no explicit configuration file is sat, it will be loaded in the following order:
- codegen.mjs
- codegen.js
- codegen.json
- codegen.yaml
- codegen.yml
95 changes: 40 additions & 55 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"@oclif/plugin-autocomplete": "^3.0.16",
"@oclif/plugin-help": "^6.0.21",
"@oclif/plugin-version": "^2.0.17",
"cosmiconfig": "^9.0.0",
"graphology": "^0.25.4",
"inquirer": "^8.2.6",
"supports-esm": "1.0.0",
"yaml": "^2.4.5",
"zod": "^3.23.8",
"zod-validation-error": "^3.3.0"
Expand Down
Loading

0 comments on commit 7f4fae1

Please sign in to comment.