get rid of projects moved to github pages

This commit is contained in:
Brittany Chiang
2017-03-30 23:54:38 -04:00
parent 7dd3e46406
commit 96d9931ee5
143 changed files with 152 additions and 55870 deletions

View File

@@ -5,7 +5,7 @@ const jekyll = process.platform === 'win32' ? 'jekyll.bat' : 'jekyll';
const scssPath = ['_scss/**/*.scss'];
const jsPath = ['_scripts/*.js'];
const templatePath = [ '**/*.html', '**/*.yml', '_posts/*', '_drafts/*'];
const templatePath = [ '*.html', '+(_includes|_layouts)/*.html', '*.yml', '_data/*.yml', '_posts/*'];
module.exports = gulp => {

View File

@@ -7,16 +7,19 @@ const destPath = '_site/css';
module.exports = gulp => {
gulp.task('sass', () => {
gulp.task( 'sass', () => {
return gulp.src( scssPath )
.pipe(sass({
.pipe( sass( {
includePaths: ['scss'],
outputStyle: 'expanded'
}))
.pipe(prefix(['last 15 versions'], {cascade: true}))
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(gulp.dest( destPath ))
.pipe(gulp.dest('css'));
} ) )
.pipe( prefix( {
browsers: [ 'last 2 versions' ],
cascade: false
} ) )
.pipe( cleanCSS( {compatibility: 'ie8'} ) )
.pipe( gulp.dest( destPath ) )
.pipe( gulp.dest( 'css' ) );
});
}

View File

@@ -1,21 +1,36 @@
const jshint = require('gulp-jshint');
const eslint = require('gulp-eslint');
const babel = require('gulp-babel');
const uglify = require('gulp-uglify');
const pump = require('pump');
const jsPath = '_scripts/*.js';
const destPath = '_site/js';
module.exports = gulp => {
gulp.task('scripts', () => {
// gulp.task('scripts', function (cb) {
// console.log('compress');
// pump([
// gulp.src(jsPath),
// uglify(),
// gulp.dest(destPath)
// ],
// cb
// );
// });
gulp.task( 'scripts', () => {
return gulp.src( jsPath )
.pipe(jshint())
.pipe( eslint( {
useEslintrc: true
} ) )
// .pipe( eslint.format() )
.pipe(babel({
presets: ['es2015']
}))
.pipe( uglify() )
.pipe(gulp.dest( destPath ))
.pipe(gulp.dest( 'js' ));
.pipe( gulp.dest( destPath ) )
.pipe( gulp.dest( 'js' ) );
});
}