Skip to content

Instantly share code, notes, and snippets.

@rjlopezdev
Last active February 24, 2020 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjlopezdev/f2c2ab0db522aad87c98fb1dc2e4ef14 to your computer and use it in GitHub Desktop.
Save rjlopezdev/f2c2ab0db522aad87c98fb1dc2e4ef14 to your computer and use it in GitHub Desktop.
NestJS Library Template Configuration

🐣 Previous steps

  1. Use this template

Captura de pantalla 2020-02-24 a las 22 03 56

  1. Name your repository

Captura de pantalla 2020-02-24 a las 22 04 55

📦 🚀 CI/CD Configuration

In order to configure successfully this template for CI/CD carry out the following steps:

Secrets:

Captura de pantalla 2020-02-24 a las 22 09 37

💡 GH_TOKEN should have repo permissions

Captura de pantalla 2020-02-24 a las 22 08 21

🔧 Initial Setup

You can configure this template running setup script:

# Navigate to your reposirory directory
cd your-template-repository/

# Install setup dependences
npm install inquirer replace-in-file

# Run setup
# You can run it in dry mode using `--dryRun` flag
sudo node tools/setup.js

# Install dependences (in order to generate your package-lock.json)
npm install

setup

💡 If the process success, remove tools/setup.js file & the advise on README.md

📦 Publish

You are ready to publish 😼

Just stash your changes and run:

# Commit with commitizen CLI
git cz
# Push changes
git push

commit

All right! Your repository should look like this: Captura de pantalla 2020-02-24 a las 23 06 38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment