require js-yaml now works

This commit is contained in:
jem 2021-02-22 09:25:26 +01:00
parent 0b01309b43
commit 96e564e940
4 changed files with 27 additions and 3 deletions

3
.gitignore vendored
View file

@ -5,8 +5,11 @@ target/
.shadow-cljs
.nrepl-*
package-lock.json
node_modules/
.calva
*.iml
.idea/

22
package.json Normal file
View file

@ -0,0 +1,22 @@
{
"name": "k8s-mastodon-bot",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot/issues"
},
"homepage": "https://gitlab.com/domaindrivenarchitecture/k8s-mastodon-bot#readme",
"dependencies": {
"js-yaml": "^4.0.0"
}
}

View file

@ -1,8 +1,7 @@
{:source-paths ["src/main/cljc"
"src/main/cljs"
"src/test/cljc"]
:dependencies [[aero "1.1.6"]
[cljsjs/js-yaml "4.0.0-0"]]
:dependencies [[aero "1.1.6"]]
:builds {:test {:target :node-test
:output-to "target/node-tests.js"
:autorun true

View file

@ -1,7 +1,7 @@
(ns dda.k8s-mastodon-bot.yaml
(:require
[aero.core :as aero]
;;[jsyaml :as yaml]
["js-yaml" :as yaml]
))
(defn from-string [input]