Simplify frontend assests and build steps

We just write the files directly in the public dir
Then change the npm scripts to lint and compress them directly
This commit is contained in:
Jonny Barnes 2023-12-21 17:57:48 +00:00
commit ec17f65107
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -5,41 +5,17 @@
"repository": "https://github.com/jonnybarnes/jonnybarnes.uk",
"license": "CC0-1.0",
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@csstools/postcss-oklab-function": "^3.0.8",
"autoprefixer": "^10.4.16",
"babel-loader": "^9.1.3",
"browserlist": "^1.0.1",
"compression-webpack-plugin": "^10.0.0",
"css-loader": "^6.8.1",
"cssnano": "^6.0.2",
"eslint": "^8.56.0",
"eslint-webpack-plugin": "^4.0.1",
"mini-css-extract-plugin": "^2.7.6",
"postcss": "^8.4.32",
"postcss-combine-duplicated-selectors": "^10.0.2",
"postcss-combine-media-query": "^1.0.1",
"postcss-import": "^15.1.0",
"postcss-loader": "^7.3.3",
"postcss-nesting": "^12.0.2",
"style-loader": "^3.3.3",
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-webpack-plugin": "^4.1.1",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
"stylelint": "^16.0.2",
"stylelint-config-standard": "^35.0.0"
},
"scripts": {
"dev": "webpack --mode=development",
"prod": "webpack --mode=production"
"eslint": "eslint public/assets/js/*.js",
"stylelint": "stylelint public/assets/css/*.css",
"lint": "npm run eslint && npm run stylelint",
"compress": "./scripts/compress.sh",
"build": "npm run lint && npm run compress"
},
"browserslist": [
"last 2 versions",
"> 1%",
"not IE 11",
"not IE_Mob 11"
],
"dependencies": {
"@11ty/is-land": "^4.0.0",
"@zachleat/snow-fall": "^1.0.2"