Skip to content

Commit

Permalink
gulp file
Browse files Browse the repository at this point in the history
  • Loading branch information
Shady Khalifa committed May 22, 2018
1 parent 29d1f60 commit 673dee9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const gulp = require('gulp');
const ts = require('gulp-typescript');
const gulpSequence = require('gulp-sequence');

const package = ts.createProject('tsconfig.json');
const source = 'src';
const distId = process.argv.indexOf('--dist');
const dist = distId < 0 ? 'node_modules/nest-access-control' : process.argv[distId + 1];

gulp.task('build', () => {
return package
.src()
.pipe(package())
.pipe(gulp.dest(dist));
});

gulp.task('move', function() {
gulp.src(['node_modules/nest-access-control/**/*']).pipe(gulp.dest('example/node_modules/nest-access-control'));
});

0 comments on commit 673dee9

Please sign in to comment.