bridgetown-plugin-tailwindcss 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -6
- data/lib/bridgetown-plugin-tailwindcss/command.rb +16 -17
- data/lib/bridgetown-plugin-tailwindcss/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c15d69195b9dfe1eb8047f2210d15f9fa57cefc846b3c98add0269fbb4b0da
|
4
|
+
data.tar.gz: be528c7167c5d0173c3af625e32c55b19df06fc07176bbfc10bfff04699fc1af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f537774f6d165f4d10366a378431d581eb1a7acecbcc1c4f973d5d76f554a6ac78175522bd01906e1f728aaa9d002977f8dc8241633af1e03a1832744cf8a2e2
|
7
|
+
data.tar.gz: 1fb7440d903d0f52a711ae9ed6c2e3c3744241ef52c051d97a65918099bddba42b64d13face263f874074237b736a5227ace766761d91d2c64191b736c1a297e
|
data/README.md
CHANGED
@@ -52,13 +52,27 @@ where friendly folks are standing by to help you build and release your plugin o
|
|
52
52
|
**NOTE:** make sure you add the `bridgetown-plugin` [topic](https://github.com/topics/bridgetown-plugin) to your
|
53
53
|
plugin's GitHub repo so the plugin or theme will show up on [Bridgetown's official Plugin Directory](https://www.bridgetownrb.com/plugins)! (There may be a day or so delay before you see it appear.)
|
54
54
|
|
55
|
+
## Usage
|
56
|
+
|
55
57
|
|
58
|
+
```bash
|
59
|
+
bridgetown new mysite
|
60
|
+
cd mysite
|
61
|
+
bridgetown tailwind_init
|
62
|
+
```
|
56
63
|
|
57
|
-
```
|
58
|
-
|
59
|
-
@import 'tailwindcss/base';
|
60
|
-
@import 'tailwindcss/components';
|
61
|
-
@import 'tailwindcss/utilities';
|
64
|
+
```ruby
|
65
|
+
# Gemfile
|
62
66
|
|
63
|
-
|
67
|
+
# ...
|
68
|
+
group :bridgetown_plugins do
|
69
|
+
gem "bridgetown-plugin-tailwindcss", "~> 0.1.13"
|
70
|
+
end
|
64
71
|
```
|
72
|
+
|
73
|
+
## Issues
|
74
|
+
|
75
|
+
Right now, the script does not do a smart replace of
|
76
|
+
`webpack.config.js`. If you have a webpack config different from the
|
77
|
+
stock version of Bridgetown it will be replaced with the default
|
78
|
+
bridgetown version with a PostCss loader.
|
@@ -5,7 +5,7 @@ require_relative "utils"
|
|
5
5
|
|
6
6
|
module Bridgetown
|
7
7
|
module Commands
|
8
|
-
class TailwindInit <
|
8
|
+
class TailwindInit < Command
|
9
9
|
ACTIONS = TailwindCss::Utils::Actions.new
|
10
10
|
|
11
11
|
class << self
|
@@ -58,7 +58,7 @@ module Bridgetown
|
|
58
58
|
<<~TAILWIND
|
59
59
|
module.exports = {
|
60
60
|
purge: {
|
61
|
-
|
61
|
+
mode: 'production',
|
62
62
|
content: ['./src/**/*.html'],
|
63
63
|
},
|
64
64
|
theme: {
|
@@ -104,7 +104,7 @@ module Bridgetown
|
|
104
104
|
module: {
|
105
105
|
rules: [
|
106
106
|
{
|
107
|
-
test:
|
107
|
+
test: /.(js|jsx)/,
|
108
108
|
use: {
|
109
109
|
loader: "babel-loader",
|
110
110
|
options: {
|
@@ -122,7 +122,7 @@ module Bridgetown
|
|
122
122
|
},
|
123
123
|
},
|
124
124
|
{
|
125
|
-
test:
|
125
|
+
test: /.(s[ac]|c)ss$/,
|
126
126
|
use: [
|
127
127
|
MiniCssExtractPlugin.loader,
|
128
128
|
"css-loader",
|
@@ -137,21 +137,21 @@ module Bridgetown
|
|
137
137
|
},
|
138
138
|
},
|
139
139
|
},
|
140
|
+
{
|
141
|
+
loader: "postcss-loader",
|
142
|
+
options: {
|
143
|
+
ident: "postcss",
|
144
|
+
plugins: [
|
145
|
+
require("postcss-import"),
|
146
|
+
require("tailwindcss"),
|
147
|
+
require("autoprefixer"),
|
148
|
+
],
|
149
|
+
},
|
150
|
+
},
|
140
151
|
],
|
141
152
|
},
|
142
153
|
{
|
143
|
-
|
144
|
-
options: {
|
145
|
-
ident: "postcss",
|
146
|
-
plugins: [
|
147
|
-
require("postcss-import"),
|
148
|
-
require("tailwindcss"),
|
149
|
-
require("autoprefixer"),
|
150
|
-
],
|
151
|
-
},
|
152
|
-
},
|
153
|
-
{
|
154
|
-
test: /\.woff2?$|\.ttf$|\.eot$|\.svg$/,
|
154
|
+
test: /.woff2?$|.ttf$|.eot$|.svg$/,
|
155
155
|
loader: "file-loader",
|
156
156
|
options: {
|
157
157
|
outputPath: "../fonts",
|
@@ -161,7 +161,6 @@ module Bridgetown
|
|
161
161
|
],
|
162
162
|
},
|
163
163
|
};
|
164
|
-
|
165
164
|
WEBPACK
|
166
165
|
end
|
167
166
|
end
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-plugin-tailwindcss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konnor Rogers
|
@@ -140,7 +140,7 @@ homepage: https://github.com/paramagicdev/bridgetown-plugin-tailwindcss
|
|
140
140
|
licenses:
|
141
141
|
- MIT
|
142
142
|
metadata:
|
143
|
-
yarn-add: bridgetown-plugin-tailwindcss@0.1.
|
143
|
+
yarn-add: bridgetown-plugin-tailwindcss@0.1.13
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|
146
146
|
require_paths:
|