Update dependencies, replace unmaintained packages

This commit is contained in:
lostinlight 2020-12-12 01:47:40 +03:00
parent 4d26575348
commit 29ba999367
6 changed files with 5983 additions and 5566 deletions

View file

@ -31,7 +31,8 @@ skip_render:
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
external_link:
enable: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: true

11494
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,47 +9,46 @@
"author": "lostinlight",
"license": "AGPL-3.0-or-later",
"hexo": {
"version": "4.2.0"
"version": "4.2.1"
},
"scripts": {},
"dependencies": {
"hexo": "^4.2.0",
"hexo-autonofollow": "^1.0.1",
"hexo": "^4.2.1",
"hexo-browsersync": "^0.3.0",
"hexo-deployer-git": "^2.1.0",
"hexo-filter-nofollow": "^2.0.2",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-feed": "^2.2.0",
"hexo-generator-index": "^1.0.0",
"hexo-generator-feed": "^3.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-index-i18n": "^0.2.1",
"hexo-generator-tag": "^1.0.0",
"hexo-pagination": "^1.0.0",
"hexo-processor-static": "^1.1.0",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-markdown-it": "^4.1.0",
"hexo-server": "^1.0.0",
"hexo-renderer-markdown-it": "^5.0.0",
"hexo-server": "^2.0.0",
"hexo-yam": "^3.2.3"
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.10",
"babel-eslint": "^10.1.0",
"del": "^5.1.0",
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-babel": "^8.0.0",
"gulp-clean-css": "^4.3.0",
"gulp-concat": "^2.6.1",
"gulp-cssnano": "^2.1.3",
"gulp-eslint": "^6.0.0",
"gulp-notify": "^3.2.0",
"gulp-plumber": "^1.2.1",
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.5",
"gulp-sass": "^4.1.0",
"gulp-sourcemaps": "^3.0.0",
"gulp-stylelint": "^13.0.0",
"gulp-uglify": "^3.0.2",
"stylelint": "^13.2.0",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack-stream": "^5.2.1"
"stylelint": "^13.8.0",
"webpack-stream": "^6.1.1"
}
}

View file

@ -3,7 +3,7 @@
const autoprefixer = require('../../node_modules/gulp-autoprefixer'),
babel = require('../../node_modules/gulp-babel'),
concat = require('../../node_modules/gulp-concat'),
cssnano = require('../../node_modules/gulp-cssnano'),
cleancss = require('../../node_modules/gulp-clean-css'),
del = require('../../node_modules/del'),
eslint = require('../../node_modules/gulp-eslint'),
gulp = require('../../node_modules/gulp'),
@ -26,7 +26,7 @@
}
// Styles
gulp.task('styles:lint', function() {
gulp.task('styles:lint', function() {
return gulp.src('source/assets/scss/**/*.scss')
.pipe(customPlumber('Ouch! Error Running StyleLint'))
.pipe(stylelint({
@ -54,11 +54,11 @@
.pipe(sass({errLogToConsole: true}))
.pipe(autoprefixer(['last 3 versions', 'IE 10', 'iOS 9', 'Android 4']))
.pipe(rename({ suffix: '.min' }))
.pipe(cssnano())
.pipe(cleancss({level: 2}))
.pipe(gulp.dest('source/css/'))
});
gulp.task('webpack', function() {
gulp.task('webpack', function() {
return gulp.src('source/assets/scripts/crystalball.js')
.pipe(webpack( require('./webpack.config.js') ))
.pipe(gulp.dest('source/js/'));
@ -92,16 +92,6 @@
.pipe(gulp.dest('source/js/'))
});
// Vendor Scripts
// gulp.task('vendor', function() {
// return gulp.src('source/assets/scripts/vendor/*.js')
// .pipe(customPlumber('Ouch! Error Running Vendor'))
// .pipe(concat('vendor.js')) // only if http2 not configured on server
// .pipe(rename({suffix: '.min'}))
// .pipe(uglify())
// .pipe(gulp.dest('source/js/'));
// });
// Clean
gulp.task('clean', function () {
return del(['source/js/*', 'source/css/*']);

View file

@ -57,7 +57,6 @@ img.mascot {
}
.screen > img {
width: 95%;
border: 1px solid $grey;
}

View file

@ -1,6 +1,4 @@
const UglifyJsPlugin = require('../../node_modules/uglifyjs-webpack-plugin');
module.exports = {
mode: 'production',
entry: {