mirror of
https://github.com/DerTyp7/better-teamspeak-theme.git
synced 2025-10-29 12:42:09 +01:00
Update build scripts, add gitignore, and update package.json
This commit is contained in:
2
build.sh
2
build.sh
@@ -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
|
||||||
|
|
||||||
|
|||||||
16
build_dev.sh
16
build_dev.sh
@@ -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
24
clean_dev_env.sh
Normal 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
2409
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -10,7 +10,7 @@
|
|||||||
"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",
|
||||||
@@ -27,15 +27,5 @@
|
|||||||
"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
8
run_dev.sh
Normal 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
.tsv-text-truncate{
|
.tsv-text-truncate{
|
||||||
.test{
|
color :red !important;
|
||||||
counter-reset: line;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user