This repository has been archived on 2024-06-16. You can view files and clone it, but cannot push or open issues or pull requests.
mebe-2/lib/mix/tasks/mebe.serve.ex
Mikko Ahlroth 0f4d46ba8f Rewrite frontend with TypeScript/CSS and no NPM
* Changed fonts to builtin fonts
* Changed Disqus to load on-demand
* Changed syntax highlighting to load on-demand
2020-04-18 01:00:01 +03:00

25 lines
650 B
Elixir

defmodule Mix.Tasks.Mebe.Serve do
use MBU.BuildTask, auto_path: false, create_out_path: false
import MBU.TaskUtils
@shortdoc "Start Mebe2 server and frontend development tools"
@deps ["mebe.build.frontend"]
task _ do
[
watch(
"Frontend TS",
Path.join([File.cwd!(), "lib", "web", "frontend", "src"]),
Mix.Tasks.Mebe.Build.Frontend
),
watch(
"Frontend assets",
Path.join([File.cwd!(), "lib", "web", "frontend", "assets"]),
Mix.Tasks.Mebe.Build.Frontend
),
exec(System.find_executable("mix"), ["run", "--no-halt"])
]
|> listen(watch: true)
end
end