- Notifications
You must be signed in to change notification settings - Fork0
Tetris implementation in fable.
License
MargaretKrutikova/tetris
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Tetris implementation in Fable.
- dotnet SDK 3.0 or higher
- node.js withnpm
- An F# editor like Visual Studio, Visual Studio Code withIonide orJetBrains Rider.
- Install JS dependencies:
npm install
- Install F# dependencies:
npm start
- After the first compilation is finished, in your browser open:http://localhost:8080/
Any modification you do to the F# code will be reflected in the web page after saving.
JS dependencies are declared inpackage.json
, whilepackage-lock.json
is a lock file automatically generated.
Webpack is a JS bundler with extensions, like a static dev server that enables hot reloading on code changes. Fable interacts with Webpack through thefable-loader
. Configuration for Webpack is defined in thewebpack.config.js
file. Note this sample only includes basic Webpack configuration for development mode, if you want to see a more comprehensive configuration check theFable webpack-config-template.
The sample only contains two F# files: the project (.fsproj) and a source file (.fs) in thesrc
folder.
Theindex.html
file and other assets like an icon can be found in thepublic
folder.