jadoo
Helps conjure up a data layer
Last updated 4 months ago by khawajaumarfarooq .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jadoo 
SYNC missed versions from official npm registry.

Jadoo

Jadoo is a library that helps conjure up a data layer.

Installation

Use the package manager npm to install jadoo.

npm install --save jadoo

Usage

Ensure assetsDir contains the following:

  • data-models should contain the data models
  • data-templates should contain the templates

Data models are described in Yaml syntax.

Templates are defined in EJS syntax.

Ensure resultDir does not contain any files or folders because they might be overwritten.

const path = require('path');
const { generateDataLayer } = require('jadoo');

const assetsDir = path.join(process.cwd(), 'assets');
const resultDir = path.join(process.cwd(), 'result');

try {
  generateDataLayer(assetsDir, resultDir);
} catch (error) {
  // handle error here
}

See HOWTO to see how generateDataLayer works, and how to extend it.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Licence

MIT

Current Tags

  • 0.0.19                                ...           latest (4 months ago)

19 Versions

  • 0.0.19                                ...           4 months ago
  • 0.0.18                                ...           4 months ago
  • 0.0.17                                ...           5 months ago
  • 0.0.16                                ...           5 months ago
  • 0.0.15                                ...           5 months ago
  • 0.0.14                                ...           5 months ago
  • 0.0.13                                ...           5 months ago
  • 0.0.12                                ...           5 months ago
  • 0.0.11                                ...           5 months ago
  • 0.0.10                                ...           5 months ago
  • 0.0.9                                ...           5 months ago
  • 0.0.8                                ...           6 months ago
  • 0.0.7                                ...           6 months ago
  • 0.0.6                                ...           6 months ago
  • 0.0.5                                ...           6 months ago
  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           6 months ago
  • 0.0.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 19
Dependencies (8)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |