Closed gchiaramonte closed 5 years ago
Hi, thank you for posting the issue.
The fake build --target run
command should run out of the box on OSX.
Can you please post more details:
dotnet --info
fake --version
dotnet new safe --help
fake -v build --target run
Tomasz,
Thanks for looking into this. I think I've pasted everything you've asked for below. I did notice that I had and older version of yarn, so I updated it. But I still have the same problem, so that wasn't the issue.
Really appreciate your help as I've been wanting to try out SAFE and Elmish.
Gene
dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.2.101 Commit: 236713b0b7
Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /usr/local/share/dotnet/sdk/2.2.101/
Host (useful for support): Version: 2.2.0 Commit: 1249f08fed
.NET Core SDKs installed: 2.0.0 [/usr/local/share/dotnet/sdk] 2.0.3 [/usr/local/share/dotnet/sdk] 2.1.4 [/usr/local/share/dotnet/sdk] 2.1.401 [/usr/local/share/dotnet/sdk] 2.2.100 [/usr/local/share/dotnet/sdk] 2.2.101 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
fake --version FAKE 5 - F# Make (5.11.0) (this line is written to standard error, see https://github.com/fsharp/FAKE/issues/2066) FakePath: /Users/genec/.dotnet/tools/.store/fake-cli/5.11.0/fake-cli/5.11.0/tools/netcoreapp2.1/any/Fake.Runtime.dll
========================================================
dotnet new safe --help Usage: new [options]
Options: -h, --help Displays help for this command. -l, --list Lists templates containing the specified name. If no name is specified, lists all templates. -n, --name The name for the output being created. If no name is specified, the name of the current directory is used. -o, --output Location to place the generated output. -i, --install Installs a source or a template pack. -u, --uninstall Uninstalls a source or a template pack. --nuget-source Specifies a NuGet source to use during install. --type Filters templates based on available types. Predefined values are "project", "item" or "other". --dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation. --force Forces content to be generated even if it would change existing files. -lang, --language Filters templates based on language and specifies the language of the template to create.
SAFE-Stack Web App v0.40.1 (F#)
Author: Tomasz Heimowski
Options:
-s|--server
suave - lightweight, non-blocking web server (standalone)
giraffe - a functional micro web framework based on ASP.NET Core
saturn - web development framework which implements the server-side MVC pattern
Default: saturn
-la|--layout
none - don't add any CSS framework
fulma-basic - add Fulma basic template
fulma-admin - add Fulma with 'Admin' Bulma template from https://dansup.github.io/bulma-templates/
fulma-cover - add Fulma with 'Cover' Bulma template from https://dansup.github.io/bulma-templates/
fulma-hero - add Fulma with 'Hero' Bulma template from https://dansup.github.io/bulma-templates/
fulma-landing - add Fulma with 'Landing' Bulma template from https://dansup.github.io/bulma-templates/
fulma-login - add Fulma with 'Login' Bulma template from https://dansup.github.io/bulma-templates/
Default: fulma-basic
-c|--communication
none - don't add any additional libraries for client-server communication
remoting - add Fable.Remoting (https://zaid-ajaj.github.io/Fable.Remoting/) to server and client
Default: none
-p|--pattern
default - use standard Elmish architecture with Commands
reaction - use simple Elmish architecture without Commands + Fable.Reaction (https://dbrattli.github.io/Fable.Reaction/) for reactive pattern
Default: default
-jd|--js-deps
npm - uses NPM for JS package management
yarn - uses Yarn for JS package management
Default: yarn
-d|--deploy
none - don't add FAKE targets to deploy
azure - additional FAKE targets to deploy to Azure App Service
docker - additional FAKE targets to bundle and build Docker image
Default: none
==============================================================
Eugenes-MBP:safe gene$ fake build --target run The last restore is still up to date. Nothing left to do. run run Building project with version: LocalBuild Shortened DependencyGraph for Target Run: <== Run <== InstallClient <== Clean
The running order is: Group - 1
"/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" --version (In: false, Out: true, Err: true) /Users/genec/Documents/safe> "/usr/local/bin/node" --version (In: false, Out: false, Err: false) v9.3.0 Yarn version: /Users/genec/Documents/safe> "/usr/local/bin/yarn" --version (In: false, Out: false, Err: false) 0.27.5 /Users/genec/Documents/safe> "/usr/local/bin/yarn" install --frozen-lockfile (In: false, Out: false, Err: false) yarn install v0.27.5 [1/4] Resolving packages... success Already up-to-date. Done in 0.52s. /Users/genec/Documents/safe/src/Client> "/usr/local/share/dotnet/dotnet" restore (In: false, Out: false, Err: false) Paket version 5.194.3 The last restore is still up to date. Nothing left to do. Performance:
- Runtime: 70 milliseconds Restore completed in 49.59 ms for /Users/genec/Documents/safe/src/Client/Client.fsproj. Finished (Success) 'InstallClient' in 00:00:04.8854267 Starting target 'Run' /Users/genec/Documents/safe> "/usr/local/bin/yarn" webpack-dev-server --config src/Client/webpack.config.js (In: false, Out: false, Err: false) /Users/genec/Documents/safe/src/Server> "/usr/local/share/dotnet/dotnet" watch run (In: false, Out: false, Err: false) yarn webpack-dev-server v0.27.5 $ "/Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server" watch : Started ℹ 「wds」: Project is running at http://localhost:8080/ ℹ 「wds」: webpack output is served from / ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 551ms Built at: 12/20/2018 5:48:29 PM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
- 10 hidden modules
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile.
"http://localhost:8080" (In: false, Out: false, Err: false) info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/genec/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest. Hosting environment: Production Content root path: /Users/genec/Documents/safe/src/Server Now listening on: http://0.0.0.0:8085 Application started. Press Ctrl+C to shut down. ^Cwatch : Shutdown requested. Press Ctrl+C again to force exit. Application is shutting down... watch : Exited Gracefully shutting down.. Press ctrl+c again to force quit Finished (Failed) 'Run' in 04:55:06.2867171
Target Duration
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.189.1' at the top of your dependencies file (/Users/genec/Documents/safe/paket.dependencies). Read https://github.com/fsharp/FAKE/issues/2193 for details. Performance:
The running order is: Group - 1
"/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" --version (In: false, Out: true, Err: true) /Users/genec/Documents/safe> "/usr/local/bin/node" --version (In: false, Out: false, Err: false) v9.3.0 Yarn version: /Users/genec/Documents/safe> "/usr/local/bin/yarn" --version (In: false, Out: false, Err: false) 0.27.5 /Users/genec/Documents/safe> "/usr/local/bin/yarn" install --frozen-lockfile (In: false, Out: false, Err: false) yarn install v0.27.5 [1/4] Resolving packages... success Already up-to-date. Done in 0.59s. /Users/genec/Documents/safe/src/Client> "/usr/local/share/dotnet/dotnet" restore (In: false, Out: false, Err: false) Paket version 5.189.1 The last restore is still up to date. Nothing left to do. Performance:
- Runtime: 73 milliseconds Restore completed in 95.87 ms for /Users/genec/Documents/safe/src/Client/Client.fsproj. Finished (Success) 'InstallClient' in 00:00:10.2717435 Starting target 'Run' /Users/genec/Documents/safe> "/usr/local/bin/yarn" webpack-dev-server --config src/Client/webpack.config.js (In: false, Out: false, Err: false) /Users/genec/Documents/safe/src/Server> "/usr/local/share/dotnet/dotnet" watch run (In: false, Out: false, Err: false) yarn webpack-dev-server v0.27.5 $ "/Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server" watch : Started ℹ 「wds」: Project is running at http://localhost:8080/ ℹ 「wds」: webpack output is served from / ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 585ms Built at: 12/21/2018 6:57:31 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
- 10 hidden modules
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile.
"http://localhost:8080" (In: false, Out: false, Err: false) info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/genec/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest. Hosting environment: Production Content root path: /Users/genec/Documents/safe/src/Server Now listening on: http://0.0.0.0:8085 Application started. Press Ctrl+C to shut down. ^CApplication is shutting down... watch : Shutdown requested. Press Ctrl+C again to force exit. Gracefully shutting down.. Press ctrl+c again to force quit Finished (Failed) 'Run' in 00:00:34.9034893
Target Duration
watch : Exited Performance:
Usage:
fake.exe [fake_opts] run [run_opts] [
Fake Options [fake_opts]: -v, --verbose [*] Verbose (can be used multiple times) Is ignored if -s is used.
Fake Run Options [run_opts]:
-d, --debug Debug the script.
-n, --nocache Disable fake cache for this run.
-p, --partial-restore
Only restore the required group instead of a full restore,
can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
--fsiargs
Fake Build Options [build_opts]:
-d, --debug Debug the script.
-n, --nocache Disable fake cache for this run.
-p, --partial-restore
Only restore the required group instead of a full restore,
can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
--fsiargs build.fsx
).
Eugenes-MBP:safe gene$ fake --version FAKE 5 - F# Make (5.11.0) (this line is written to standard error, see https://github.com/fsharp/FAKE/issues/2066) FakePath: /Users/genec/.dotnet/tools/.store/fake-cli/5.11.0/fake-cli/5.11.0/tools/netcoreapp2.1/any/Fake.Runtime.dll Eugenes-MBP:safe gene$ dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.2.101 Commit: 236713b0b7
Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /usr/local/share/dotnet/sdk/2.2.101/
Host (useful for support): Version: 2.2.0 Commit: 1249f08fed
.NET Core SDKs installed: 2.0.0 [/usr/local/share/dotnet/sdk] 2.0.3 [/usr/local/share/dotnet/sdk] 2.1.4 [/usr/local/share/dotnet/sdk] 2.1.401 [/usr/local/share/dotnet/sdk] 2.2.100 [/usr/local/share/dotnet/sdk] 2.2.101 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download Eugenes-MBP:safe gene$ fake --version FAKE 5 - F# Make (5.11.0) (this line is written to standard error, see https://github.com/fsharp/FAKE/issues/2066) FakePath: /Users/genec/.dotnet/tools/.store/fake-cli/5.11.0/fake-cli/5.11.0/tools/netcoreapp2.1/any/Fake.Runtime.dll Eugenes-MBP:safe gene$ dotnet new safe --help Getting ready... Usage: new [options]
Options: -h, --help Displays help for this command. -l, --list Lists templates containing the specified name. If no name is specified, lists all templates. -n, --name The name for the output being created. If no name is specified, the name of the current directory is used. -o, --output Location to place the generated output. -i, --install Installs a source or a template pack. -u, --uninstall Uninstalls a source or a template pack. --nuget-source Specifies a NuGet source to use during install. --type Filters templates based on available types. Predefined values are "project", "item" or "other". --dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation. --force Forces content to be generated even if it would change existing files. -lang, --language Filters templates based on language and specifies the language of the template to create.
No templates matched the input template name: safe.
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
Unit Test Project mstest [C#], F#, VB Test/MSTest
NUnit 3 Test Project nunit [C#], F#, VB Test/NUnit
NUnit 3 Test Item nunit-test [C#], F#, VB Test/NUnit
xUnit Test Project xunit [C#], F#, VB Test/xUnit
Razor Page page [C#] Web/ASP.NET
MVC ViewImports viewimports [C#] Web/ASP.NET
MVC ViewStart viewstart [C#] Web/ASP.NET
ASP.NET Core Empty web [C#], F# Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App webapp [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
Razor Class Library razorclasslib [C#] Web/Razor/Library/Razor Class Library
ASP.NET Core Web API webapi [C#], F# Web/WebAPI
global.json file globaljson Config
NuGet Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
Examples: dotnet new mvc --auth Individual dotnet new web dotnet new --help Eugenes-MBP:safe gene$ dotnet new SAFE --help Usage: new [options]
Options: -h, --help Displays help for this command. -l, --list Lists templates containing the specified name. If no name is specified, lists all templates. -n, --name The name for the output being created. If no name is specified, the name of the current directory is used. -o, --output Location to place the generated output. -i, --install Installs a source or a template pack. -u, --uninstall Uninstalls a source or a template pack. --nuget-source Specifies a NuGet source to use during install. --type Filters templates based on available types. Predefined values are "project", "item" or "other". --dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation. --force Forces content to be generated even if it would change existing files. -lang, --language Filters templates based on language and specifies the language of the template to create.
No templates matched the input template name: SAFE.
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
Unit Test Project mstest [C#], F#, VB Test/MSTest
NUnit 3 Test Project nunit [C#], F#, VB Test/NUnit
NUnit 3 Test Item nunit-test [C#], F#, VB Test/NUnit
xUnit Test Project xunit [C#], F#, VB Test/xUnit
Razor Page page [C#] Web/ASP.NET
MVC ViewImports viewimports [C#] Web/ASP.NET
MVC ViewStart viewstart [C#] Web/ASP.NET
ASP.NET Core Empty web [C#], F# Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App webapp [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
Razor Class Library razorclasslib [C#] Web/Razor/Library/Razor Class Library
ASP.NET Core Web API webapi [C#], F# Web/WebAPI
global.json file globaljson Config
NuGet Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
Examples: dotnet new mvc --auth Individual dotnet new classlib --framework netcoreapp2.2 dotnet new --help Eugenes-MBP:safe gene$ cd .. Eugenes-MBP:Documents gene$ ls 11 Habits of Supremely Happy People | LinkedIn.pdf Boats Buttertubs Cars Category Theory Conferences ExpressVPN Shortcuts FSharp Farming Pop-Ups Projects Python Real Estate clojure clojure-training-20170327 elm fable git safe Eugenes-MBP:Documents gene$ dotnet new SAFE --help Usage: new [options]
Options: -h, --help Displays help for this command. -l, --list Lists templates containing the specified name. If no name is specified, lists all templates. -n, --name The name for the output being created. If no name is specified, the name of the current directory is used. -o, --output Location to place the generated output. -i, --install Installs a source or a template pack. -u, --uninstall Uninstalls a source or a template pack. --nuget-source Specifies a NuGet source to use during install. --type Filters templates based on available types. Predefined values are "project", "item" or "other". --dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation. --force Forces content to be generated even if it would change existing files. -lang, --language Filters templates based on language and specifies the language of the template to create.
No templates matched the input template name: SAFE.
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
Unit Test Project mstest [C#], F#, VB Test/MSTest
NUnit 3 Test Project nunit [C#], F#, VB Test/NUnit
NUnit 3 Test Item nunit-test [C#], F#, VB Test/NUnit
xUnit Test Project xunit [C#], F#, VB Test/xUnit
Razor Page page [C#] Web/ASP.NET
MVC ViewImports viewimports [C#] Web/ASP.NET
MVC ViewStart viewstart [C#] Web/ASP.NET
ASP.NET Core Empty web [C#], F# Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App webapp [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
Razor Class Library razorclasslib [C#] Web/Razor/Library/Razor Class Library
ASP.NET Core Web API webapi [C#], F# Web/WebAPI
global.json file globaljson Config
NuGet Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
Examples: dotnet new mvc --auth Individual dotnet new webapi dotnet new --help Eugenes-MBP:Documents gene$ dotnet --help .NET Command Line Tools (2.2.101) Usage: dotnet [runtime-options] [path-to-application] [arguments]
Execute a .NET Core application.
runtime-options:
--additionalprobingpath
path-to-application: The path to an application .dll file to execute.
Usage: dotnet [sdk-options] [command] [command-options] [arguments]
Execute a .NET Core SDK command.
sdk-options: -d|--diagnostics Enable diagnostic output. -h|--help Show command line help. --info Display .NET Core information. --list-runtimes Display the installed runtimes. --list-sdks Display the installed SDKs. --version Display .NET Core SDK version in use.
SDK commands: add Add a package or reference to a .NET project. build Build a .NET project. build-server Interact with servers started by a build. clean Clean build outputs of a .NET project. help Show command line help. list List project references of a .NET project. migrate Migrate a project.json project to an MSBuild project. msbuild Run Microsoft Build Engine (MSBuild) commands. new Create a new .NET project or file. nuget Provides additional NuGet commands. pack Create a NuGet package. publish Publish a .NET project for deployment. remove Remove a package or reference from a .NET project. restore Restore dependencies specified in a .NET project. run Build and run a .NET project output. sln Modify Visual Studio solution files. store Store the specified assemblies in the runtime package store. test Run unit tests using the test runner specified in a .NET project. tool Install or manage tools that extend the .NET experience. vstest Run Microsoft Test Engine (VSTest) commands.
Additional commands from bundled tools: dev-certs Create and manage development certificates. ef Entity Framework Core command-line tools. sql-cache SQL Server cache command-line tools. user-secrets Manage development user secrets. watch Start a file watcher that runs a command when files change.
Run 'dotnet [command] --help' for more information on a command. Eugenes-MBP:Documents gene$ dotnet new SAFE.Template --help Usage: new [options]
Options: -h, --help Displays help for this command. -l, --list Lists templates containing the specified name. If no name is specified, lists all templates. -n, --name The name for the output being created. If no name is specified, the name of the current directory is used. -o, --output Location to place the generated output. -i, --install Installs a source or a template pack. -u, --uninstall Uninstalls a source or a template pack. --nuget-source Specifies a NuGet source to use during install. --type Filters templates based on available types. Predefined values are "project", "item" or "other". --dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation. --force Forces content to be generated even if it would change existing files. -lang, --language Filters templates based on language and specifies the language of the template to create.
No templates matched the input template name: SAFE.Template.
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
Unit Test Project mstest [C#], F#, VB Test/MSTest
NUnit 3 Test Project nunit [C#], F#, VB Test/NUnit
NUnit 3 Test Item nunit-test [C#], F#, VB Test/NUnit
xUnit Test Project xunit [C#], F#, VB Test/xUnit
Razor Page page [C#] Web/ASP.NET
MVC ViewImports viewimports [C#] Web/ASP.NET
MVC ViewStart viewstart [C#] Web/ASP.NET
ASP.NET Core Empty web [C#], F# Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App webapp [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
Razor Class Library razorclasslib [C#] Web/Razor/Library/Razor Class Library
ASP.NET Core Web API webapi [C#], F# Web/WebAPI
global.json file globaljson Config
NuGet Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
Examples: dotnet new mvc --auth Individual dotnet new sln dotnet new --help Eugenes-MBP:Documents gene$ cd safe/ Eugenes-MBP:safe gene$ ls README.md package.json src build.fsx paket-files yarn.lock deploy paket.dependencies node_modules paket.lock Eugenes-MBP:safe gene$ dotnet new -i SAFE.Template Restoring packages for /Users/genec/.templateengine/dotnetcli/v2.2.101/scratch/restore.csproj... Installing SAFE.Template 0.40.1. Generating MSBuild file /Users/genec/.templateengine/dotnetcli/v2.2.101/scratch/obj/restore.csproj.nuget.g.props. Generating MSBuild file /Users/genec/.templateengine/dotnetcli/v2.2.101/scratch/obj/restore.csproj.nuget.g.targets. Restore completed in 1.77 sec for /Users/genec/.templateengine/dotnetcli/v2.2.101/scratch/restore.csproj.
Usage: new [options]
Options: -h, --help Displays help for this command. -l, --list Lists templates containing the specified name. If no name is specified, lists all templates. -n, --name The name for the output being created. If no name is specified, the name of the current directory is used. -o, --output Location to place the generated output. -i, --install Installs a source or a template pack. -u, --uninstall Uninstalls a source or a template pack. --nuget-source Specifies a NuGet source to use during install. --type Filters templates based on available types. Predefined values are "project", "item" or "other". --dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation. --force Forces content to be generated even if it would change existing files. -lang, --language Filters templates based on language and specifies the language of the template to create.
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
SAFE-Stack Web App v0.40.1 SAFE F# F#/Web/Suave/Fable/Elmish/Giraffe/Bulma
Unit Test Project mstest [C#], F#, VB Test/MSTest
NUnit 3 Test Project nunit [C#], F#, VB Test/NUnit
NUnit 3 Test Item nunit-test [C#], F#, VB Test/NUnit
xUnit Test Project xunit [C#], F#, VB Test/xUnit
Razor Page page [C#] Web/ASP.NET
MVC ViewImports viewimports [C#] Web/ASP.NET
MVC ViewStart viewstart [C#] Web/ASP.NET
ASP.NET Core Empty web [C#], F# Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App webapp [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
Razor Class Library razorclasslib [C#] Web/Razor/Library/Razor Class Library
ASP.NET Core Web API webapi [C#], F# Web/WebAPI
global.json file globaljson Config
NuGet Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
Examples: dotnet new mvc --auth Individual dotnet new console dotnet new --help Eugenes-MBP:safe gene$ cd .. Eugenes-MBP:Documents gene$ ls 11 Habits of Supremely Happy People | LinkedIn.pdf Boats Buttertubs Cars Category Theory Conferences ExpressVPN Shortcuts FSharp Farming Pop-Ups Projects Python Real Estate clojure clojure-training-20170327 elm fable git safe Eugenes-MBP:Documents gene$ rmdir safe rmdir: safe: Directory not empty Eugenes-MBP:Documents gene$ rmdir -r save rmdir: illegal option -- r usage: rmdir [-p] directory ... Eugenes-MBP:Documents gene$ rmdir -p safe rmdir: safe: Directory not empty Eugenes-MBP:Documents gene$ rmdir safe -p rmdir: safe: Directory not empty rmdir: -p: No such file or directory Eugenes-MBP:Documents gene$ rmdir --help rmdir: illegal option -- - usage: rmdir [-p] directory ... Eugenes-MBP:Documents gene$ rmdir -h rmdir: illegal option -- h usage: rmdir [-p] directory ... Eugenes-MBP:Documents gene$ cd safe Eugenes-MBP:safe gene$ ls Eugenes-MBP:safe gene$ dotnet new SAFE Creating this template will make changes to existing files: Overwrite .editorconfig Overwrite .gitignore Overwrite .paket/paket.exe Overwrite .paket/Paket.Restore.targets Overwrite .vscode/launch.json Overwrite .vscode/tasks.json
Rerun the command and pass --force to accept and create. Eugenes-MBP:safe gene$ cd .. Eugenes-MBP:Documents gene$ mkdir safe Eugenes-MBP:Documents gene$ cd safe Eugenes-MBP:safe gene$ dotnet new SAFE The template "SAFE-Stack Web App v0.40.1" was created successfully. Eugenes-MBP:safe gene$ fake build --target run The last restore is still up to date. Nothing left to do. run run Building project with version: LocalBuild Shortened DependencyGraph for Target Run: <== Run <== InstallClient <== Clean
The running order is: Group - 1
"/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" --version (In: false, Out: true, Err: true) /Users/genec/Documents/safe> "/usr/local/bin/node" --version (In: false, Out: false, Err: false) v9.3.0 Yarn version: /Users/genec/Documents/safe> "/usr/local/bin/yarn" --version (In: false, Out: false, Err: false) 0.27.5 /Users/genec/Documents/safe> "/usr/local/bin/yarn" install --frozen-lockfile (In: false, Out: false, Err: false) yarn install v0.27.5 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... warning Your current version of Yarn is out of date. The latest version is "1.12.3" while you're on "0.27.5". Done in 11.72s. /Users/genec/Documents/safe/src/Client> "/usr/local/share/dotnet/dotnet" restore (In: false, Out: false, Err: false) Paket version 5.189.1 The last restore is still up to date. Nothing left to do. Performance:
- Runtime: 108 milliseconds Restore completed in 66.32 ms for /Users/genec/Documents/safe/src/Client/Client.fsproj. Finished (Success) 'InstallClient' in 00:00:17.4110013 Starting target 'Run' /Users/genec/Documents/safe/src/Server> "/usr/local/share/dotnet/dotnet" watch run (In: false, Out: false, Err: false) /Users/genec/Documents/safe> "/usr/local/bin/yarn" webpack-dev-server --config src/Client/webpack.config.js (In: false, Out: false, Err: false) yarn webpack-dev-server v0.27.5 $ "/Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server" watch : Started ℹ 「wds」: Project is running at http://localhost:8080/ ℹ 「wds」: webpack output is served from / "http://localhost:8080" (In: false, Out: false, Err: false) ℹ 「wdm」: wait until bundle finished: / ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 9444ms Built at: 12/21/2018 10:06:24 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
- 10 hidden modules
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 386ms Built at: 12/21/2018 10:06:25 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 169ms Built at: 12/21/2018 10:06:28 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 157ms Built at: 12/21/2018 10:06:29 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 163ms Built at: 12/21/2018 10:06:30 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/genec/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest. Hosting environment: Production Content root path: /Users/genec/Documents/safe/src/Server Now listening on: http://0.0.0.0:8085 Application started. Press Ctrl+C to shut down. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 134ms Built at: 12/21/2018 10:06:36 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 163ms Built at: 12/21/2018 10:06:47 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 140ms Built at: 12/21/2018 10:06:54 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 210ms Built at: 12/21/2018 10:06:54 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 105ms Built at: 12/21/2018 10:07:02 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ℹ 「wdm」: Compiling... ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 133ms Built at: 12/21/2018 10:07:03 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ^Cwatch : Shutdown requested. Press Ctrl+C again to force exit. Application is shutting down... Gracefully shutting down.. Press ctrl+c again to force quit Finished (Failed) 'Run' in 00:01:03.4839917
Target Duration
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.189.1' at the top of your dependencies file (/Users/genec/Documents/safe/paket.dependencies). Read https://github.com/fsharp/FAKE/issues/2193 for details. Performance:
Options: -h, --help Displays help for this command. -l, --list Lists templates containing the specified name. If no name is specified, lists all templates. -n, --name The name for the output being created. If no name is specified, the name of the current directory is used. -o, --output Location to place the generated output. -i, --install Installs a source or a template pack. -u, --uninstall Uninstalls a source or a template pack. --nuget-source Specifies a NuGet source to use during install. --type Filters templates based on available types. Predefined values are "project", "item" or "other". --dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation. --force Forces content to be generated even if it would change existing files. -lang, --language Filters templates based on language and specifies the language of the template to create.
SAFE-Stack Web App v0.40.1 (F#)
Author: Tomasz Heimowski
Options:
-s|--server
suave - lightweight, non-blocking web server (standalone)
giraffe - a functional micro web framework based on ASP.NET Core
saturn - web development framework which implements the server-side MVC pattern
Default: saturn
-la|--layout
none - don't add any CSS framework
fulma-basic - add Fulma basic template
fulma-admin - add Fulma with 'Admin' Bulma template from https://dansup.github.io/bulma-templates/
fulma-cover - add Fulma with 'Cover' Bulma template from https://dansup.github.io/bulma-templates/
fulma-hero - add Fulma with 'Hero' Bulma template from https://dansup.github.io/bulma-templates/
fulma-landing - add Fulma with 'Landing' Bulma template from https://dansup.github.io/bulma-templates/
fulma-login - add Fulma with 'Login' Bulma template from https://dansup.github.io/bulma-templates/
Default: fulma-basic
-c|--communication
none - don't add any additional libraries for client-server communication
remoting - add Fable.Remoting (https://zaid-ajaj.github.io/Fable.Remoting/) to server and client
Default: none
-p|--pattern
default - use standard Elmish architecture with Commands
reaction - use simple Elmish architecture without Commands + Fable.Reaction (https://dbrattli.github.io/Fable.Reaction/) for reactive pattern
Default: default
-jd|--js-deps
npm - uses NPM for JS package management
yarn - uses Yarn for JS package management
Default: yarn
-d|--deploy
none - don't add FAKE targets to deploy
azure - additional FAKE targets to deploy to Azure App Service
docker - additional FAKE targets to bundle and build Docker image
Default: none
Eugenes-MBP:safe gene$ fake -v build --target run runOrBuild ({Script = None; ScriptArguments = ["--target"; "run"]; FsiArgLine = []; Debug = false; NoCache = false; RestoreOnlyGroup = false; VerboseLevel = Verbose; IsBuild = true;}) FAKE 5 - F# Make (5.11.0) (this line is written to standard error, see https://github.com/fsharp/FAKE/issues/2066) prepareAndRunScriptRedirect(Script: /Users/genec/Documents/safe/build.fsx, fsiOptions: "") Writing '/Users/genec/Documents/safe/.fake/build.fsx/intellisense.fsx' Restoring with paket... The last restore is still up to date. Nothing left to do. Known assemblies:
The running order is: Group - 1
"/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" --version (In: false, Out: true, Err: true) Trying to resolve: System.Threading, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Redirect assembly load to known assembly: System.Threading, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Some "/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.1.3/System.Threading.dll") /Users/genec/Documents/safe> "/usr/local/bin/node" --version (In: false, Out: false, Err: false) v9.3.0 Yarn version: /Users/genec/Documents/safe> "/usr/local/bin/yarn" --version (In: false, Out: false, Err: false) 0.27.5 /Users/genec/Documents/safe> "/usr/local/bin/yarn" install --frozen-lockfile (In: false, Out: false, Err: false) yarn install v0.27.5 [1/4] Resolving packages... success Already up-to-date. Done in 0.72s. Redirect assembly from 'FSharp.Core, Version=4.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' to previous loaded assembly 'FSharp.Core, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Redirect assembly from 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' to previous loaded assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' /Users/genec/Documents/safe/src/Client> "/usr/local/share/dotnet/dotnet" restore (In: false, Out: false, Err: false) Paket version 5.189.1 The last restore is still up to date. Nothing left to do. Performance:
- Runtime: 93 milliseconds Restore completed in 59.9 ms for /Users/genec/Documents/safe/src/Client/Client.fsproj. Finished (Success) 'InstallClient' in 00:00:04.7855747 Starting target 'Run' /Users/genec/Documents/safe> "/usr/local/bin/yarn" webpack-dev-server --config src/Client/webpack.config.js (In: false, Out: false, Err: false) /Users/genec/Documents/safe/src/Server> "/usr/local/share/dotnet/dotnet" watch run (In: false, Out: false, Err: false) yarn webpack-dev-server v0.27.5 $ "/Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server" watch : Started ℹ 「wds」: Project is running at http://localhost:8080/ ℹ 「wds」: webpack output is served from / "http://localhost:8080" (In: false, Out: false, Err: false) ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 1186ms Built at: 12/21/2018 10:09:03 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
- 10 hidden modules
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/genec/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest. Hosting environment: Production Content root path: /Users/genec/Documents/safe/src/Server Now listening on: http://0.0.0.0:8085 Application started. Press Ctrl+C to shut down. ^Cwatch : Shutdown requested. Press Ctrl+C again to force exit. Application is shutting down... Gracefully shutting down.. Press ctrl+c again to force quit Finished (Failed) 'Run' in 00:02:33.3357086
Target Duration
saving cache... Ready. Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.189.1' at the top of your dependencies file (/Users/genec/Documents/safe/paket.dependencies). Read https://github.com/fsharp/FAKE/issues/2193 for details. Performance:
Runtime: 2 minutes, 40 seconds Eugenes-MBP:safe gene$ npm install --global yarn /usr/local/Cellar/node/9.3.0_1/bin/yarn -> /usr/local/Cellar/node/9.3.0_1/lib/node_modules/yarn/bin/yarn.js /usr/local/Cellar/node/9.3.0_1/bin/yarnpkg -> /usr/local/Cellar/node/9.3.0_1/lib/node_modules/yarn/bin/yarn.js
╭───────────────────────────────────────────────────────────────╮ │ │ │ New minor version of npm available! 6.1.0 → 6.5.0 │ │ Changelog: https://github.com/npm/npm/releases/tag/v6.5.0 │ │ Run npm install -g npm to update! │ │ │ ╰───────────────────────────────────────────────────────────────╯
Eugenes-MBP:safe gene$ npm install -g npm /usr/local/Cellar/node/9.3.0_1/bin/npm -> /usr/local/Cellar/node/9.3.0_1/lib/node_modules/npm/bin/npm-cli.js /usr/local/Cellar/node/9.3.0_1/bin/npx -> /usr/local/Cellar/node/9.3.0_1/lib/node_modules/npm/bin/npx-cli.js
npm@6.5.0 added 389 packages from 781 contributors in 10.938s
╭───────────────────────────────────────────────────────────────╮ │ │ │ New minor version of npm available! 6.1.0 → 6.5.0 │ │ Changelog: https://github.com/npm/npm/releases/tag/v6.5.0 │ │ Run npm install -g npm to update! │ │ │ ╰───────────────────────────────────────────────────────────────╯
Eugenes-MBP:safe gene$ npm install -g npm /usr/local/Cellar/node/9.3.0_1/bin/npm -> /usr/local/Cellar/node/9.3.0_1/lib/node_modules/npm/bin/npm-cli.js /usr/local/Cellar/node/9.3.0_1/bin/npx -> /usr/local/Cellar/node/9.3.0_1/lib/node_modules/npm/bin/npx-cli.js
The running order is: Group - 1
"/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" --version (In: false, Out: true, Err: true) Trying to resolve: System.Threading, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Redirect assembly load to known assembly: System.Threading, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Some "/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.1.3/System.Threading.dll") /Users/genec/Documents/safe> "/usr/local/bin/node" --version (In: false, Out: false, Err: false) v9.3.0 Yarn version: /Users/genec/Documents/safe> "/usr/local/bin/yarn" --version (In: false, Out: false, Err: false) 0.27.5 /Users/genec/Documents/safe> "/usr/local/bin/yarn" install --frozen-lockfile (In: false, Out: false, Err: false) yarn install v0.27.5 [1/4] Resolving packages... success Already up-to-date. Done in 0.94s. Redirect assembly from 'FSharp.Core, Version=4.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' to previous loaded assembly 'FSharp.Core, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Redirect assembly from 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' to previous loaded assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' /Users/genec/Documents/safe/src/Client> "/usr/local/share/dotnet/dotnet" restore (In: false, Out: false, Err: false) Paket version 5.189.1 The last restore is still up to date. Nothing left to do. Performance:
- Runtime: 84 milliseconds Restore completed in 114.48 ms for /Users/genec/Documents/safe/src/Client/Client.fsproj. Finished (Success) 'InstallClient' in 00:00:05.8181883 Starting target 'Run' /Users/genec/Documents/safe/src/Server> "/usr/local/share/dotnet/dotnet" watch run (In: false, Out: false, Err: false) /Users/genec/Documents/safe> "/usr/local/bin/yarn" webpack-dev-server --config src/Client/webpack.config.js (In: false, Out: false, Err: false) yarn webpack-dev-server v0.27.5 $ "/Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server" watch : Started ℹ 「wds」: Project is running at http://localhost:8080/ ℹ 「wds」: webpack output is served from / ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 1032ms Built at: 12/21/2018 10:13:00 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
- 10 hidden modules
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile.
"http://localhost:8080" (In: false, Out: false, Err: false) info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/genec/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest. Hosting environment: Production Content root path: /Users/genec/Documents/safe/src/Server Now listening on: http://0.0.0.0:8085 Application started. Press Ctrl+C to shut down. ^CGracefully shutting down.. Press ctrl+c again to force quit watch : Shutdown requested. Press Ctrl+C again to force exit. Application is shutting down... Killing 10497 failed with Failed to set or retrieve rusage information. See the error code for OS-specific error information. Killing 10498 failed with Failed to set or retrieve rusage information. See the error code for OS-specific error information. Finished (Failed) 'Run' in 00:02:05.3983900
Target Duration
saving cache... Ready. watch : Exited Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.189.1' at the top of your dependencies file (/Users/genec/Documents/safe/paket.dependencies). Read https://github.com/fsharp/FAKE/issues/2193 for details. Performance:
Eugenes-MBP:safe gene$ fake -v build --target run runOrBuild ({Script = None; ScriptArguments = ["--target"; "run"]; FsiArgLine = []; Debug = false; NoCache = false; RestoreOnlyGroup = false; VerboseLevel = Verbose; IsBuild = true;}) FAKE 5 - F# Make (5.11.0) (this line is written to standard error, see https://github.com/fsharp/FAKE/issues/2066) prepareAndRunScriptRedirect(Script: /Users/genec/Documents/safe/build.fsx, fsiOptions: "") Writing '/Users/genec/Documents/safe/.fake/build.fsx/intellisense.fsx' Restoring with paket... The last restore is still up to date. Nothing left to do. Known assemblies:
The running order is: Group - 1
"/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" --version (In: false, Out: true, Err: true) Trying to resolve: System.Threading, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Redirect assembly load to known assembly: System.Threading, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Some "/usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.1.3/System.Threading.dll") /Users/genec/Documents/safe> "/usr/local/bin/node" --version (In: false, Out: false, Err: false) v9.3.0 Yarn version: /Users/genec/Documents/safe> "/usr/local/bin/yarn" --version (In: false, Out: false, Err: false) 0.27.5 /Users/genec/Documents/safe> "/usr/local/bin/yarn" install --frozen-lockfile (In: false, Out: false, Err: false) yarn install v0.27.5 [1/4] Resolving packages... success Already up-to-date. Done in 0.53s. Redirect assembly from 'FSharp.Core, Version=4.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' to previous loaded assembly 'FSharp.Core, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Redirect assembly from 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' to previous loaded assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' /Users/genec/Documents/safe/src/Client> "/usr/local/share/dotnet/dotnet" restore (In: false, Out: false, Err: false) Paket version 5.189.1 The last restore is still up to date. Nothing left to do. Performance:
- Runtime: 68 milliseconds Restore completed in 48.12 ms for /Users/genec/Documents/safe/src/Client/Client.fsproj. Finished (Success) 'InstallClient' in 00:00:03.3624322 Starting target 'Run' /Users/genec/Documents/safe> "/usr/local/bin/yarn" webpack-dev-server --config src/Client/webpack.config.js (In: false, Out: false, Err: false) /Users/genec/Documents/safe/src/Server> "/usr/local/share/dotnet/dotnet" watch run (In: false, Out: false, Err: false) yarn webpack-dev-server v0.27.5 $ "/Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server" watch : Started ℹ 「wds」: Project is running at http://localhost:8080/ ℹ 「wds」: webpack output is served from / ✖ 「wdm」: Hash: bb1ac6f34b062a7f6d83 Version: webpack 4.27.1 Time: 664ms Built at: 12/21/2018 10:15:15 AM 1 asset Entrypoint main = main.js [2] multi (webpack)-dev-server/client?http://localhost:8080 ./src 40 bytes {0} [built] [3] (webpack)-dev-server/client?http://localhost:8080 7.78 KiB {0} [built] [4] ./node_modules/url/url.js 22.8 KiB {0} [built] [5] ./node_modules/punycode/punycode.js 14.3 KiB {0} [built] [7] ./node_modules/url/util.js 314 bytes {0} [built] [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built] [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built] [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built] [13] ./node_modules/loglevel/lib/loglevel.js 7.68 KiB {0} [built] [14] (webpack)-dev-server/client/socket.js 1.05 KiB {0} [built] [15] ./node_modules/sockjs-client/dist/sockjs.js 180 KiB {0} [built] [16] (webpack)-dev-server/client/overlay.js 3.58 KiB {0} [built] [17] ./node_modules/ansi-html/index.js 4.16 KiB {0} [built] [21] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {0} [built] [23] (webpack)/hot/emitter.js 75 bytes {0} [built]
- 10 hidden modules
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile.
"http://localhost:8080" (In: false, Out: false, Err: false) info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/genec/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest. Hosting environment: Production Content root path: /Users/genec/Documents/safe/src/Server Now listening on: http://0.0.0.0:8085 Application started. Press Ctrl+C to shut down.
Hmm you sure you updated yarn to a recent version? I'm using 1.10.1. Looks like webpack config is not read properly, output should be
yarn run v1.10.1
$ /Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server --config src/Client/webpack.config.js
instead of
yarn webpack-dev-server v0.27.5
$ "/Users/genec/Documents/safe/node_modules/.bin/webpack-dev-server"
BTW, take a look at formatting markdown - it's better to paste snippets using triple backticks to prevent GitHub from interpreting the syntax:
``` snippet ```
You're right and thanks for the help. I went ahead and reinstalled node and yarn and now have the latest versions. The SAFE application runs and I see the counter app. but when I shut down the server I still get the "dotnet watch run failed" error. Any idea what the problem is?
---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
watch : Exited
Target Duration
------ --------
Clean 00:00:00.0034981
InstallClient 00:00:07.6945504
Run 00:01:04.4823780 ('dotnet watch run' failed in /Users/genec/Documents/safe/src/Server)
Total: 00:01:12.4593160
Status: Failure
---------------------------------------------------------------------
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.189.1' at the top of your dependencies file (/Users/genec/Documents/safe/paket.dependencies).
Read https://github.com/fsharp/FAKE/issues/2193 for details.
You're welcome, we'll add a note to official SAFE docs about the recommended Yarn version to prevent similar issues.
Regarding the dotnet watch run failed
it's kinda "by design" - see https://github.com/SAFE-Stack/SAFE-template/issues/12
Basically dotnet watch
as an interactive command is being stopped before having a chance to complete, and that's why it returns a non-zero error code.
I'm not sure if there's anything we can do about it - maybe @matthid has any idea if we can detect SIGTERM for fake build --target run
and end the script with success?
I installed the SAFE template, created a default project and then when I run it with the following command,
fake build --target run
I get the following error:
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src Module not found: Error: Can't resolve './src' in '/Users/genec/Documents/safe' @ multi (webpack)-dev-server/client?http://localhost:8080 ./src main[1] ℹ 「wdm」: Failed to compile. ...
Build Time Report
Target Duration
Clean 00:00:00.0037152 InstallClient 00:00:04.8853085 Run 04:55:06.2863349 ('dotnet watch run' failed in /Users/genec/Documents/safe/src/Server) Total: 04:55:11.4360098 Status: Failure
I'm not sure how to configure dotnet watch run on OSX. I did try adding the following line to my packet .dependencies file, but that didn't help. clitool Microsfot.DotNet.Watcher.Tools