nxus / templater

The template manager for Nxus applications
1 stars 0 forks source link

Code cleanup, promises and packaging #24

Closed davidkellerman closed 7 years ago

davidkellerman commented 7 years ago

I think these changes are all totally routine. However, I added a bunch of excludes to .npmignore, so you might take a look at what ends up in the npm package (package.json, README.md, lib/*.js, and lib/modules). I think everything else was superfluous.

My plan, if I don't hear any objections in the next couple days, is to merge these changes, and also bump the version to 4.0.0.

More details:

In package.json, changed compile script to first do a rm -r lib, to clear out any obsoleted files; added --ignore src/test to babel, so test files aren't compiled.

In templater-ejs/index.js, imported bluebird (needed for Promise.map()).