0.8.2 • Published 4 years ago

@atomist/clj-editors v0.8.2

Weekly downloads
117
License
Apache-2.0
Repository
github
Last release
4 years ago

packaging ClojureScript in NPM

We build a node module @atomist/clj-editors here. This allows us to construct clojure editors using rewrite-cljs. A Node.js application, like an Atomist automation client, can now easily package clojure editing functions into a typescript application.

This also has a simple command line to manage the clojure-sdm credentials. Install this module with:

npm install @atomist/clj-editors@0.3.8 -g

then

sdm-vault --help

to manage maps encrypted with goog.crypt.Aes keys.

clj-editors Usage

Add the dependency to your application's package.json file.

{
  "dependencies": {
    ...
    "@atomist/clj-editors": "^0.3.8",
    ...
   },
   ...
}

npm link

This module works with npm link so we can co-develop these editors alongside the sdm-pack-clojure. These editors are pretty easy to unit test, and testing from a Node.js repl works quite well!

Development

Compiling

npm run compile

Repl

npm run repl

This will give you a socket repl running on port 7777, so you can connect emacs or intellij and evaluate the cljs forms on the fly. It's a pretty good workflow, and contains clojure.test (although it's in cljs.test here). I haven't gotten it working with nrepl so it's not quite as smooth as working with a Java repl but it can do the main things:

  • evaluate forms by passing them through cljs.repl, whether they are compiled to .js
  • .js expressions are sent to a node.js process running alongside the cljs.repl
  • (deftest) forms work great so you can code and evaluate unit tests using our standard workflow.

Unit Tests

Run cljs.test unit tests using npm:

npm run test

Publish

It's just normal npm publish for the rest.

sdm-vault

This project also has a simple command line to manipulate vault.txt files.

0.8.2

5 years ago

0.8.1

5 years ago

0.7.5

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.9

5 years ago

0.6.8

5 years ago

0.6.7

5 years ago

0.6.6

5 years ago

0.6.5

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.10

6 years ago

0.4.9

6 years ago

0.4.8

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.10

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago