plutonium 0.19.13 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,11 +31,15 @@ module Pu
31
31
  def install_dependencies
32
32
  [
33
33
  "@radioactive-labs/plutonium",
34
- "@tailwindcss/forms", "@tailwindcss/typography", "flowbite-typography",
35
- "postcss-cli", "cssnano marked"
34
+ "postcss", "postcss-cli", "postcss-import",
35
+ "@tailwindcss/postcss", "@tailwindcss/forms", "@tailwindcss/typography",
36
+ "cssnano", "marked",
37
+ "flowbite-typography"
36
38
  ].each do |package|
37
39
  run "yarn add #{package}"
38
40
  end
41
+
42
+ run "yarn upgrade tailwindcss --latest"
39
43
  end
40
44
 
41
45
  def configure_application
@@ -45,6 +49,10 @@ module Pu
45
49
  registerControllers(application)
46
50
  EOT
47
51
 
52
+ insert_into_file "app/assets/stylesheets/application.tailwind.css", <<~EOT, after: /@import "tailwindcss";\n/
53
+ @config '../../../tailwind.config.js';
54
+ EOT
55
+
48
56
  configure_plutonium "config.assets.stylesheet = \"application\""
49
57
  configure_plutonium "config.assets.script = \"application\""
50
58
  end
@@ -5,8 +5,7 @@ module.exports = {
5
5
  plugins: {
6
6
  [`${plutoniumGemPath}/postcss-gem-import.js`]: {},
7
7
  'postcss-import': {},
8
- tailwindcss: {},
9
- autoprefixer: {},
8
+ '@tailwindcss/postcss': {},
10
9
  cssnano: {}
11
10
  }
12
11
  }
@@ -14,7 +14,7 @@ module Pu
14
14
  def start
15
15
  bundle "annotated", group: :development
16
16
  generate "annotated:install"
17
- copy_file "lib/tasks/auto_annotate_models.rake"
17
+ copy_file "lib/tasks/auto_annotate_models.rake", force: true
18
18
  rescue => e
19
19
  exception "#{self.class} failed:", e
20
20
  end
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.19.13"
2
+ VERSION = "0.20.1"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0