geenee-spell
v0.0.20
Published
regenerates project code based upon settings and a template
Downloads
7
Readme
regenerates code in a project based upon a template and a settings file.
A geenee code base contains a meta
directory, which should have a template
and a settings file called ns.yml
. This package exposes a single async function that can regenerate the whole code base from scratch when your template and/or settings have changed.
You probably won't need to use this package directly. It gets included by geenee and copykat.
Usage
Install
npm i geenee-spell
Then you can generate code by specifying a package. The simplest usage is like this:
const generateCode = require('geenee-spell')
(async () => {
await generateCode('~/packages/myPackage', {}, null)
})();