https://github.com/fantasyui-com/ensure-module
Create a module from template.
https://github.com/fantasyui-com/ensure-module
Last synced: 5 months ago
JSON representation
Create a module from template.
- Host: GitHub
- URL: https://github.com/fantasyui-com/ensure-module
- Owner: fantasyui-com
- Created: 2019-07-12T22:01:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-25T20:16:12.000Z (over 1 year ago)
- Last Synced: 2025-09-18T07:42:09.094Z (9 months ago)
- Language: JavaScript
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ensure Module
Similar to yeoman, tiny build system for modules that use handlebars templates
## Example
```JavaScript
ensureModule(
src, // path to template module directory (ex. my-templates/fancy-promise-module/)
dest, // new module path, generally ./my_modules/my-needed-module to reference target location
data, // contains name, description, author, dependencies, etc...
);
```
## Notes
It only ensures existence, it will not override existing data.