-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fable 1 support #20
Fable 1 support #20
Conversation
Ok, I close #19 👍 Things to do:
|
I'm working on the build |
@alfonsogarciacaro what now? |
@alfonsogarciacaro how is it supposed to work now? |
@forki I was just running Fable/Rollup and React Native in two different terminals:
Remember to restore dependencies first :) |
run fableTool "--verbose --symbols PRODUCTION" "" how would this look like? |
In Fable 1.0 it's the fable-loader which sends the symbols/defineconstants to the Fable daemon. The tricky part is Webpack won't accept custom arguments (I think). Right now what we usually do is to detect if the The |
good but I need to pass compiler directives as well |
Yes, you need to do it from the webpack.config.js (rollup.config.js in this case). It's not possible to pass compiler directives directly to Fable daemon because in theory the same daemon can be used to compile multiple projects with different configurations. Anyways, don't worry, I'll do it later 👍 |
seems calling yarn install hangs for me |
yarn install v0.23.2 |
Bad karma ;) Maybe try updating yarn or use npm 5 ( |
I've made some changes in #19, maybe you can rebase/merge them to this PR?
|
Apparently the latest commits are not showing in #19 PR as it's closed, you need to check branch |
# Conflicts: # paket.lock
wtf? stying like this forever |
running |
@alfonsogarciacaro now I'm lost: |
@forki I think I ran into this once, when I tried to fix fsprojects/FAKE#1461, at least I had the same stack trace. Node.js seems to have a problem with the Does the build script output any Unicode characters? I triggered this crash when printing the copyright character to the console. |
which is probably a real error |
For the record, in my tests I was using the |
crazy! I got it working. Only one issue: Fable doesn't go to watch mode. Ideas? |
Call |
ok that works. Fable is in watch mode and runs on device. two remaining issue: a) ionide is unhappy and show lots of errors /cc @Krzysztof-Cieslak |
You can revert 94fffb5. |
@forki atm ionide and fsac and sdk are solid :D
after adding gif is wip of new restore if not already + progress indicators for that (at end more restore asked, because fable doesnt do project references to these otherwise np, i'll take that in consideration too for ionide) |
This reverts commit 94fffb5.
ok ionide fixed with help of @enricosada and @Krzysztof-Cieslak |
so last thing on the list: compiler directives |
ok compiler directives work as well. yay! one last thing:
it seems that a compiler error doesn't make this quit with exit code <> 0 - therefor build continues. @alfonsogarciacaro ideas? |
This is tricky. Before Fable 1.0, compilation would stop after encountering the first error. I changed this so you could get multiple errors and show them in the IDE (see here). For bundler it's also important not to stop compilation, because then file dependencies won't be listed and thus won't be watched for changes either. I think this is working fine with Webpack, but Rollup had a problem because errors would stop compilation so I had to report everything as a warning. Probably we can work around this by adding a |
yes I only need to let it fail on "normal" build withoutt watch, But we need to make it so otherwise CI would just go on and create corrupt apk |
I've publish rollup-plugin-fable 1.0.6, can you please update and change this line as follows? plugins: [fable({extra: { failOnError: true })], |
seems to work! thx |
subsumes #19