Skip to content

Commit

Permalink
improve docs; add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
benjidotsh committed Sep 19, 2023
1 parent be7d054 commit bac0ec3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-wasps-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@icapps/nestkit-common': patch
---

Initial release
24 changes: 22 additions & 2 deletions packages/common/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# `@icapps/nestkit-common`

This package contains common utilities, enums, constants,...
Common utilities, enums, constants,...

## API
## Installation

```bash
npm install @icapps/nestkit-common
```

## Usage

### Utilities

Expand All @@ -11,6 +17,9 @@ This package contains common utilities, enums, constants,...
```typescript
// app.config.ts

...
import { validateConfig } from '@icapps/nestkit-common';

class AppConfig {
@Expose({ name: 'NODE_ENV' })
@IsEnum(Environment)
Expand All @@ -37,3 +46,14 @@ enum Environment {
Test = 'test',
}
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[ISC](LICENSE)
16 changes: 12 additions & 4 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "@icapps/nestkit-common",
"version": "0.0.0",
"description": "Common utilities, enums, constants,...",
"keywords": [
"nestjs"
],
"homepage": "https://github.com/icapps/NestKit#readme",
"bugs": "https://github.com/icapps/NestKit/issues",
"license": "ISC",
"author": "icapps <info@icapps.com> (https://icapps.com)",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"license": "ISC",
"publishConfig": {
"access": "public"
},
"repository": "github:icapps/NestKit",
"scripts": {
"build": "tsup ./src/index.ts --format cjs,esm --dts",
"dev": "npm run build -- --watch",
Expand All @@ -23,5 +28,8 @@
"tsconfig": "*",
"tsup": "^7.2.0",
"typescript": "^4.5.2"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit bac0ec3

Please sign in to comment.