@trxn/hapify-generate-config
TypeScript icon, indicating that this package has built-in type declarations

2.2.5 • Public • Published

Hapify config generation

This package provides a new way of expriming hapify configuration. It adds a new way to extend the hapify configuration. To work with the current version of hapify it takes a configuration to generate a hapify.json files. In order to do that it provides a list of files to read your new and shiny configuration and take the first file found in this order:

[
  '.hapifyrc.js',
  '.hapifyrc.yaml',
  '.hapifyrc.yml',
  '.hapifyrc.json',
  '.hapifyrc',
  'package.json',
  'hapify.json',
];

It adds the extends array property that specifies other hapify templates packages, concat theirs configurations, and copy all the files needed to the current hapify folder. In order to generate all these steps you only need to start the following command:

npx hpf-generate-config

Extends configuration examples:

// .hapifyrc.js
module.exports = {
  extends: [
    '@trxn/hapify-templates-prisma',
    '@trxn/hapify-templates-nestjs-models',
    // ...
  ],

  // ... all your hapify configuration
};

Note: this package is intended to be deleted until hapify integrates the extends options. The copy and the generated configuration is not the best way to do and this package is just a patch to accelerate developement of the new stack

Readme

Keywords

none

Package Sidebar

Install

npm i @trxn/hapify-generate-config

Weekly Downloads

34

Version

2.2.5

License

UNLICENSED

Unpacked Size

35 kB

Total Files

12

Last publish

Collaborators

  • floross
  • edouarddemotes
  • dt-tractr