Skip to content

Commit

Permalink
Add back (fixed) deps.edn + shadow-cljs config
Browse files Browse the repository at this point in the history
Fixes #1270
Fixes #1253 (the proper way)
  • Loading branch information
PEZ committed Aug 25, 2021
1 parent 75426ed commit 8caf18f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changes to Calva.

## [Unreleased]

## [2.0.208] - 2021-08-09
- [Add back jack-in/connect config `deps.edn + shadow-cljs`](https://github.com/BetterThanTomorrow/calva/issues/1270)

## [2.0.209] - 2021-08-17
- Fix [Statusbar buttons hard to see with light themes](https://github.com/BetterThanTomorrow/calva/issues/1264)

Expand Down
16 changes: 14 additions & 2 deletions src/nrepl/connectSequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ const leiningenDefaults: ReplConnectSequence[] =
projectType: ProjectTypes.Leiningen,
cljsType: CljsTypes["Figwheel Main"]
},
{
name: "Leiningen + shadow-cljs",
projectType: ProjectTypes.Leiningen,
cljsType: CljsTypes["shadow-cljs"],
nReplPortFile: [".shadow-cljs", "nrepl.port"]
},
{
name: "Leiningen + ClojureScript built-in for browser",
projectType: ProjectTypes.Leiningen,
Expand Down Expand Up @@ -91,6 +97,12 @@ const cljDefaults: ReplConnectSequence[] =
projectType: ProjectTypes["deps.edn"],
cljsType: CljsTypes["Figwheel Main"]
},
{
name: "deps.edn + shadow-cljs",
projectType: ProjectTypes["deps.edn"],
cljsType: CljsTypes["shadow-cljs"],
nReplPortFile: [".shadow-cljs", "nrepl.port"]
},
{
name: "deps.edn + ClojureScript built-in for browser",
projectType: ProjectTypes["deps.edn"],
Expand Down Expand Up @@ -163,8 +175,8 @@ const defaultCljsTypes: { [id: string]: CljsTypeConfig } = {
isStarted: false,
// isReadyToStartRegExp: /To quit, type: :cljs\/quit/,
connectCode: {
build: `(shadow.cljs.devtools.api/nrepl-select %BUILD%)`,
repl: `(shadow.cljs.devtools.api/%REPL%)`
build: `(do (require 'shadow.cljs.devtools.api) (shadow.cljs.devtools.api/nrepl-select %BUILD%))`,
repl: `(do (require 'shadow.cljs.devtools.api) (shadow.cljs.devtools.api/%REPL%))`
},
shouldOpenUrl: false,
isConnectedRegExp: /To quit, type: :cljs\/quit/
Expand Down

0 comments on commit 8caf18f

Please sign in to comment.