From a070e6279b9706763bdd75aea35a45953e9b1cc2 Mon Sep 17 00:00:00 2001 From: Jonathan Schwartz Date: Mon, 27 May 2019 17:11:30 -0400 Subject: [PATCH] add framework for conditionally rendering profiles --- package.json | 1 + src/repo-utils.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package.json b/package.json index 71331bb62..4e460bc81 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,7 @@ "start": "node scripts/start", "start:local": "node scripts/launch-local", "start:mainnet": "cross-env ARAGON_ETH_NETWORK_TYPE=main npm start", + "start:with:profiles": "cross-env WITH_PROFILES=true node scripts/start", "start:rinkeby": "npm start", "start:staging": "cross-env ARAGON_ENS_REGISTRY_ADDRESS=0xfe03625ea880a8cba336f9b5ad6e15b0a3b5a939 npm start", "start:ropsten": "cross-env ARAGON_ETH_NETWORK_TYPE=ropsten npm start", diff --git a/src/repo-utils.js b/src/repo-utils.js index bd900161b..01a33f18b 100644 --- a/src/repo-utils.js +++ b/src/repo-utils.js @@ -8,3 +8,5 @@ const KNOWN_REPOS = new Set([ export function isKnownRepo(appId) { return KNOWN_REPOS.has(appId) } + +export const withProfiles = process.env.WITH_PROFILES || false