mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 20:39:28 +00:00
Updated plantuml, changed static/ to public/, and added new scripts to package.json
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
static/assets/diagrams/
|
public/assets/diagrams/
|
||||||
|
|
||||||
coverage/
|
coverage/
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,9 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest"
|
"test": "jest",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"diag": "utility/uml/generateDiagrams.ksh"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
targetdir="$(pwd)/static/assets/diagrams"
|
targetdir="$(pwd)/public/assets/diagrams"
|
||||||
|
umljar="plantuml-1.2022.0.jar"
|
||||||
|
|
||||||
rm -rf "$targetdir/*"
|
rm -rf "$targetdir/*"
|
||||||
cp $(pwd)/writeup/diagrams/*.png $targetdir
|
cp $(pwd)/writeup/diagrams/*.png $targetdir
|
||||||
@@ -8,6 +9,6 @@ cp $(pwd)/writeup/diagrams/*.png $targetdir
|
|||||||
for diag in $(find . -path "node_modules" -prune -o -name "*.puml" -print); do
|
for diag in $(find . -path "node_modules" -prune -o -name "*.puml" -print); do
|
||||||
ofilename="$(basename $diag .puml).png"
|
ofilename="$(basename $diag .puml).png"
|
||||||
|
|
||||||
java -jar "utility/uml/plantuml-1.2021.13.jar" $diag -o $targetdir
|
java -jar "utility/uml/$umljar" $diag -o $targetdir
|
||||||
echo "Compiled $diag to $targetdir/$ofilename"
|
echo "Compiled $diag to $targetdir/$ofilename"
|
||||||
done
|
done
|
||||||
Binary file not shown.
Reference in New Issue
Block a user