Skip to content

JaDogg/base-npm-lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base-npm-lib

Shell for developing npm packages, wired with Webpack and Babel to allow ES6 and import/export modules

How to use base-npm-lib to build a package?

1. Clone

  • 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).

2. Test

  • npm run test to test

3. Build

  • npm run build to build the package

4. Publish

  • npm login (first time only)
  • npm publish

Import published package in another app

1. Install

npm install base-npm-lib to install the latest version from npm

2. Use

import { sayHello, greet } from 'base-npm-lib'

...

sayHello('name'); // hello name
greet(); // hello world!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%