I was about to publish a module to NPM, when I thought about rewriting it in ES6, to both future-proof it, and learn ES6. I've used Babel to transpile to ES5, and run tests. But I';m not sure how to proceed:
- Do I transpile, and publish the resulting /out folder to NPM?
- Do I include the result folder in my Github repo?
- ...or do I maintain 2 repos, one with the ES6 code + gulp script for Github, and one with the transpiled results + tests for NPM?
In short: what steps do I need to take to publish a module written in ES6 to NPM, while still allowing people to browse/fork the original code?
Aucun commentaire:
Enregistrer un commentaire