Skip to content

Commit

Permalink
Merge branch 'master' into fix/refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sooraj1002 authored Jan 4, 2024
2 parents cd621ea + 19df114 commit e836a4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,26 @@ Custom schematics can streamline the process of generating code and adding featu
2. **Install the Custom Schematics Package**: In your project's root directory, install the custom schematics package by running the following command:

```sh
npm install @soorajk1/schematics
npm install @samagra-x/schematics
```

3. Modify the contents of your `nest-cli.json` file to the following

```json
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@soorajk1/schematics",
"collection": "@samagra-x/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
}
}
```

Now, You can use commands like nest generate like normal, along with arguments like `nest g service-prisma prisma` to generate custom service
Now, You can use commands like nest generate like normal, along with arguments like `nest g <CUSTOME_STENCIL_SERVICE_NAME>` to generate custom service.
Currently supported services are:
- Prisma
- Monitoring Using Prometheus and Grafana
- Temporal
- Logging
- File Upload
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samagra-x/schematics",
"version": "0.0.2",
"version": "0.0.3",
"description": "schematics for stencil applcations",
"main": "dist/index.js",
"files": [
Expand Down Expand Up @@ -94,4 +94,4 @@
"lint-staged": {
"**/*.{ts,json}": []
}
}
}

0 comments on commit e836a4c

Please sign in to comment.