1.0.6 • Published 8 years ago

gulp-sync-env v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gulp-sync-env

NPM version Build Status Coverage Status Dependency Status

sync-env plugin for gulp

Usage

First, install gulp-sync-env as a development dependency:

npm install --save-dev gulp-sync-env

Then, add it to your gulpfile.js:

var syncEnv = require('gulp-sync-env');
var gulp = require('gulp');

gulp.task('syncEnv', function(){
    gulp.src('.env')
    .pipe(syncEnv('.env-example'))
    .pipe(gulp.dest(''));
});

gulp.task('watch', function(){
    gulp.watch('.env', ['syncEnv']);
});

gulp.task('default', ['watch']);

API

sync-env(options)

options.msg

Type: String
Default: .env-example

The name of the saved file.

License

MIT License

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago