0.4.5 • Published 3 years ago

@gabaraujo/seed-npm-package v0.4.5

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Sample NPM Package in TypeScript

This is a sample on how to create an NPM package using TypeScript source.

Installation

  1. Install TypeScript
npm install typescript
  1. Install this package
npm install @ejgallo/seed-npm-package@latest

Usage

import * as samplePackage from "@ejgallo/seed-npm-package";

// returns 'Hello, John Doe.'
samplePackage.helloWorld({ first: "John", last: "Doe" });

OR

import { helloWorld } from "@ejgallo/seed-npm-package";

// returns 'Hello, John Doe.'
helloWorld({ first: "John", last: "Doe" });

Contributing

  1. Clone the Git Repository
  2. Create a new branch
  3. Install package dependencies:
npm install
  1. Make desired changes
  2. Test your changes prior to publishing.
  3. Please make sure to update tests as appropriate.
  4. Issue a new version command using the NPM semantic versioning:
# Values can be major, minor or patch
npm version patch

Note: This will automatically create a git commit with the new version tag for easier tracking in the source control system. 8. Publish new version to the NPM Repository:

npm publish

Note: This command will first run "tsc" (to compile TypeScript into JavaScript) and then publish the package. This is thanks to the "prepack": "tsc" line in package.json. Do not remove that from the configuration. 9. Go to the NPM Repository and check if new version is available. 10. Have fun!

License

MIT

0.4.5

3 years ago

0.4.4

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago