aboutsummaryrefslogtreecommitdiff
path: root/.scripts/boil
diff options
context:
space:
mode:
authorMarvin Borner2020-05-15 16:14:35 +0200
committerMarvin Borner2020-05-15 16:14:35 +0200
commit462fe26ba6ee6850026e241980ac1267ed05cdcd (patch)
tree1d4ba5b5c68aa4f795e0ff06d0676ca4c5c24c17 /.scripts/boil
parentd7dc1e53a76e76fd14584d27386115c49c6be91d (diff)
Added boilerplate tool
Diffstat (limited to '.scripts/boil')
-rwxr-xr-x.scripts/boil18
1 files changed, 18 insertions, 0 deletions
diff --git a/.scripts/boil b/.scripts/boil
new file mode 100755
index 0000000..906c59a
--- /dev/null
+++ b/.scripts/boil
@@ -0,0 +1,18 @@
+#!/usr/bin/env sh
+
+mode="$1"
+name="$2"
+boilerplates="$HOME/.boilerplates"
+
+if [ "${mode}" = "" ] || [ "${name}" = "" ]; then
+ echo "Not enough parameters"
+ exit 1
+fi
+
+if [ "${mode}" = "clj" ]; then
+ lein new app "$name"
+ cp "$boilerplates/$mode/run" "$name"
+ rm -rf "$name/CHANGELOG.md" "$name/LICENSE" "$name/README.md" "$name/doc/"
+else
+ cp -r "$boilerplates/$mode" "$name" || echo "Something went wrong"
+fi