Skip to content

Commit

Permalink
Add information about ClojureScript setup
Browse files Browse the repository at this point in the history
  • Loading branch information
avli committed Sep 23, 2017
1 parent 69fecc7 commit 4d33038
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Version](https://vsmarketplacebadge.apphb.com/version/avli.clojure.svg)](https://marketplace.visualstudio.com/items?itemName=avli.clojure)

[Clojure](https://clojure.org) support for Visual Studio Code.
[Clojure](https://clojure.org) and [ClojureScript](https://clojurescript.org) support for Visual Studio Code.

I'm trying, believe me!

Expand Down Expand Up @@ -32,6 +32,20 @@ Make sure that [Leiningen](https://leiningen.org/) is installed on your machine,
* Linting
* [Debug](https://github.com/indiejames/vscode-clojure-debug)

## ClojureScript Project Setup

The extension has the experimental support of ClojureScript. The example of a ClojureScript project setup can be found [here](https://github.com/avli/clojurescript-example-project). Checkout the project `profile.clj` file to learn what dependencies you need.

The embedded nREPL **does not** support ClojureScript, consider to use the "clojureVSCode.autoStartNRepl" setting. You will need to run an nREPL manually and execute the following commands inside it:

```clojure
(require 'cljs.repl.node)
(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
```

After that you can connect to the nREPL using the "Clojure: Connect to a running nREPL" command. Now you can evaluate you ClojureScript code and use the other extension facilities.


## How to Contribute

Open an [issue](https://github.com/avli/clojureVSCode/issues) if you want to propose new features and ideas or to report bugs. If you want to help with some code and looking for a place to start, please check out the [How to Contribute](https://github.com/avli/clojureVSCode/wiki/Contribution) wiki page.
Expand Down

0 comments on commit 4d33038

Please sign in to comment.