|
|
@ -20,22 +20,24 @@ type Project struct {
|
|
20
|
20
|
type Commands map[string]string
|
|
21
|
21
|
|
|
22
|
22
|
var ProjectTypes = []*Project{
|
|
23
|
|
&Project{"clojure/leiningen", Commands{"run": "lein run", "test": "lein test"}, clojureLeiningen},
|
|
24
|
|
&Project{"docker/fig", Commands{"run": "fig up"}, dockerFig},
|
|
25
|
|
&Project{"docker/default", Commands{}, dockerDefault},
|
|
|
23
|
&Project{"clojure/leiningen", Commands{"build": "lein uberjar", "run": "lein run", "test": "lein test"},
|
|
|
24
|
clojureLeiningen},
|
|
|
25
|
&Project{"docker/fig", Commands{"build": "fig build", "run": "fig up"}, dockerFig},
|
|
|
26
|
&Project{"docker/default", Commands{"build": "docker build ."}, dockerDefault},
|
|
26
|
27
|
&Project{"executable", Commands{"run": "{file}"}, executableDefault},
|
|
27
|
28
|
&Project{"go/default", Commands{"build": "go build {file}", "run": "go build $(basename {file}) && ./$(basename {file} .go)"},
|
|
28
|
29
|
goDefault},
|
|
29
|
30
|
&Project{"java/maven", Commands{"build": "mvn compile", "test": "mvn compile test"}, javaMaven},
|
|
30
|
|
&Project{"javascript/npm", Commands{}, javascriptNpm},
|
|
|
31
|
&Project{"javascript/npm", Commands{"build": "npm install", "test": "npm test"}, javascriptNpm},
|
|
31
|
32
|
&Project{"javascript/meteor", Commands{"run": "meteor"}, javascriptMeteor},
|
|
32
|
33
|
&Project{"javascript/default", Commands{"run": "node {file}"}, javascriptDefault},
|
|
33
|
|
&Project{"python/django", Commands{}, pythonDjango},
|
|
|
34
|
&Project{"python/django", Commands{"build": "python manage.py syncdb", "run": "python manage.py runserver",
|
|
|
35
|
"test": "python manage.py test"}, pythonDjango},
|
|
34
|
36
|
&Project{"python/default", Commands{"run": "python {file}"}, pythonDefault},
|
|
35
|
37
|
&Project{"ruby/rails", Commands{"run": "rails server", "test": "bundle exec rake test"}, rubyRails},
|
|
36
|
|
&Project{"ruby/rake", Commands{"run": "rake"}, rubyRake},
|
|
|
38
|
&Project{"ruby/rake", Commands{"run": "rake", "test": "rake test"}, rubyRake},
|
|
37
|
39
|
&Project{"ruby/default", Commands{"run": "ruby {file}"}, rubyDefault},
|
|
38
|
|
&Project{"make", Commands{"run": "make"}, makeDefault},
|
|
|
40
|
&Project{"make", Commands{"run": "make", "test": "make test"}, makeDefault},
|
|
39
|
41
|
&Project{"procfile", Commands{}, procfileDefault},
|
|
40
|
42
|
}
|
|
41
|
43
|
|