mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 15:15:39 -06:00
get rid of projects moved to github pages
This commit is contained in:
@@ -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 => {
|
||||
|
||||
|
||||
@@ -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' ) );
|
||||
});
|
||||
|
||||
}
|
||||
@@ -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' ) );
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user