alexjoverm/typescript-library-starter

Suggestion: separated starter script form codebase

Open

#135 创建于 2017年11月24日

在 GitHub 查看
 (4 评论) (1 反应) (0 负责人)TypeScript (4,362 star) (481 fork)user submission
enhancementhelp wanted

描述

Initially based on the script you have that runs after installing the dependencies, I've created a script that simplifies the process in only one step (it clones the repo and runs the script) and has also the benefit of being outside the codebase.

You can run the script with:

npx github:gimenete/create-typescript-library <dirname>

Repo here: https://github.com/gimenete/create-typescript-library

Besides the library name it also asks for a few other things:

  • What do you want the library to be called?
  • Is this a web app or a Node.js app? Node.js / Webapp
  • Is this a library? Standalone application? Yes / No
  • Do you want to use travis? Yes / No
  • Do you want to use commitizen? Yes / No

Maybe we can remove the embedded script you have in the project and promote using this one. My suggestion is to put this script in your repo in a different branch. Then it will be run like this:

npx github:alexjoverm/typescript-library-starter#script <dirname>

Where script is the branch name.

贡献者指南