This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-02
Channels
- # announcements (2)
- # beginners (69)
- # boot (1)
- # cider (35)
- # clara (1)
- # cljs-dev (1)
- # clojure (40)
- # clojure-spec (11)
- # clojure-uk (8)
- # clojurescript (9)
- # cursive (1)
- # datomic (5)
- # figwheel-main (25)
- # fulcro (64)
- # jobs (2)
- # jukebox (1)
- # kaocha (3)
- # off-topic (7)
- # pathom (39)
- # planck (5)
- # random (1)
- # re-frame (11)
- # reagent (8)
- # shadow-cljs (58)
- # test-check (41)
- # vim (13)
Does cljs only support using npm deps through :npm-deps or can tools like figwheel-main support using dependencies from package.json?
In vanilla Cljs, you need both, only shadow allows you to specify them only in package.json
Ah I see, thanks for clearing that up.
https://github.com/kwladyka/form-validator-cljs/tree/doc here you have example how to use npm deps with figwheel-main
https://github.com/kwladyka/form-validator-cljs/blob/doc/src/js/index.js this is the most important file to understand how it works
Personally I recommend do it as I do it instead of :npm-deps
, but it is my opinion 🙂
> Declare NPM dependencies. A map of NPM package names to the desired > versions or the Boolean value false. If false then any existing > node_modules directory will not be indexed nor used. See also > :install-deps. > :npm-deps {:left-pad “1.1.3” }
Hahahah very clever, the infamous left-pad.