Setup static file pipeline

This commit is contained in:
Jake Howard 2022-06-10 09:13:00 +01:00
parent 56112a9655
commit c1fdd81f86
Signed by: jake
GPG key ID: 57AFB45680EDD477
9 changed files with 2582 additions and 14 deletions

View file

@ -4,7 +4,15 @@
"description": "",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build:js": "esbuild static/src/js/*.js --bundle --outdir=static/build/js --minify --sourcemap",
"build:css": "sass --style=compressed static/src/scss:static/build/css",
"build": "npm-run-all build:*"
},
"author": "Jake Howard"
"author": "Jake Howard",
"devDependencies": {
"esbuild": "^0.14.43",
"npm-run-all": "^4.1.5",
"sass": "^1.52.3"
}
}