Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Write about Bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
pepicrft committed May 20, 2024
1 parent 0d4fe74 commit d123caf
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 36 deletions.
Empty file removed assets/css/app.css
Empty file.
9 changes: 0 additions & 9 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,3 @@ config :phoenix, :json_library, Jason
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"

config :lightning_css,
version: "1.22.1",
default: [
args: ~w(assets/css/app.css --bundle --output-file=priv/static/styles/bundle.css),
watch_files: "assets/css/**/*.css",
cd: Path.expand("..", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
3 changes: 1 addition & 2 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ config :pepicrft, PepicrftWeb.Endpoint,
watchers: [
# Start the esbuild watcher by calling Esbuild.install_and_run(:default, args)
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
og: {Pepicrft.OpenGraph, :start_link, []},
css: {LightningCSS, :install_and_run, [:default, ~w(), [watch: true]]}
og: {Pepicrft.OpenGraph, :start_link, []}
]

config :pepicrft, :metadata,
Expand Down
8 changes: 3 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ defmodule Pepicrft.MixProject do
{:phoenix_html_sanitizer, "~> 1.1.1"},
{:image, "~> 0.47.0"},
{:file_system, "~> 0.2"},
{:remote_ip, "~> 1.1"},
{:lightning_css, "~> 0.5.0"}
{:remote_ip, "~> 1.1"}
]
end

Expand All @@ -86,11 +85,10 @@ defmodule Pepicrft.MixProject do
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"assets.setup": ["esbuild.install --if-missing", "lightning_css.install --if-missing"],
"assets.build": ["esbuild default", "lightning_css default", "phx.gen.open_graph"],
"assets.setup": ["esbuild.install --if-missing"],
"assets.build": ["esbuild default", "phx.gen.open_graph"],
"assets.deploy": [
"esbuild default --minify",
"lightning_css default",
"phx.digest",
"phx.gen.open_graph"
]
Expand Down
Loading

0 comments on commit d123caf

Please sign in to comment.