-
Notifications
You must be signed in to change notification settings - Fork 5
/
test_templates.sh
executable file
·61 lines (46 loc) · 1.03 KB
/
test_templates.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
PROJECT=testproject
cd clj
echo
echo "Installing Clojure template."
echo "----------------------------"
lein install
echo
echo "Creating project using Clojure template."
echo "----------------------------------------"
lein new quil $PROJECT
cd $PROJECT
echo
echo "Running Clojure project."
echo "------------------------"
lein run -m ${PROJECT}.core
echo
echo "Clojure project source."
echo "-----------------------"
less src/$PROJECT/core.clj
cd ../../
rm -rf clj/$PROJECT
cd cljs
echo
echo "Installing ClojureScript template."
echo "----------------------------------"
lein install
echo
echo "Creating project using ClojureScript template."
echo "----------------------------------------------"
lein new quil-cljs $PROJECT
cd $PROJECT
echo
echo "Building ClojureScript project."
echo "-------------------------------"
google-chrome http://localhost:3449/ &
lein figwheel
echo
echo "ClojureScript source."
echo "---------------------"
less src/$PROJECT/core.cljs
cd ../../
rm -rf cljs/$PROJECT
echo
echo "Done"
echo "----"