Update to new build script (no more gulp)

This commit is contained in:
Jan Jastrow 2023-05-05 21:03:34 +02:00
parent 6290e2115b
commit 0e8fb1d540
5 changed files with 2747 additions and 4385 deletions

View File

@ -5,7 +5,7 @@
<title>Jan.su :: Welcome fellow human!</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/addons.min.css" type="text/css" />
<link rel="stylesheet" href="css/styles.min.css" type="text/css" />
<link rel="stylesheet" href="css/main.min.css" type="text/css" />
<link rel="shortcut icon" type="image/svg+xml" href="favicon.svg" />
<link rel="icon" type="image/png" href="favicon.png" sizes="64x64" />
<link href="https://chaos.social/@jan_j" rel="me">

7038
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,41 +1,77 @@
{
"name": "Website_Jan.su",
"description": "My personal website",
"version": "2.0.2",
"author": "Jan Jastrow",
"license": "MIT",
"version": "2.1.0",
"homepage": "https://jan.su",
"url": "",
"email": "jan@schwerkraftlabor.de",
"scripts": {
"dev": "gulp"
"author": "Jan Jastrow",
"engines": {
"node": ">=16",
"npm": ">=8"
},
"bin": {
"rimraf": "node_modules/.bin/rimraf"
},
"main": "gulpfile.js",
"repository": {
"type": "git",
"url": "https://gitea.schwerkraftlabor.de/jan/Website_Jan.su"
},
"dependencies": {
"immutable": "^4.3.0",
"is-extglob": "^2.1.1",
"is-glob": "^4.0.3",
"normalize-path": "^3.0.0",
"picomatch": "^2.3.1",
"source-map-js": "^1.0.2"
},
"devDependencies": {
"sass": "^1.49.7",
"gulp": "^4.0.2",
"gulp-sass": "^5.1.0",
"gulp-concat": "^2.6.1",
"gulp-livereload": "^4.0.2",
"gulp-notify": "^4.0.0",
"gulp-plumber": "^1.2.1",
"gulp-postcss": "^9.0.1",
"gulp-rename": "^2.0.0",
"merge2": "^1.4.1",
"rimraf": "^3.0.2",
"autoprefixer": "*",
"browser-sync": "*",
"concat": "*",
"cssnano": "^6.0.0",
"npm-run-all": "*",
"onchange": "*",
"postcss": "^8.4.21",
"postcss-cli": "*",
"rimraf": "^4.4.1",
"sanitize.css": "^13.0.0",
"autoprefixer": "^10.4.2",
"caniuse-lite": "^1.0.30001312",
"cssnano": "^5.0.17"
"sass": "^1.60.0",
"uglify-js": "^3.17"
},
"scripts": {
"reinstall": "rimraf node_modules && npm install",
"clean": "rimraf _dist",
"mkdirs": "mkdir -p _dist/js && mkdir -p _dist/css",
"copy:php": "rsync -av --prune-empty-dirs --include '*/' --include '*.php' --exclude '*' _source/ _dist/",
"copy:img": "rsync -av _source/img _dist/",
"copy:html": "rsync -av _source/*.html _dist/",
"copy:assets": "cp -r _source/*.png _source/*.txt _dist/",
"copy": "npm run copy:php && npm run copy:img && npm run copy:assets && npm run copy:html",
"sass": "sass _source/scss/main.scss _dist/css/main.css ",
"concat:css": "concat -o _dist/css/addons.css node_modules/sanitize.css/sanitize.css",
"autoprefix:sass": "postcss -o _dist/css/main.min.css _dist/css/main.css",
"autoprefix:addons": "postcss -o _dist/css/addons.min.css _dist/css/addons.css",
"build:sass": "npm run sass && npm run autoprefix:sass",
"build:css": "npm run concat:css && npm run autoprefix:addons",
"watch:css": "onchange '_source/scss/*.scss' -- npm run build:sass",
"watch:php": "onchange '_source/**/*.php' -- npm run copy:php",
"watch:img": "onchange '_source/img/*' -- npm run copy:img",
"watch": "npm-run-all --parallel watch:*",
"build": "npm run clean && npm run mkdirs && npm run copy && npm run build:sass && npm run build:css",
"dev": "npm run watch & browser-sync start --proxy intranet/ --startPath /dev/ --files '_dist/' --no-open"
},
"browserslist": [
"last 2 version",
"> 2%",
"android >= 5.0",
"IE 11"
"ff >= 10",
"ie >= 11",
"Chrome >= 10",
"iOS >= 10",
"Android >= 4",
"Safari >= 10"
]
}

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
plugins: [
require('autoprefixer'),
require('cssnano')
],
};