Git Product home page Git Product logo

base-npm-lib's Introduction

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!!

base-npm-lib's People

Contributors

sahilkhosla avatar skhosla-oanda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.