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

nx-vercel-utils

v0.1.0

Published

Nx plugin to deploy env variables to Vercel

Downloads

4

Readme

nx-vercel-utils

npm (nx-vercel-utils)

Features

  • Upload and replace all environment variables from your .env file to vercel

Install

pnpm i -D nx-vercel-utils

Description

This plugin adds a env executor that will deploy your environment variables to vercel.

Prerequisites

  • You will need to have the vercel cli installed. Either globally or locally in your project. If you install it globally you have to set packageManager option to global.
pnpm i -D vercel

You also need to cd into the project and run vercel link to link your project to your vercel account. That will create a .vercel folder.

Example

cd apps/frontend
vercel login # if you haven't logged in
vercel link

Executors

Env

See the example here

...
 "targets": {
  "deploy-vercel-env": {
   "executor": "../dist:env",
   "options": {
    "flavors": {
     "development": "development",
     "production": "production",
     "staging": "staging"
    },
    "vercelProjectName": "your-vercel-project-name"
   }
  },

You need to create .env.{flavor} files for each flavor you want to deploy. The flavor name will be the key in the flavors object.

Options

| Option | Description | Default | Alias | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- | | vercelProjectName | The name of the vercel project. | required | project | | flavors | A object of the flavors to use, the key is the flavor name and value is either 'production', 'development', 'preview' or 'preview:{branch}'. Read more here | required | | | flavor | The flavor to use, default will be the first key in the flavors object. | | | | silent | Whether to suppress all logs. | false | s | | verbose | Whether to run the command with verbose logging. | false | v | | packageManager | The package manager to use for deploying with firebase-tools. Either: pnpm, npm, yarn or global. | | concurrency | The number of environments to deploy in parallel | 10 | c |

Examples

pnpm nx deploy-vercel-env frontend

# will deploy the environment variables for the first flavor in the flavors object
pnpm nx deploy-vercel-env frontend --flavor staging