Angular 2 libraries
It's time to code

ng-conf

2016

<project-setup>

<project-setup>

  • init Github
     
  • init npm
     
  • install dependencies

<code>

<code>

  • write your lib
     
  • create the main file with exports

<compile>

<compile>

  • install the TypeScript compiler
     
  • add a prepublish script
     
  • add the typings
     
  • add a tsconfig.json file
     
  • check with "npm run prepublish"

<test>

<test>

  • install karma & add karma.conf
     
  • add the karma shim for Angular 2
     
  • write some tests
     
  • [use npm link]

<distribute>

<distribute>

  • add a .gitignore file
     
  • add a .npmignore file
     
  • publish
     
  • conquer the world

ng2-translate on Github & npm

angular2-library-seed by Nathan Walker

Made with Slides.com