Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

Latest commit

 

History

History
43 lines (33 loc) · 1.34 KB

readme.md

File metadata and controls

43 lines (33 loc) · 1.34 KB

start-env

npm linux build windows build coverage deps

process.env task for Start.

Install

npm install --save-dev start-env
# or
yarn add --dev start-env

Usage

import Start from 'start';
import reporter from 'start-pretty-reporter';
import env from 'start-env';
import files from 'start-files';
import read from 'start-read';
import babel from 'start-babel';
import write from 'start-write';

const start = Start(reporter());

export const build = () => start(
  env('NODE_ENV', 'production'),
  files('lib/**/*.js'),
  read(),
  babel(),
  write('build/')
);

Arguments

env(key, value)