1.2.0 • Published 10 years ago

my-npm-ng2-component v1.2.0

Weekly downloads
1
License
Unlicense
Repository
github
Last release
10 years ago

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

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.6

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago