alexjoverm/typescript-library-starter

Suggestion: separated starter script form codebase

Open

#135 aberto em 24 de nov. de 2017

Ver no GitHub
 (4 comments) (1 reaction) (0 assignees)TypeScript (481 forks)user submission
enhancementhelp wanted

Métricas do repositório

Stars
 (4.362 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador