Update build scripts, add gitignore, and update package.json

This commit is contained in:
dertyp7
2024-01-18 21:33:09 +01:00
parent ec3596bd4b
commit eb5ad33531
7 changed files with 75 additions and 2456 deletions

View File

@@ -1,6 +1,4 @@
#!/bin/sh #!/bin/sh
npm install node-sass --save-dev
# Remove old dist folder # Remove old dist folder
rm -rf ./dist rm -rf ./dist

View File

@@ -1,6 +1,16 @@
#!/bin/sh #!/bin/bash
bash clean_dev_env.sh
./build.sh ./build.sh
# cp files from dist to root folder and keep track of the files in a .dev_files_to_delete file # Copy files from dist folder to root folder
find ./dist -type f -exec cp {} ./ \; -exec echo {} >> .dev_files_to_delete \; cp -r dist/* .
echo "# START AUTOGENERATED" >> .gitignore
for file in dist/*; do
echo "${file#dist/}" >> .gitignore
done
echo "# END AUTOGENERATED" >> .gitignore

24
clean_dev_env.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bsh
# Extract lines between the comment block
sed -n '/# START AUTOGENERATED/,/# END AUTOGENERATED/p' .gitignore > temp.txt
# Remove the comment lines
sed -i '/# START AUTOGENERATED/d' temp.txt
sed -i '/# END AUTOGENERATED/d' temp.txt
# Read each line in the temp file
while IFS= read -r line
do
# Delete the file
rm -f "$line"
done < temp.txt
# Remove the temp file
rm -f temp.txt
# Remove the comment block from .gitignore
sed -i '/# START AUTOGENERATED/,/# END AUTOGENERATED/d' .gitignore
# Exit the script
exit 0

2409
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,41 +1,31 @@
{ {
"name": "betterteamspeaktheme", "name": "betterteamspeaktheme",
"description": "Better TeamSpeak5 Theme", "description": "Better TeamSpeak5 Theme",
"version": "1.0.0", "version": "1.0.0",
"identifier": "de.dertyp.betterteamspeaktheme", "identifier": "de.dertyp.betterteamspeaktheme",
"engines": { "engines": {
"teamspeak": 1 "teamspeak": 1
}, },
"homepage": "https://community.teamspeak.com", "homepage": "https://community.teamspeak.com",
"docsUrl": "https://community.teamspeak.com", "docsUrl": "https://community.teamspeak.com",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/DerTyp7/better-teamspeak-theme.git" "url": "https://github.com/DerTyp7/better-teamspeak-theme"
}, },
"image": "logo.png", "image": "logo.png",
"license": "MIT", "license": "MIT",
"author": "dertyp7 <dertyp7@tealfire.de> (https://tealfire.de)", "author": "dertyp7 <dertyp7@tealfire.de> (https://tealfire.de)",
"community": { "community": {
"server": "tealfire.de" "server": "tealfire.de"
}, },
"content": { "content": {
"themes": [ "themes": [
{ {
"name": "BetterTeamSpeakTheme", "name": "BetterTeamSpeakTheme",
"source": "BetterTeamSpeakTheme.css", "source": "BetterTeamSpeakTheme.css",
"apiVersion": 1, "apiVersion": 1,
"image": "logo.png" "image": "logo.png"
} }
] ]
}, }
"bugs": {
"url": "https://github.com/DerTyp7/better-teamspeak-theme/issues"
},
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"node-sass": "^9.0.0"
}
} }

8
run_dev.sh Normal file
View File

@@ -0,0 +1,8 @@
trap "bash clean_dev_env.sh" INT
npx nodemon -w ./src --ext scss --exec sh -- build_dev.sh
bash clean_dev_env.sh

View File

@@ -1,5 +1,3 @@
.tsv-text-truncate{ .tsv-text-truncate{
.test{ color :red !important;
counter-reset: line;
}
} }