File: gulpfile.js

Recommend this page to a friend!
  Classes of Ovidiu Bokar   Social Media Sharing   gulpfile.js   Download  
File: gulpfile.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Social Media Sharing
Create social media sharing links
Author: By
Last change: Update of gulpfile.js
Date: 2 years ago
Size: 708 bytes
 

Contents

Class file image Download
var gulp = require('gulp'); var minify = require('gulp-minify'); var replace = require('gulp-replace'); var typedoc = require("gulp-typedoc"); gulp.task('default',['convertTS','typedoc']); gulp.task('convertTS', function() { gulp.src('lib/SocialMedia.js') .pipe(replace('exports.SocialMedia', 'window.SocialMedia')) .pipe(minify({ ext:{ min:'.min.js' }, exclude: ['tasks'], ignoreFiles: ['.combo.js', '-min.js'] })) .pipe(gulp.dest('dist')) }); gulp.task("typedoc", function() { return gulp .src(["ts/**/*.ts"]) .pipe(typedoc({ module: "commonjs", target: "es5", out: "doc/", name: "Social Media Buttons" })) ; });