Skip to content
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

Add debugger #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": "fable-splitter -c splitter.config.js --define RELEASE",
"start": "fable-splitter -c splitter.config.js -w --define DEBUG",
"compile-for-test": "fable-splitter -c splitter.config.js --define TEST",
"cold-start": "fable-splitter -c splitter.config.js --define DEBUG"
"cold-start": "fable-splitter -c splitter.config.js --define DEBUG",
"remotedev": "remotedev --hostname=localhost --port=8000"
},
"dependencies": {
"buffer": "5.0.8",
Expand All @@ -18,6 +19,7 @@
"devDependencies": {
"appium": "1.7.2",
"babel-core": "6.26.0",
"fable-splitter": "0.1.21"
"fable-splitter": "0.1.21",
"remotedev-server": "^0.2.4"
}
}
1 change: 1 addition & 0 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ nuget Fable.PowerPack
nuget Fable.React
nuget Fable.React.Native
nuget Fable.Elmish
nuget Fable.Elmish.Debugger
nuget Fable.Elmish.React
nuget Fable.Elmish.HMR
nuget Fable.Import.Browser
Expand Down
4 changes: 4 additions & 0 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ NUGET
Fable.Core (>= 1.2.4) - restriction: >= netstandard1.6
Fable.PowerPack (>= 1.3) - restriction: >= netstandard1.6
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
Fable.Elmish.Debugger (1.0.1)
Fable.Core (>= 1.3.1) - restriction: >= netstandard1.6
Fable.Elmish (>= 1.0) - restriction: >= netstandard1.6
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
Fable.Elmish.HMR (1.0)
Fable.Core (>= 1.2.4) - restriction: >= netstandard1.6
Fable.Elmish (>= 0.9.2) - restriction: >= netstandard1.6
Expand Down
4 changes: 3 additions & 1 deletion src/Nightwatch.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module Nightwatch

open Elmish
open Elmish.React
open Elmish.Debug
open Elmish.ReactNative
open Elmish.HMR

Expand All @@ -23,7 +24,8 @@ Program.mkProgram App.init App.update App.view
#if RELEASE
#else
|> Program.withConsoleTrace
|> Program.withDebuggerAt (Debugger.ConnectionOptions.Remote("localhost",8000))
|> Program.withHMR
#endif
|> Program.withReactNative "nightwatch"
|> Program.run
|> Program.run
1 change: 1 addition & 0 deletions src/paket.references
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Fable.PowerPack
Fable.React
Fable.React.Native
Fable.Elmish
Fable.Elmish.Debugger
Fable.Elmish.React
Fable.Elmish.HMR
Fable.Import.Browser
Expand Down
Loading