0.0.6 • Published 10 years ago
generator-typescript-library v0.0.6
generator-typescript-library 
Getting Started
Install
npm install -g yo generator-typescript-library
yo typescript-libraryGit hook
This project has a pre-commit git hook to compile the library to be production ready before committing. To use it, you need to first initialize a git repository in the generated project folder with git init and then run npm install (still into the generated project folder) to install the git hook.
Structure
The scaffolded project has this structure:
.
├── .codeclimate.yml
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .jshintrc
├── .travis.yml
├── .vscode
│ └── settings.json
├── LICENSE
├── README.md
├── gulpfile.js
├── lib
│ ├── all.d.ts
│ ├── core.ts
│ └── test-generator.ts
├── package.json
├── scripts
│ └── dts-bundle.js
├── test
│ └── core.ts
├── tsconfig.json
└── tsd.jsonGulp tasks
cicleans the project, install type definition files and run unit testsgulpruns thecitask then it compiles the project in the./buildfolder and finally generates the type definition files of the library in the./buildfolder.testandtest:watchrun unit tests whether in watch mode or notscripts:devandscripts:dev:watchcompiles typescript files in dev mode whether in watch mode or not. (compiled files are not in./buildfolder)
License
MIT