@medable/mdctl-manifest

1.0.72 • Public • Published

mdctl-manifest

Developer Tools Manifest Module for Medable

This module will let you add boilerplate objects into the Medable's manifest.

Usage

You should provide a path where current manifest.json or manfiest.yaml lives.

const Manifest = require('@medable/mdctl-manifest'),
      tempDir = path.join(process.cwd(), `output-${new Date().getTime()}`),
      options = {
        object: 'script',
        type: 'route',
        name: 'c_my_custom_route',
        format: 'json', 
        dir: tempDir
      }

await Manifest.add(options)

The code above will add a 2 new files and update manifest file.

The files will be located on the following paths

/env/scripts/c_my_custom_route.json
/env/scripts/js/c_my_custom_route.js

Readme

Keywords

none

Package Sidebar

Install

npm i @medable/mdctl-manifest

Weekly Downloads

103

Version

1.0.72

License

MIT

Unpacked Size

12.9 kB

Total Files

5

Last publish

Collaborators

  • harishva
  • myerkes-md
  • cscherer-md
  • __jacobi
  • jamessas
  • trsmith
  • grobledo
  • oferrero.medable