Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Copy .env separately
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed May 22, 2016
1 parent c96ac19 commit ddf4898
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ class Generator {
return log(err)
}

if (filePath.name == '.env') {
var contents = fs.createReadStream(file),
target = fs.createWriteStream(dest)

contents.pipe(target)
continue
}

// If so, copy the blueprints
try {
fs.copySync(file, dest)
Expand Down

0 comments on commit ddf4898

Please sign in to comment.