{"_id":"@byal-boilerplate/templates","_rev":"1-022bd34084f9623c3a1afbc01bf49429","name":"@byal-boilerplate/templates","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@byal-boilerplate/templates","version":"0.0.1","_id":"@byal-boilerplate/templates@0.0.1","maintainers":[{"name":"arthurramaral","email":"ruhtraamaral@hotmail.com"}],"dist":{"shasum":"35d26e5fd45d42dd6404bffe2a639ec44b9f619f","tarball":"https://registry.npmjs.org/@byal-boilerplate/templates/-/templates-0.0.1.tgz","fileCount":42,"integrity":"sha512-VyLB6nDbalao0VvlHVsxUjRE8pHFQEl27wwJLWD15TVdcBw0XU5h5PX6PUOBvBrOUM5w8ONIhPolHjj4FBjWPw==","signatures":[{"sig":"MEYCIQD5ER379yVHo1ec3QJHGt3ZLAgw5dkaJkz+dX1df8U3bAIhALVpU6Nv+5K43pa+BggIgnKndTZbk/SOuFxyxQiHPkYP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28955},"type":"commonjs","gitHead":"9854925962dbf1bf136e9a039f385b24218c9878","_npmUser":{"name":"arthurramaral","email":"ruhtraamaral@hotmail.com"},"generators":"./generators.json","_npmVersion":"10.8.3","description":"This plugin have the templates generators for all projects.","directories":{},"_nodeVersion":"22.2.0","dependencies":{"@nx/devkit":"18.3.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/templates_0.0.1_1729443682750_0.7264621394542596","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-10-20T17:01:22.656Z","modified":"2024-10-20T18:13:52.054Z","0.0.1":"2024-10-20T17:01:22.941Z"},"description":"This plugin have the templates generators for all projects.","maintainers":[{"email":"periclespires@protonmail.com","name":"bitpickle"},{"email":"ruhtraamaral@hotmail.com","name":"arthurramaral"}],"readme":"# Templates\n\nThis plugin have the templates generators for all projects.\n\n## Generators\n\nThis library provides some generators to create new application. To use this generator run `nx g @byal-boilerplate/templates:application` and follow the instructions.\n\n### Application\n\nThis generator creates a new nest api application.\n\n### Event Based Resource\n\nThis generator creates a new event based resource.\n\nRemember to add in the main `app.module.ts` the import of `MikroORMModule` and `EventEmitterModule` like:\n\n```TS\nimport { MikroOrmModule } from '@mikro-orm/nestjs';\nimport config from '../../mikro-orm.config';\nimport { EventEmitterModule } from '@byal-boilerplate/event-emitter';\nimport { env } from '../config/env';\n\n@Module({\n  imports: [\n    EventEmitterModule.forRoot({ queuePrefix: env.APPLICATION_SLUG_NAME }),\n    MikroOrmModule.forRoot({\n      ...config,\n      autoLoadEntities: true,\n    }),\n  ],\n  controllers: [],\n  providers: [],\n})\n```\n","readmeFilename":"README.md"}