my-npm-ng2-component
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

My NPM user: https://www.npmjs.com/~joel.binnquist

Creating a distributable NG2 component The following was done to create this distributable NPM module:

  1. npm init
  2. add dependencies to package.json (see the file); note usage of peerDependencies.
  3. add tsconfig.json (see the file)
  4. install typings
  5. add .npmignore which excludes files that shall not be published
  6. implement an NG2 component (src/hello.component.ts)
  7. implement index.ts, which defines a NG2 module and exports it together with the component.

Publishing flow

  1. Do some code update
  2. Commit
  3. Do npm version [major|minor|patch]
  4. Do npm publish

References

See

Readme

Keywords

none

Package Sidebar

Install

npm i my-npm-ng2-component

Weekly Downloads

0

Version

1.2.0

License

Unlicense

Last publish

Collaborators

  • joel.binnquist