1.2.0 • Published 8 years ago

my-npm-ng2-component v1.2.0

Weekly downloads
1
License
Unlicense
Repository
github
Last release
8 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

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.6

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago