Name: npm-base
Owner: KADIRA
Description: A base package for creating NPM packages with ES2015
Created: 2015-12-11 10:54:01.0
Updated: 2018-05-09 17:58:56.0
Pushed: 2017-02-03 20:52:21.0
Homepage: null
Size: 9
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A base package for creating NPM packages with ES2015.
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 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.