From 1043077dc944156fe54351af44aa3b94ed4f8360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Str=C3=B6mberg?= Date: Sun, 15 Mar 2020 13:49:57 +0100 Subject: [PATCH] Update cljs_calva_settings.json These changes are made: 1. `"cljsType": "none"` added to backend only jack-in. **The lack of this is today stopping jack-in in Calva**. 1. Custom commands added for starting the system and reloading the backend code. When the user invokes this in Calva (`ctrl+alt .`) he will get a prompt with the two commands. Given how this works in VS Code, reloading the Clojure code is now this key sequence: `ctrl+alt+. 2 enter`. --- .../links/cljs_calva_settings.json | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/lib/edge-app-template/links/cljs_calva_settings.json b/lib/edge-app-template/links/cljs_calva_settings.json index 32b00b25..2c9b60cb 100644 --- a/lib/edge-app-template/links/cljs_calva_settings.json +++ b/lib/edge-app-template/links/cljs_calva_settings.json @@ -1,17 +1,32 @@ // This file is a symlink to an Edge-wide file, if you'd like to make a change // to only your project, copy it into your project before modifying it. { - "calva.customCljsRepl": { - "name": "Edge Figwheel Main", - "startCode": "(do (require 'dev-extras) (dev-extras/go) (println \"Edge Figwheel Main started\") ((resolve 'dev-extras/cljs-repl)))", - "tellUserToStartRegExp": "Edge Figwheel Main started", - "printThisLineRegExp": "\\[Edge\\]|Open URL", - "connectedRegExp": "To quit, type: :cljs/quit" - }, + "calva.customREPLCommandSnippets": [ + { + "name": "Start Edge Development System", + "repl": "clj", + "ns": "dev", + "snippet": "(go)" + }, + { + "name": "Reload Clojure Code", + "repl": "clj", + "ns": "dev", + "snippet": "(reset)" + } + ], "calva.replConnectSequences": [ { "name": "Edge backend only", - "projectType": "Clojure CLI" + "projectType": "Clojure CLI", + "cljsType": "none", + "menuSelections": { + "cljAliases": [ + "dev", + "build", + "dev/build" + ] + } }, { "name": "Edge backend + frontend",