Skip to content

feat(Feat/plop): Implement plopjs for generator #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint/eslint-plugin'],
Expand All @@ -23,4 +22,13 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
},
overrides: [
{
parser: '@babel/eslint-parser',
files: ['*.mjs'],
parserOptions: {
sourceType: 'module',
},
},
],
};
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.hbs
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ You can solve them with Sending JWT token in `Http Header` with the `Authorizati
#### Example of some protected GraphQL

- getMe (must be authenticated)
- All the other generated by generator (must be authenticated and must be admin)
- All methods generated by the generator (must be authenticated and must be admin)

## License

Expand Down Expand Up @@ -112,7 +112,7 @@ You can see detail [here](./process-where.md).
## Code generator

There is [CRUD Generator in NestJS](https://docs.nestjs.com/recipes/crud-generator).
In this repository, It has its own generator.
In this repository, It has its own generator with [plopjs](https://plopjs.com/documentation/).
You can use like below.

```bash
Expand Down
Loading