Update to new build script (no more gulp)
This commit is contained in:
parent
6290e2115b
commit
0e8fb1d540
@ -5,7 +5,7 @@
|
|||||||
<title>Jan.su :: Welcome fellow human!</title>
|
<title>Jan.su :: Welcome fellow human!</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<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/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="shortcut icon" type="image/svg+xml" href="favicon.svg" />
|
||||||
<link rel="icon" type="image/png" href="favicon.png" sizes="64x64" />
|
<link rel="icon" type="image/png" href="favicon.png" sizes="64x64" />
|
||||||
<link href="https://chaos.social/@jan_j" rel="me">
|
<link href="https://chaos.social/@jan_j" rel="me">
|
||||||
|
7040
package-lock.json
generated
7040
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
84
package.json
84
package.json
@ -1,41 +1,77 @@
|
|||||||
{
|
{
|
||||||
"name": "Website_Jan.su",
|
"name": "Website_Jan.su",
|
||||||
"description": "My personal website",
|
"description": "My personal website",
|
||||||
"version": "2.0.2",
|
"version": "2.1.0",
|
||||||
"author": "Jan Jastrow",
|
|
||||||
"license": "MIT",
|
|
||||||
"homepage": "https://jan.su",
|
"homepage": "https://jan.su",
|
||||||
"url": "",
|
"url": "",
|
||||||
"email": "jan@schwerkraftlabor.de",
|
"email": "jan@schwerkraftlabor.de",
|
||||||
"scripts": {
|
"author": "Jan Jastrow",
|
||||||
"dev": "gulp"
|
"engines": {
|
||||||
|
"node": ">=16",
|
||||||
|
"npm": ">=8"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"rimraf": "node_modules/.bin/rimraf"
|
||||||
},
|
},
|
||||||
"main": "gulpfile.js",
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.schwerkraftlabor.de/jan/Website_Jan.su"
|
"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": {
|
"devDependencies": {
|
||||||
"sass": "^1.49.7",
|
"autoprefixer": "*",
|
||||||
"gulp": "^4.0.2",
|
"browser-sync": "*",
|
||||||
"gulp-sass": "^5.1.0",
|
"concat": "*",
|
||||||
"gulp-concat": "^2.6.1",
|
"cssnano": "^6.0.0",
|
||||||
"gulp-livereload": "^4.0.2",
|
"npm-run-all": "*",
|
||||||
"gulp-notify": "^4.0.0",
|
"onchange": "*",
|
||||||
"gulp-plumber": "^1.2.1",
|
"postcss": "^8.4.21",
|
||||||
"gulp-postcss": "^9.0.1",
|
"postcss-cli": "*",
|
||||||
"gulp-rename": "^2.0.0",
|
"rimraf": "^4.4.1",
|
||||||
"merge2": "^1.4.1",
|
|
||||||
"rimraf": "^3.0.2",
|
|
||||||
"sanitize.css": "^13.0.0",
|
"sanitize.css": "^13.0.0",
|
||||||
"autoprefixer": "^10.4.2",
|
"sass": "^1.60.0",
|
||||||
"caniuse-lite": "^1.0.30001312",
|
"uglify-js": "^3.17"
|
||||||
"cssnano": "^5.0.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": [
|
"browserslist": [
|
||||||
"last 2 version",
|
"ff >= 10",
|
||||||
"> 2%",
|
"ie >= 11",
|
||||||
"android >= 5.0",
|
"Chrome >= 10",
|
||||||
"IE 11"
|
"iOS >= 10",
|
||||||
|
"Android >= 4",
|
||||||
|
"Safari >= 10"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
require('autoprefixer'),
|
||||||
|
require('cssnano')
|
||||||
|
],
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user