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 .shadow-cljs
.nrepl-* .nrepl-*
package-lock.json
node_modules/
.calva .calva
*.iml *.iml
.idea/ .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" {:source-paths ["src/main/cljc"
"src/main/cljs" "src/main/cljs"
"src/test/cljc"] "src/test/cljc"]
:dependencies [[aero "1.1.6"] :dependencies [[aero "1.1.6"]]
[cljsjs/js-yaml "4.0.0-0"]]
:builds {:test {:target :node-test :builds {:test {:target :node-test
:output-to "target/node-tests.js" :output-to "target/node-tests.js"
:autorun true :autorun true

View file

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