Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
26
site/OFF_plugins/typography/gulpfile.js
Normal file
26
site/OFF_plugins/typography/gulpfile.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/* jshint esversion: 6 */
|
||||
|
||||
const gulp = require('gulp');
|
||||
const uglify = require('gulp-uglify');
|
||||
const rename = require('gulp-rename');
|
||||
const toc = require('gulp-doctoc');
|
||||
|
||||
gulp.task( 'scripts', function () {
|
||||
return gulp.src(['assets/js/src/**/*.js'])
|
||||
.pipe(uglify())
|
||||
.pipe(rename({ suffix: '.min' }))
|
||||
.pipe(gulp.dest('assets/js/dist'));
|
||||
});
|
||||
|
||||
gulp.task( 'readme', function() {
|
||||
return gulp.src(['README.md'])
|
||||
.pipe(toc({
|
||||
mode: "github.com",
|
||||
title: "**Table of Contents**",
|
||||
}))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
gulp.task('default', [ 'scripts' ]);
|
||||
|
||||
gulp.task('build', [ 'default', 'readme' ]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue