tailwind updates, inkbunny listing stuff

This commit is contained in:
Dylan Knutson
2024-12-19 06:04:37 +00:00
parent a15e79a231
commit 29f671b41f
24 changed files with 876 additions and 105 deletions

35
bin/dev
View File

@@ -1,30 +1,11 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#!/usr/bin/env sh
def installed?(process)
IO.popen "#{process} -v"
rescue Errno::ENOENT
false
end
if gem list --no-installed --exact --silent foreman; then
echo "Installing foreman..."
gem install foreman
fi
def run(process)
system "#{process} start -f Procfile.dev"
rescue Errno::ENOENT
warn <<~MSG
ERROR:
Please ensure `Procfile.dev` exists in your project!
MSG
exit!
end
# Default to port 3000 if not specified
export PORT="${PORT:-3000}"
if installed? "overmind"
run "overmind"
elsif installed? "foreman"
run "foreman"
else
warn <<~MSG
NOTICE:
For this script to run, you need either 'overmind' or 'foreman' installed on your machine. Please try this script after installing one of them.
MSG
exit!
end
exec foreman start -f Procfile.dev --env /dev/null "$@"