phlex_ui 0.0.1 → 0.0.2
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 +4 -4
- data/lib/phlex_ui.rb +1 -1
- data/tasks/update_tailwind_config.rake +26 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29e085b8d0e7610e5df2e338c62b923980042ea4a00e513db923e269c396e68e
|
|
4
|
+
data.tar.gz: d1ea7147df22c7db15e95ff68bfaeba8b065a32af2e3b08441374c8622342433
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b9c8a9d14c7bb3cdf6a80dca9e451232897919dc10a4da0ba03fc34e126d022360cf54dad2457ee0b4bbdac746cef2dce043db57ec3a8cf704a8a767918b0e0
|
|
7
|
+
data.tar.gz: b60175b105044a7e0fc4c7419bcb35ae0e859e2b76ffb5dfa3cf693cebe4c098c917765f4d6d908bee5e403be4789b7ae044d16bc2e1ac42b04d93bb474ba97b
|
data/lib/phlex_ui.rb
CHANGED
|
@@ -13,7 +13,7 @@ module PhlexUI
|
|
|
13
13
|
# If Rails is defined, load the rake tasks
|
|
14
14
|
class Railtie < Rails::Railtie
|
|
15
15
|
rake_tasks do
|
|
16
|
-
load 'tasks
|
|
16
|
+
load File.join(Gem.loaded_specs['phlex_ui'].full_gem_path, 'tasks', 'update_tailwind_config.rake')
|
|
17
17
|
end
|
|
18
18
|
end if defined?(Rails)
|
|
19
19
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
require 'colorize'
|
|
2
|
+
|
|
3
|
+
namespace :phlex_ui do
|
|
4
|
+
desc "Print the path of phlex_ui gem"
|
|
5
|
+
task print_gem_path: :environment do
|
|
6
|
+
gem_path = Gem.loaded_specs['phlex_ui'].full_gem_path
|
|
7
|
+
puts "Please update the 'content' array in your 'tailwind.config.js' file like this:".colorize(:green)
|
|
8
|
+
puts "
|
|
9
|
+
module.exports = {
|
|
10
|
+
content: [
|
|
11
|
+
'./app/views/**/*.rb',
|
|
12
|
+
'./app/components/**/*rb',
|
|
13
|
+
'./app/views/**/*.{erb,haml,html,slim,rb}',
|
|
14
|
+
'./app/helpers/**/*.rb',
|
|
15
|
+
'./app/assets/stylesheets/**/*.css',
|
|
16
|
+
'./app/javascript/**/*.js',".colorize(:yellow)
|
|
17
|
+
puts "
|
|
18
|
+
// Add this line below so that Tailwind can find the classes in PhlexUI
|
|
19
|
+
'#{gem_path}/**/*.rb',
|
|
20
|
+
".colorize(:green)
|
|
21
|
+
puts "
|
|
22
|
+
],
|
|
23
|
+
}
|
|
24
|
+
".colorize(:yellow)
|
|
25
|
+
end
|
|
26
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phlex_ui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- George Kettle
|
|
@@ -81,6 +81,7 @@ extra_rdoc_files: []
|
|
|
81
81
|
files:
|
|
82
82
|
- lib/phlex_ui.rb
|
|
83
83
|
- lib/phlex_ui/button.rb
|
|
84
|
+
- tasks/update_tailwind_config.rake
|
|
84
85
|
homepage: https://rubygems.org/gems/phlex_ui
|
|
85
86
|
licenses:
|
|
86
87
|
- MIT
|