Shell for developing npm packages, wired with Webpack and Babel to allow ES6 and import/export modules
- Clone this repo
- Create a github repo with the name for your package and add the newly created repo as the origin remote
- Update the details in
package.json
file (name, description, github url and versoin).
npm run test
to test
npm run build
to build the package
npm login
(first time only)npm publish
npm install base-npm-lib
to install the latest version from npm
import { sayHello, greet } from 'base-npm-lib'
...
sayHello('name'); // hello name
greet(); // hello world!!