-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
120 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 1,25 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>ff4s-example</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>ff4s-example</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="text/javascript"> | ||
var process = { | ||
env: { | ||
'CATS_EFFECT_TRACING_MODE': 'NONE', | ||
'FF4S_DEBUG': 'TRUE', | ||
} | ||
}; | ||
var ff4s_state; | ||
</script> | ||
<script type="text/javascript" src="target/scala-2.13/examples-fastopt/main.js"></script> | ||
</body> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="text/javascript"> | ||
var process = { | ||
env: { | ||
CATS_EFFECT_TRACING_MODE: "NONE", | ||
FF4S_DEBUG: "TRUE", | ||
}, | ||
}; | ||
var ff4s_state; | ||
</script> | ||
<script | ||
type="text/javascript" | ||
src="target/scala-3.3.1/examples-fastopt/main.js" | ||
></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 1,43 @@ | ||
{ | ||
inputs = { | ||
devenv.url = "github:cachix/devenv"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
systems.url = "github:nix-systems/default"; | ||
devenv.url = "github:cachix/devenv"; | ||
}; | ||
|
||
nixConfig = { | ||
extra-trusted-public-keys = | ||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv f9TZLr6cv/Hm9XgU50cw="; | ||
extra-substituters = "https://devenv.cachix.org"; | ||
}; | ||
outputs = { self, nixpkgs, devenv, systems, flake-parts, ... }@inputs: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
|
||
imports = [ inputs.devenv.flakeModule ]; | ||
|
||
systems = nixpkgs.lib.systems.flakeExposed; | ||
|
||
perSystem = { config, self', inputs', pkgs, system, ... }: { | ||
|
||
devenv.shells.default = { | ||
|
||
outputs = { self, nixpkgs, devenv, systems, ... }@inputs: | ||
let forEachSystem = nixpkgs.lib.genAttrs (import systems); | ||
in { | ||
packages = forEachSystem (system: { | ||
devenv-up = self.devShells.${system}.default.config.procfileScript; | ||
}); | ||
|
||
devShells = forEachSystem (system: | ||
let pkgs = nixpkgs.legacyPackages.${system}; | ||
in { | ||
default = devenv.lib.mkShell { | ||
inherit inputs pkgs; | ||
modules = [{ | ||
packages = with pkgs; [ nodePackages.live-server ]; | ||
|
||
languages = { | ||
java.enable = true; | ||
java.jdk.package = pkgs.jdk; | ||
scala.enable = true; | ||
nix.enable = true; | ||
}; | ||
|
||
scripts.watch-examples.exec = '' | ||
sbt '~examples/fastLinkJS' | ||
''; | ||
|
||
scripts.serve-examples.exec = '' | ||
live-server ./examples/ --port=8080 --entry-file=index.html | ||
''; | ||
|
||
}]; | ||
packages = with pkgs; [ nodePackages.live-server ]; | ||
|
||
languages = { | ||
java.enable = true; | ||
java.jdk.package = pkgs.jdk; | ||
scala.enable = true; | ||
nix.enable = true; | ||
}; | ||
}); | ||
|
||
scripts.watch-examples.exec = '' | ||
sbt '~examples/fastLinkJS' | ||
''; | ||
|
||
scripts.serve-examples.exec = '' | ||
live-server ./examples/ --port=8080 --entry-file=index.html | ||
''; | ||
|
||
}; | ||
|
||
}; | ||
|
||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 1,19 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>todo-mvc</title> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/index.css" | ||
/> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>todo-mvc</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/index.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="text/javascript"> | ||
var process = {env: {'CATS_EFFECT_TRACING_MODE': 'NONE'}}; | ||
</script> | ||
<script type="text/javascript" src="target/scala-2.13/todomvc-fastopt/main.js"></script> | ||
</body> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script | ||
type="text/javascript" | ||
src="target/scala-2.13/todomvc-fastopt/main.js" | ||
></script> | ||
</body> | ||
</html> |