npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ts-project-maker

v1.9.0

Published

A CLI to create projects with a TypeScript template, now supporting multiple languages.

Downloads

68

Readme

ts-project-maker

The ts-project-maker is a command-line interface tool designed to streamline the creation of TypeScript projects using a pre-defined template. This tool leverages a specific TypeScript ORM template to kickstart your project, handling cloning, branch selection, renaming, branch management, and dependency installations with minimal user input.

Switch to Portuguese

Features

  • Easy Setup: Set up a new TypeScript project in seconds with a single command.
  • Customizable Template Selection: Use any TypeScript template repository URL to create your project.
  • Branch Selection: Optionally choose a specific branch to clone from the template repository.
  • URL Type Selection: Choose between HTTPS or SSH for cloning the repository.
  • Main Branch Setup: Automatically set up a new master or main branch, and clean up all other branches from the template repository.
  • Automatic Dependency Installation: Automatically installs all npm dependencies after creating the project.
  • Interactive CLI: Simple and interactive prompts to collect user input.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (version 12.x or higher recommended)
  • npm (typically comes with Node.js)

Installation

ts-project-maker does not require a global installation. You can run it directly using npx to avoid cluttering your system with global packages:

npx ts-project-maker

Usage

To use ts-project-maker, simply run the following command in your terminal:

npx ts-project-maker

You will be prompted to provide the following information:

  1. Language Selection: Choose between English and Portuguese.
  2. Project Name: Enter the name for your project.
  3. Repository URL Type: Choose between HTTPS or SSH for the repository URL.
  4. Template Repository URL: Provide the URL of the TypeScript template repository you want to use.
  5. Branch Name: Optionally, specify a branch to clone (leave blank to use the default branch).
  6. New Repository URL: Optionally, provide a new GitHub repository URL for your project.
  7. Main Branch Name: Choose between master or main as the primary branch for your project.
  8. Package Name: Define the package name for your project (default is derived from the template repository name).
  9. Description: Provide a short description for your project.
  10. Author: Specify the author's name.
  11. License: Choose the license for your project (default is ISC).
  12. Keywords: Enter keywords for your project, separated by commas.

After answering the prompts, the CLI will:

  • Clone the template repository into a new directory with your project name.
  • Optionally clone a specific branch if specified.
  • Update the package.json with the information you provided.
  • Install all npm dependencies.
  • Set up the GitHub repository if a new URL was provided.
  • Create the primary branch (master or main) as specified, and delete the reference branch used for cloning along with any other branches from the template.

Switching Languages

To switch to the Portuguese version of this README, click the button below:

Switch to Portuguese


ts-project-maker

O ts-project-maker é uma ferramenta de interface de linha de comando projetada para agilizar a criação de projetos TypeScript usando um template pré-definido. Esta ferramenta utiliza um template específico de ORM em TypeScript para iniciar seu projeto, lidando com clonagem, seleção de branch, renomeação, gerenciamento de branches e instalações de dependências com mínima interação do usuário.

Switch to English

Funcionalidades

  • Configuração Fácil: Configure um novo projeto TypeScript em segundos com um único comando.
  • Seleção de Template Personalizável: Use qualquer URL de repositório de template TypeScript para criar seu projeto.
  • Seleção de Branch: Opcionalmente, escolha uma branch específica para clonar do repositório de template.
  • Seleção do Tipo de URL: Escolha entre HTTPS ou SSH para clonar o repositório.
  • Configuração da Branch Principal: Configure automaticamente uma nova branch master ou main e limpe todas as outras branches do repositório de template.
  • Instalação Automática de Dependências: Instala automaticamente todas as dependências do npm após criar o projeto.
  • CLI Interativo: Prompts simples e interativos para coletar as informações do usuário.

Pré-requisitos

Antes de começar, certifique-se de ter o seguinte instalado:

  • Node.js (recomendado versão 12.x ou superior)
  • npm (normalmente já vem com o Node.js)

Instalação

O ts-project-maker não requer uma instalação global. Você pode executá-lo diretamente usando npx para evitar poluir seu sistema com pacotes globais:

npx ts-project-maker

Uso

Para usar o ts-project-maker, simplesmente execute o seguinte comando no seu terminal:

npx ts-project-maker

Você será solicitado a fornecer as seguintes informações:

  1. Seleção de Idioma: Escolha entre Inglês e Português.
  2. Nome do Projeto: Insira o nome do seu projeto.
  3. Tipo de URL do Repositório: Escolha entre HTTPS ou SSH para a URL do repositório.
  4. URL do Repositório de Template: Forneça a URL do repositório de template TypeScript que você deseja usar.
  5. Nome da Branch: Opcionalmente, especifique uma branch para clonar (deixe em branco para usar a branch padrão).
  6. Nova URL do Repositório: Opcionalmente, forneça uma nova URL do repositório GitHub para o seu projeto.
  7. Nome da Branch Principal: Escolha entre master ou main como a branch principal do seu projeto.
  8. Nome do Pacote: Defina o nome do pacote para o seu projeto (padrão é derivado do nome do repositório de template).
  9. Descrição: Forneça uma breve descrição para o seu projeto.
  10. Autor: Especifique o nome do autor.
  11. Licença: Escolha a licença para o seu projeto (padrão é ISC).
  12. Palavras-chave: Insira palavras-chave para o seu projeto, separadas por vírgulas.

Após responder aos prompts, a CLI irá:

  • Clonar o repositório de template em um novo diretório com o nome do seu projeto.
  • Opcionalmente, clonar uma branch específica, se especificada.
  • Atualizar o package.json com as informações fornecidas.
  • Instalar todas as dependências do npm.
  • Configurar o repositório GitHub, se uma nova URL for fornecida.
  • Criar a branch principal (master ou main) conforme especificado, e apagar a branch de referência usada na clonagem junto com quaisquer outras branches do template.

Trocando de Idioma

Para mudar para a versão em inglês deste README, clique no botão abaixo:

Switch to English