Icontem

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: Updated tests to check for facebook class, id, app id, app redirect_url and app url

Update readme

Update package.json

updated libraries

added more icons

Added fontawesome & popup window, processed custom test file

updated gulp & code documentation

updated code documentation

updated node version

update readme and popup

reverted node

remove production dependency

travis slack notification

fixed package.json

updated docs

updated version
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"
    }))
    ;
});