1.0.2 • Published 8 years ago
jazale-math-ng-service v1.0.2
For the following notes, replace 'my-library' with your library name.
Setup:
- Run 'npm install'
- In 'root' folder of project, create my-library.ts.
- Create folder 'src'
- Add library files to 'src'
- In the 'my-library.ts' file, add lines for the interfaces and classes that you wish to make public for the library. E.g. "export * from './src/my-lib-code.ts';"
- Run 'npm run tsc'. It should generates the .js, .d.ts and .js.map files for your project.
- Open 'package.json' and find the entry ("typings": "./my-library.d.ts"). Change 'my-library' to your library name.
- While in 'package.json', change the name (first line in file) to match library name.
Test:
- Run 'npm link'
- Run 'npm link my-library
Publish:
- Run 'npm Publish'
Additionally, see folder readme.notes for original notes.