first commit

This commit is contained in:
Auric Vente
2024-08-01 22:12:44 -06:00
commit 0bcefa0b61
64 changed files with 13272 additions and 0 deletions

10
utils/count.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Count the total number of lines
cd server/
echo "Python:"
wc -l app.py procs.py db.py bundle.py | awk 'END {print $1}'
cd static/dashboard/js/main/
echo "Javascript:"
find . -type f -name "*.js" -exec wc -l {} \; | awk '{t+=$1} END {print t}'

13
utils/tag.rb Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env ruby
require "git"
require "json"
file = File.read("server/manifest.json")
manifest = JSON.parse(file)
version = manifest["version"]
name = "v#{version}"
repo = Git.open(".")
repo.add_tag(name)
repo.push("origin", name)
puts "Created tag: #{name}"