Comments (10)
We was having the same problem for fable-arch.
If you upgrade Fake to a certain version, them it will look for npm.bat
in your PATH
variable.
Here is the commit fixing the problem for Fable-arch: fable-compiler/fable-arch@9aaf39d
from elmish.
That's true, the build infrastructure is weak ATM and it doesn't build on Windows.
Partially because I use OSX and partially because I don't believe paket should be installing npm as my local dependency. Also, I've switched a while ago to yarn, so even if it worked, it wouldn't be doing a proper job, i.e. a reproducible build.
Having said that, running yarn build
in each of src
subfolders (starting with elmish
) should build on Windows (it did, last time I tried).
Thanks for bringing it to my attention again, I need to have a better build script and Travis/AppVeyor to go with it.
from elmish.
Thanks @et1975 and @MangelMaxime . Yes, I also do not believe npm
should be installed locally. I have npm
installed, but for some reason it is not detected by FAKE
(?)
Anyway in samples it seems cp
is used so it would not run anyway even with yarn
I assume.
from elmish.
cp is used
Ah, yes... unless cp
is an alias in PowerShell? Can't wait for linux subsystem to become mainstream on Windows :)
Anyway, even as it is, it's easy to fix - since all the web samples use webpack2 it would be fairly straightforward to either pack the styles from the node_modules
or add a plugin to do the copying.
from elmish.
OK, thanks for the info will have a look at that next week.
from elmish.
If you check my fork, you'll see I've switched the build to yarn
, it builds on AppVeyor and TravisCI now. Got into a weird Fable build problem trying to consolidate dev dependencies, but fake script is fine now.
The samples take a long time to build, so I'll keep them as an optional target. Still would like to see them building on Windows, so I'd appreciate the effort there!
from elmish.
The elmish projects should build now (see the updated readme).
from elmish.
build.cmd
without parameters works now, great, thank you @et1975!
samples do not build; it is not only matter of cp
, there are other path-related issues I think.
Will need to look at this more
from elmish.
that was an error in [email protected], please upgrade to 0.8.2.
... I should unlist it.
from elmish.
Confirm, after upgrade it works. Now I try to test the react native samples on Windows too, but I think this is a different story so closing here, thanks again!
from elmish.
Related Issues (20)
- Expose Program module functions as C#/VB compatible extension methods HOT 6
- Subscribe to DOM events via `Program.withSubscription` HOT 2
- How to pass an external event into a program? HOT 30
- Zaid's fromAsync Cmd HOT 3
- Ability to stop subscriptions HOT 9
- Cmd helpers for checking success by option HOT 4
- Double subscribe when dispatching during sub startup
- None of the duplicate subscriptions should be started HOT 12
- Subscription doc updates for v4
- Is there an expected time to get to a stable version of v4 HOT 2
- Elmish for WebSharper apps HOT 4
- Question about FSharp.Core version HOT 4
- Cmd.OfFunc.whatever HOT 9
- Docs: String.replicate piece raises an exception HOT 1
- Remove redundant Subscription trace logs HOT 6
- Replacement with ofEffect for ofSub not working as in v3? HOT 3
- Proposal: port Elm's virtual dom to work with Feliz HOT 4
- [Question] Elmish way of disposing component dependencies HOT 1
- Suggestion: Cmd.OfTask.attempt with untyped Task HOT 1
- How to dispose of `Cmd.ofEffect` events handler? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elmish.