zestui 0.3.0 → 0.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ec9a7130fc2ba0bacd0c1b530e0862b07d5203d851e0f317944ea9272540d95
4
- data.tar.gz: bb4ee1f43d8ea230b8f5f00d5407e99aee14b74d3f6de3f3cc4bb6a25e3cf4e1
3
+ metadata.gz: 6d326c0147dc12550dbb08a2720dc6b55a61684e3425b9677c0e94466ba112a4
4
+ data.tar.gz: 443c20d688cfa9007142c410714fa7528bce441d5c26b039a4d5b8167773eccf
5
5
  SHA512:
6
- metadata.gz: 7c53f567599587c5b2bd8500c35847cd0c551b02a12691ae29e7f318afa5f59066f37c6993248d0ccbc78e7b8ab1f3759302d405fd2416c4e6c4b4985bf7389f
7
- data.tar.gz: 200fbafc54543f738da1649519ae6b2c7901de491c6861a2bd1148644eb8a1f1d0d8fb1abc5024c740b2aa316351b4a5233b497caf3dbe4cd17631deee31e116
6
+ metadata.gz: 65cc61d997a32a88df13bb020d64a56b1d428d558b496ae18d46af052bedc26661d903717ff2d516100e845d9706e63627615487e0d7516ae87ea2bd4ea01573
7
+ data.tar.gz: '091d49b9e17165b7c7ead04d6575e3b10206a3d4feffc2019f41c0b345f797be123f9d45b623b453dbb9e6b98f1618b907eef3a25879a5178358df3def318f0d'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.0] - 2024-02-11
4
+ - Provide information when tailwind config files are not found
5
+
3
6
  ## [0.3.0] - 2023-12-10
4
7
  - Add installer
5
8
 
@@ -3,8 +3,8 @@ module Zestui::Generators
3
3
  desc "Copy ZestUI files"
4
4
  source_root ENV['ZESTUI_PATH']
5
5
 
6
- TAILWIND_CONFIGURATION_PATH = Rails.root.join("tailwind.config.js")
7
- TAILWIND_STYLESHEET_PATH = Rails.root.join("app/assets/stylesheets/application.tailwind.css")
6
+ TAILWIND_CONFIGURATION_PATH = Rails.root.join("config/tailwind.config.js")
7
+ TAILWIND_STYLESHEET_PATH = Rails.root.join("app/assets/stylesheets/application.tailwind.cs")
8
8
 
9
9
  def verify_zestui_path
10
10
  zestui_path = self.class.source_root
@@ -30,6 +30,19 @@ module Zestui::Generators
30
30
  end
31
31
 
32
32
  def configure_tailwind_config
33
+ unless File.exist?(TAILWIND_CONFIGURATION_PATH)
34
+ say "\n"
35
+ say "************" * 10
36
+ say "\n"
37
+ say "#{TAILWIND_CONFIGURATION_PATH} not found", :red
38
+ say "Please follow the manual installation instructions at https://zestui.com/docs/installation#manual-tailwind-config", :yellow
39
+ say "\n"
40
+ say "************" * 10
41
+ say "\n"
42
+ return
43
+ end
44
+
45
+
33
46
  prepend_to_file TAILWIND_CONFIGURATION_PATH do
34
47
  "const zestuiPreset = require('./config/zestui/tailwind/preset');\n\n"
35
48
  end
@@ -43,6 +56,18 @@ module Zestui::Generators
43
56
  end
44
57
 
45
58
  def configure_tailwind_stylesheet
59
+ unless File.exist?(TAILWIND_STYLESHEET_PATH)
60
+ say "\n"
61
+ say "************" * 10
62
+ say "\n"
63
+ say "#{TAILWIND_STYLESHEET_PATH} not found", :red
64
+ say "Please follow the manual installation instructions at https://zestui.com/docs/installation#manual-tailwind-css-config", :yellow
65
+ say "\n"
66
+ say "************" * 10
67
+ say "\n"
68
+ return
69
+ end
70
+
46
71
  gsub_file TAILWIND_STYLESHEET_PATH, /@tailwind (base|components|utilities);/, ''
47
72
 
48
73
  append_to_file TAILWIND_STYLESHEET_PATH do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zestui
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zestui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manu Janardhanan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex-rails