ng2-branchy
Version:
angular2 component for visualizing data that can be naturally represented as a tree
30 lines (24 loc) • 621 B
JavaScript
;
const gulp = require('gulp');
const stylus = require('stylus');
const ghPages = require('gulp-gh-pages');
const gitignore = require('gulp-gitignore');
const gulpStylus = require('gulp-stylus');
const SAME_DIRECTORY = '.';
gulp.task('stylus', () => {
return gulp.src('**/*.styl')
.pipe(gitignore())
.pipe(gulpStylus({
define: {
url: stylus.resolver()
}
}))
.pipe(gulp.dest(SAME_DIRECTORY));
});
gulp.task('watch:stylus', () => {
gulp.watch('**/*.styl', ['stylus']);
});
gulp.task('deploy', function() {
return gulp.src('./build/**/*')
.pipe(ghPages());
});