Skip to content
Permalink
Browse files

Add reading env variables from .env.babelsheet

  • Loading branch information...
blyszcz committed Sep 14, 2018
1 parent 5eecf34 commit de52ef9c5fc05f31f3ede438a37533f7f0483dfa
Showing with 3 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 src/infrastructure/storage/in-env.ts
  3. +1 −0 src/services/cli/index.ts
@@ -1,6 +1,7 @@
.idea
node_modules
.env
.env.babelsheet
data.json
coverage
docker-compose.yml
@@ -44,7 +44,7 @@ export default class InEnvStorage implements Storage {
const envsForFile = ramda.pick(envFileVars, process.env);
const result = Object.keys(envsForFile).reduce((sum, val) => `${sum}${val}=${envsForFile[val]}\n`, '');

this.fileRepository.saveData(result, '', 'env');
this.fileRepository.saveData(result, '', 'env.babelsheet');
}

private tryParse(value: any) {
@@ -10,6 +10,7 @@ import createContainer from './container';
import { generateConfigFile, generateTranslations } from './fileGenerators';

dotenv.config();
dotenv.config({ path: '.env.babelsheet' });

const container = createContainer();

0 comments on commit de52ef9

Please sign in to comment.
You can’t perform that action at this time.