Skip to content

Commit 6968f5c

Browse files
committed
Add an example project
1 parent 01d34ff commit 6968f5c

File tree

6 files changed

+43
-0
lines changed

6 files changed

+43
-0
lines changed

template/bb.edn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{:deps {com.lambdaisland/launchpad {:mvn/version "RELEASE"}}}

template/bin/launchpad

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bb
2+
3+
('require '[lambdaisland.launchpad :as launchpad])
4+
5+
(launchpad/main {})
6+
7+
;; (launchpad/main {:steps (into [(partial launchpad/ensure-java-version 17)]
8+
;; launchpad/default-steps)})

template/deps.edn

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{;; This is a good place to depend on developer tooling, so you can keep that
2+
;; out of your sub-projects and have it all in one place
3+
:deps
4+
{djblue/portal {:mvn/version "0.29.1"}
5+
lambdaisland/kaocha {:mvn/version "1.69.1069"}
6+
vvvvalvalval/scope-capture {:mvn/version "0.3.3"}}
7+
8+
;; Monorepo setup with two subprojects, if you have a multi-repo setup then use
9+
;; paths like `"../proj1"`
10+
:aliases
11+
{:proj1 {:deps {com.example/proj1 {:local/root "proj1"}}}
12+
:proj2 {:deps {com.example/proj2 {:local/root "proj2"}}
13+
;; This assumes proj2 contains a shadow-cljs.edn with a build named
14+
;; `:frontend`, this will start the shadow-cljs watcher if the proj2
15+
;; alias is enabled
16+
:launchpad/shadow-build-ids [:frontend]}}}

template/deps.local.edn

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
;; This file is normally not checked in (and gitignored), but we're adding it
2+
;; here to show what it looks like
3+
4+
{;; regular deps.edn stuff will work in here
5+
:deps {}
6+
:aliases {}
7+
8+
;; but some extra keys are supported to influence launchpad itself
9+
:launchpad/aliases [:proj1] ; additional aliases, will be added to whatever
10+
; aliases you specify on the command line
11+
:launchpad/main-opts ["--emacs"] ; additional CLI flags, so you can encode your
12+
; own preferences
13+
:launchpad/shadow-build-ids [] ; which shadow builds to start, although it may
14+
; be preferable to configure this as part of
15+
; specific aliases in your main deps.edn
16+
}

template/proj1/deps.edn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

template/proj2/deps.edn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)