Fork me on GitHub
#figwheel-main
<
2020-06-06
>
bhauman00:06:45

OK so it works with 1.10.520 apparently

bhauman00:06:36

yeah and it works with 1.10.764 as well

bhauman00:06:04

its still 1.10.520

bhauman00:06:01

yeah 764 works

bhauman00:06:41

^{:watch-dirs ["test" "src"]
  :css-dirs ["resources/public/css"]
  :auto-testing true}
{:main extra-main-help.core
 :npm-deps false
 :infer-externs true
 :foreign-libs [{:file "dist/index.bundle.js"
                 :provides ["moment"]
                 :global-exports {moment Moment}}]}

bhauman00:06:26

^{:watch-dirs ["test" "src"]
  :css-dirs ["resources/public/css"]
  :extra-main-files {:testing {:main extra-main-help.test-runner}}}
{:main extra-main-help.core
 :npm-deps false
 :infer-externs true
 :foreign-libs [{:file "dist/index.bundle.js"
                 :provides ["moment"]
                 :global-exports {moment Moment}}]}

bhauman00:06:34

that worked as well

bhauman00:06:15

oh geez, I think I’m seeing things better now, you aren’t supposed to use extra-mains when you are trying to run tests on the command line

😱 4
bhauman00:06:47

figwheel.main 0.2.8 has been released, this adds build cleaning and fixes a major bug in 0.2.7 https://github.com/bhauman/figwheel-main/blob/master/CHANGES.md I have also updated the figwheel NPM docs to reflect recent changes https://figwheel.org/docs/npm.html

parrot 8
🎉 16
bhauman00:06:53

I still have to write the docs on using :advanced compilation with the new :bundle target.

mikerod12:06:32

Thanks @bhauman I didn’t know about the no command line thing.

mikerod12:06:42

So extra mains not good for like a CI build tests I guess

mikerod12:06:57

It’s ok. I can just use separate build profile for it

bhauman14:06:36

extra-mains is only so that you can have two builds run in parallel cheaply

bhauman14:06:12

as it only emits one extra :output-to file that points to a different main

👍 4
mikerod16:06:27

Makes sense