noahsettersten commited on
Commit
0d0d5bb
1 Parent(s): b039812

chore: Add comments for recommended Phoenix Storybook config

Browse files

These may not be necessary, so I've left them disabled for now. In
particular the `mix.exs` and `Dockerfile` changes appear to be related to
deployment. For now, I've setup the routes for Phoenix Storybook to only
be available in development and those may not be necessary.

Files changed (3) hide show
  1. Dockerfile +2 -0
  2. assets/tailwind.config.js +1 -0
  3. mix.exs +6 -1
Dockerfile CHANGED
@@ -53,6 +53,8 @@ COPY lib lib
53
 
54
  COPY assets assets
55
 
 
 
56
  # compile assets
57
  RUN mix assets.deploy
58
 
 
53
 
54
  COPY assets assets
55
 
56
+ # COPY storybook storybook
57
+
58
  # compile assets
59
  RUN mix assets.deploy
60
 
assets/tailwind.config.js CHANGED
@@ -7,6 +7,7 @@ const path = require("path");
7
  const defaultTheme = require("tailwindcss/defaultTheme");
8
 
9
  module.exports = {
 
10
  content: [
11
  "./js/**/*.js",
12
  "../lib/medical_transcription_web.ex",
 
7
  const defaultTheme = require("tailwindcss/defaultTheme");
8
 
9
  module.exports = {
10
+ // important: ".medical-transcription-web",
11
  content: [
12
  "./js/**/*.js",
13
  "../lib/medical_transcription_web.ex",
mix.exs CHANGED
@@ -76,7 +76,12 @@ defmodule MedicalTranscription.MixProject do
76
  test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
77
  "assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
78
  "assets.build": ["tailwind default", "esbuild default"],
79
- "assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
 
 
 
 
 
80
  ]
81
  end
82
  end
 
76
  test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
77
  "assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
78
  "assets.build": ["tailwind default", "esbuild default"],
79
+ "assets.deploy": [
80
+ "tailwind default --minify",
81
+ # "tailwind storybook --minify",
82
+ "esbuild default --minify",
83
+ "phx.digest"
84
+ ]
85
  ]
86
  end
87
  end