bridgetown-plugin-tailwindcss 0.1.12 → 0.1.13

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: 6907ae8359a1375066abb794044ba83dacd561ddfd981200134e9958b02e36dc
4
- data.tar.gz: d6a1ba20c529991a1c8778b54c3de218dc6710f69070066b7a8a8ccb38e17851
3
+ metadata.gz: 05c15d69195b9dfe1eb8047f2210d15f9fa57cefc846b3c98add0269fbb4b0da
4
+ data.tar.gz: be528c7167c5d0173c3af625e32c55b19df06fc07176bbfc10bfff04699fc1af
5
5
  SHA512:
6
- metadata.gz: 3cbc34000352ca5d2e28d5357ab44cde6c6f3d4971df7d7e9947272a45b955a516b720f5a05df82ea97e3dd8cecc2d615b4fccef37f7e30aa99f3246a77becf2
7
- data.tar.gz: ccbd01c59e859158372c934a08024934f4943e154824bcc3a6f4b4739804d42f25c4bf6a59057e23b3e872578a74a6dee40c9d596e747fd997bb3106043e2cba
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
- ```javascript
58
- // frontend/styles/index.js
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 < Bridgetown::Command
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
- enabled: true,
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: /\.(js|jsx)/,
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: /\.(s[ac]|c)ss$/,
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
- loader: "postcss-loader",
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TailwindCss
4
- VERSION = "0.1.12"
4
+ VERSION = "0.1.13"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bridgetown-plugin-tailwindcss",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "main": "frontend/javascript/index.js",
5
5
  "repository": {
6
6
  "type": "git",
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.12
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.12
143
+ yarn-add: bridgetown-plugin-tailwindcss@0.1.13
144
144
  post_install_message:
145
145
  rdoc_options: []
146
146
  require_paths: