Hapify templates for models class validators and types
npm install @trxn/hapify-templates-modelsThis package contains the hapify templates to generate model classes and enums.
``sh`
npm install @trxn/hapify-templates-models --save-dev
In your package.json:
`javascript`
{
"name": "my-library",
"version": "0.0.1",
"hapify": { "extends": ["@trxn/hapify-templates-models"] }
}
If you would like to extend or modify these properties, create a .hapifyrc.js
file in your projects root directory and export your desired modifications.
`javascript`
module.exports = {
extends: ['hapify-templates-models'],
};
Or you can create a .hapifyrc.json file in your projects root directory.
`javascript``
{ "extends": [ '@trxn/hapify-templates-models' ] }