ariadne_view_components 0.0.10-x86_64-darwin → 0.0.11-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ariadne/view_components/commands.rb +7 -10
- data/lib/ariadne/view_components/version.rb +1 -1
- data/tailwind.config.js +7 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f326b1e737af85421d02df7d5183c8e88e1e95f3266c8a77195b73e00996542a
|
4
|
+
data.tar.gz: 829adc7c0a111dd2de5b3ebcd43fb6649bc1bf9a71ae72bf1094b70c281093bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fe54b23f3de637c01a3623f06bf933b1b68516227cee01d23999aa5e154448160e6ac36f9f96b8bcdb3b2dead214af824f80f5365b76d90be714e0f13a11953
|
7
|
+
data.tar.gz: 33980b18c400522025cdc1a7d1564a2e3a3d353b60709e63c74aa8fd85cfe76ebbdaf198902e797075b55bb049ac529be957fff13b5779e8d7f1e907c90b5535
|
@@ -20,7 +20,7 @@ module Ariadne
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def executable(
|
23
|
-
exe_path: File.expand_path(File.join(__dir__, "..", "..", "exe"))
|
23
|
+
exe_path: File.expand_path(File.join(__dir__, "..", "..", "..", "exe"))
|
24
24
|
)
|
25
25
|
if Ariadne::ViewComponents::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(p) }
|
26
26
|
raise UnsupportedPlatformException, <<~MESSAGE
|
@@ -62,9 +62,9 @@ module Ariadne
|
|
62
62
|
def compile_command(debug: false, **kwargs)
|
63
63
|
[
|
64
64
|
executable(**kwargs),
|
65
|
-
"-i",
|
66
|
-
"-o",
|
67
|
-
"-c",
|
65
|
+
"-i", local_path("app/assets/stylesheets/ariadne_view_components.css"),
|
66
|
+
"-o", local_path("app/assets/builds/ariadne_view_components.css"),
|
67
|
+
"-c", local_path("tailwind.config.js"),
|
68
68
|
].tap do |command|
|
69
69
|
command << "--minify" unless debug
|
70
70
|
end
|
@@ -77,12 +77,9 @@ module Ariadne
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
-
def
|
81
|
-
|
82
|
-
|
83
|
-
else
|
84
|
-
path
|
85
|
-
end
|
80
|
+
def local_path(path)
|
81
|
+
root = File.expand_path(File.join(__dir__, "..", "..", ".."))
|
82
|
+
File.join(root, path)
|
86
83
|
end
|
87
84
|
end
|
88
85
|
end
|
data/tailwind.config.js
CHANGED
@@ -9,16 +9,17 @@ const CLASS_MAPPINGS = '(?:\\S+|:\\"[\\S-]+\\"): \\"([\\S -]+)\\"'
|
|
9
9
|
const CLASS_CONSTANT = '[A-Z_]+ = \\"([\\S -]+)\\"'
|
10
10
|
const CLASS_RB_REGEX = new RegExp(`(?:${CLASS_MAPPINGS}|${CLASS_CONSTANT})'`, 'g')
|
11
11
|
|
12
|
+
const resolve = require('path').resolve
|
12
13
|
module.exports = {
|
13
14
|
prefix: 'ariadne-',
|
14
15
|
content: {
|
15
16
|
files: [
|
16
|
-
'
|
17
|
-
'
|
18
|
-
'
|
19
|
-
'
|
20
|
-
'
|
21
|
-
'
|
17
|
+
resolve(__dirname, 'public/*.html'),
|
18
|
+
resolve(__dirname, 'app/assets/javascripts/**/*.js'),
|
19
|
+
resolve(__dirname, 'app/components/**/*.erb'),
|
20
|
+
resolve(__dirname, 'app/components/**/*.rb'),
|
21
|
+
resolve(__dirname, 'app/lib/ariadne'),
|
22
|
+
resolve(__dirname, 'static/classes.yml')
|
22
23
|
],
|
23
24
|
extract: {
|
24
25
|
yml: content => {
|