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

exp-deploy-cli

v1.7.0

Published

An easy way to deploy different environment configurations using Expo & exp CLI

Downloads

7

Readme

exp-deploy-cli

npm version npm

Expo Release Channels

Expo just released (11/17/2017) beta support for Release Channels

We strongly recommend moving forward with Expo's official supported implementation!

About

Right now Expo doesn't support different deploy environments like staging and production. This is a simple tool to help mimic that environment by creating a copy of your app.json and adding a suffix to stuff like name and slug.

Expo is working on supporting their own deployment environments. As soon as its released I'll update the repo to take you there instead

Orchard uses this on an daily basis to deploy their different environments

Instructions

  • exp-deploy requires a config folder with a copy of app.json. Create the following:
    • config/exp-development.json
    • config/exp-production.json
  • If you'd like to store environment variables, create a config object next to expo within app.json:
    "config": {
      "apiUrl": "https://api.mysite.com",
      "sentryApiKey": "xyz"
    },
    "expo": {
      "name": "MyAppName",
      "privacy": "unlisted",
      "slug": "my-app-name",
      "sdkVersion": "1.0.0",
      "scheme": "my-app-name",
      "version": "1.0.0",
    }
  • Running exp-deploy --production will now do the following:
    • copy config/exp-production.json over into app.json
    • run exp publish
    • reset app.json to its previous state
yarn global add exp-deploy-cli
npm install -g exp-deploy-cli

Usage

Usage: exp-deploy [command]

Commands:
  config                   Initial Config Setup

Options:
  --help  Show help        [boolean]

Examples:
  exp-deploy config
  exp-deploy --env production
  exp-deploy --env staging

Using Config Variables in your app

Since Expo doesn't give you access to Config via Constants.manifest, you can import the json file directly:

import App from './app.json'

const API_URL = App.config.apiUrl

Future Api

  • exp config
  • exp deploy
  • exp releases
  • exp rollback

Philosophy / Idea

  • exp doesn't support dev. vs prod environments so lets try and make it work on our own
  • create a config folder and place exp-development.json and exp-production.json
  • within your app.json create a config object to store your api keys, etc. in
  • run exp-deploy config which will:
    • run interactive shell
    • check for config folder. If doesn't exist, create it
    • copy over app.json into exp-development.json and exp-production.json
    • ask user for any specific api keys they would like to separate
  • run exp-deploy --production which will:
    • check whether config/exp-production.json exists
    • copy it over into your main app.json
    • bumps the version number (or npm version patch) by default
    • save the version number, commit it including creating a tag
    • save the release into a releases.json file
  • run exp-deploy releases which will:
    • look up releases.json with every released version
      • ties in git tag / release to what's been deployed
  • run exp-deploy rollback which will:
    • look into releases.json and asks you interactively to choose a version to roll back to
    • will check out the git tag and roll back your deploy to that specific version