0.0.1 • Published 8 years ago

my-ts-lib-template v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

What This Is

Template for creating a shared library using typescript (e.g. common code for lambdas, multiple web projects).

Rename And Remove .git

$ rm -fr .git
$ mv src/ts-lib-template.ts src/my-library-name.ts
$ find . -type f -exec sed -i 's/ts-lib-template/my-library-name/g' {} \;

Reinitialize git to new repository

$ git init
$ git remote add origin YOURREPOSITORY
$ git add .
$ git commit -m "Initial"
$ git push -u origin master

Pre-Build

$ npm install

Scripts

$ npm run lint
$ npm run test
$ npm run package

Publish To Private Repository

  • Add your scope to the name in package.json e.g. @myorgscope/my-library-name
  • Configure Nexus3 repository (or similar repositories with @scope support)
$ npm config set @myorgscope:registry http://myorgsrepo.com/repository/npm-hosted
$ npm version patch
$ npm publish

Runtime Dependencies

NONE. This is an empty module.

Dev Dependencies

License

This code is available under the MIT license.