geenee-spell

regenerates project code based upon settings and a template

Usage no npm install needed!

<script type="module">
  import geeneeSpell from 'https://cdn.skypack.dev/geenee-spell';
</script>

README

geenee-spell

regenerates code in a project based upon a template and a settings file.

codecov Version Downloads/week License

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)
})();