mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
remove inline-css-cli build dep
unnecessary (inline-source-cli already includes its functionality) and a dependency of it had a high-severity CVE (wouldn't have affected anyone, but w/e).
This commit is contained in:
parent
b538922c05
commit
0ea5c7fdc0
@ -28,9 +28,8 @@ before:
|
|||||||
- npx esbuild --bundle ts/crash.ts --outfile=./data/crash.js --minify
|
- npx esbuild --bundle ts/crash.ts --outfile=./data/crash.js --minify
|
||||||
- cp html/crash.html data/
|
- cp html/crash.html data/
|
||||||
- npx uncss data/crash.html --csspath web/css --output data/bundle.css
|
- npx uncss data/crash.html --csspath web/css --output data/bundle.css
|
||||||
- bash -c 'cd data; npx inline-css-cli -i crash.html -o crash.html'
|
|
||||||
- rm data/bundle.css
|
|
||||||
- npx inline-source --root data data/crash.html data/crash.html
|
- npx inline-source --root data data/crash.html data/crash.html
|
||||||
|
- rm data/bundle.css
|
||||||
- mv data/crash.html data/html/
|
- mv data/crash.html data/html/
|
||||||
- go get -u github.com/swaggo/swag/cmd/swag
|
- go get -u github.com/swaggo/swag/cmd/swag
|
||||||
- swag init -g main.go
|
- swag init -g main.go
|
||||||
|
3
Makefile
3
Makefile
@ -112,9 +112,8 @@ bundle-css:
|
|||||||
inline:
|
inline:
|
||||||
cp html/crash.html $(DATA)/crash.html
|
cp html/crash.html $(DATA)/crash.html
|
||||||
npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css
|
npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css
|
||||||
bash -c 'cd $(DATA); npx inline-css-cli -i crash.html -o crash.html'
|
|
||||||
rm $(DATA)/bundle.css
|
|
||||||
npx inline-source --root $(DATA) $(DATA)/crash.html $(DATA)/crash.html
|
npx inline-source --root $(DATA) $(DATA)/crash.html $(DATA)/crash.html
|
||||||
|
rm $(DATA)/bundle.css
|
||||||
|
|
||||||
copy:
|
copy:
|
||||||
$(info copying fonts)
|
$(info copying fonts)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" type="text/css" href="bundle.css">
|
<link inline rel="stylesheet" type="text/css" href="bundle.css">
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
<title>Crash report</title>
|
<title>Crash report</title>
|
||||||
</head>
|
</head>
|
||||||
|
878
package-lock.json
generated
878
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,6 @@
|
|||||||
"a17t": "^0.4.0",
|
"a17t": "^0.4.0",
|
||||||
"browserslist": "^4.16.6",
|
"browserslist": "^4.16.6",
|
||||||
"esbuild": "^0.8.57",
|
"esbuild": "^0.8.57",
|
||||||
"inline-css-cli": "^0.0.1",
|
|
||||||
"inline-source-cli": "^2.0.0",
|
"inline-source-cli": "^2.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mjml": "^4.8.0",
|
"mjml": "^4.8.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user