Name: npm-base
Owner: OK GROW!
Description: A base package for creating NPM packages with ES2015
Forked from: kadirahq/npm-base
Created: 2016-07-17 04:31:11.0
Updated: 2017-05-22 21:13:33.0
Pushed: 2017-03-03 19:17:58.0
Homepage: null
Size: 12
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Boilerplate for creating npm packages with ES2015. Written with Meteor developers in mind but great for anyone. Based on Arunoda's original npm-base boilerplate, this was initially forked to add the babel watch command and use the AirBnB style guide for linting.
Writing in ES2015 is an amazing experience. Setting up babel and the development environment in a kind of a pain.
If you want to write a npm module in ES2015 and publish to npm with backward compatibility, this is the easiest way.
package.json
as you want.lib/index.js
in your entry point.npm start
will initiate the babel watch command and automatically transpile your code on save.npm publish
.npm run lint
to lint your code and npm run lintfix
to fix common issues.__test__
directory anywhere inside lib
including sub-directories.npm test
to test your code. (It'll lint your code as well).npm run testonly
to run tests without linting.async await
.babel-runtime
package. So, this package won't add any global polyfills and pollute the global namespace.