figwheel-main

figwheel-main http://figwheel.org
bhauman 2020-06-06T00:00:45.214800Z

OK so it works with 1.10.520 apparently

bhauman 2020-06-06T00:02:36.215100Z

yeah and it works with 1.10.764 as well

bhauman 2020-06-06T00:02:40.215300Z

hmmm

bhauman 2020-06-06T00:02:54.215500Z

wait nope

bhauman 2020-06-06T00:03:04.215700Z

its still 1.10.520

bhauman 2020-06-06T00:04:01.215900Z

yeah 764 works

bhauman 2020-06-06T00:04:41.216200Z

^{: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}}]}

bhauman 2020-06-06T00:14:02.216700Z

and then

bhauman 2020-06-06T00:14:26.217Z

^{: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}}]}

bhauman 2020-06-06T00:14:34.217200Z

that worked as well

bhauman 2020-06-06T00:20:15.219100Z

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

1😱
bhauman 2020-06-06T00:45:47.220Z

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

2🦜4🎉
bhauman 2020-06-06T00:49:53.221600Z

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

2020-06-06T12:20:32.222600Z

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

2020-06-06T12:20:42.223Z

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

2020-06-06T12:20:57.223500Z

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

bhauman 2020-06-06T14:46:36.224400Z

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

bhauman 2020-06-06T14:47:12.225100Z

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

1👍
2020-06-06T16:04:27.225800Z

Makes sense