generator-simple-ts
v0.3.2
Published
A Yeoman Generator for a simple Typescript project structure
Downloads
4
Readme
generator-simple-ts
A Yeoman Generator for creating a simple Typescript project structure.
Generates a Typescript project structure corresponding to the below diagram.
+-- <project-name>/
| +-- src/
| | +-- index.ts
| +-- package.json
| +-- tsconfig.json
| +-- tslint.json
| +-- LICENSE
| +-- README.md
| +-- CHANGELOG.md
| +-- [.git/]
| +-- [.gitignore]
Usage
Standalone
- Install
Yeoman
globally
npm i -g yo
- Install
simple-ts
npm i -g generator-simple-ts
- Run generator
yo simple-ts
- Follow the prompts.
Composing with other Generators
TODO
Prompts
1. Project Name
The name for the project. Will be used for the name of the top level directory holding the project.
2. Version
The initial version number to use for the project. Defaults to 0.1.0
3. Description
The description of the project.
4. Author
The author of the project's name.
5. Email
The author's email address.
6. License
The type of license to use for the project. Offers a list of options.
7. Git
Whether to initialise a git repository in the project root.
8. Git provider
The Git provider for the remote repo. Currently supports: Github, Gitlab and Bitbucket.
9. Git user
The Git username to use in generating the repository URL. Only prompts when the option to initialise a git repository was selected. Generates a URL in the form in the package.json
:
https://github.com/<github-user>/<project-name>.git