jekyll-postcss 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 783a99a72b7d4fb31f5922d29d1e72666881e659337f911c085215407470c8c6
4
- data.tar.gz: ff9ffb4912761b9672d6193374d5beb8c89b29abfced491550d9cd1424281d08
3
+ metadata.gz: b814559fcadf25906a68dbb7e40926a72fa75aa92e293e3d39454dd9bcf784cd
4
+ data.tar.gz: 779270e4ff58d9b35a4c46dbfbab8be77998edd9c2307208a7654b27ab2841f2
5
5
  SHA512:
6
- metadata.gz: 1a143b3a2fd2af024bb34cf85438831b05983b84f1b2b595fa8d2a3b7d247f4f5e3e665ffbd077f4a5b45af11471ebbef0852a4384c92768fd1a691e511de55c
7
- data.tar.gz: 3f8c7c492681f71f99655b5833f02cac86493703f2ea178ccdbb0fafbd62ea4a185b4686be00a34c9d2bdbe5b2612cf796c3d77c63f47934b9be8d9e1c731487
6
+ metadata.gz: 65fb6ab42952f39ae49851e0600539fcac18ad4505fb817db67690c518984f73e09672d6dd6a00a2d989c05a054d13c15d2a88a0fc4fa0043fb654d48b3d43c4
7
+ data.tar.gz: 72ff0a8ad7f284634faafd8adf4b33baf77532af7ea680ce0e05a89c1107d9e64643934477917d63106dfa0abb42b75f985cb6a6de60acb7fc3ef091384a9571
data/.gitignore CHANGED
@@ -11,5 +11,5 @@
11
11
  .rspec_status
12
12
 
13
13
  Gemfile.lock
14
- node_modules/
14
+ node_modules
15
15
  yarn-error.log
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Process SCSS/Sass files
6
+
7
+ The plugin now processes scss and sass files in addition to css files. This requires using the [postcss-scss](https://github.com/postcss/postcss-scss) syntax parser in your postcss.config.js
8
+
9
+ ```javascript
10
+ module.exports = {
11
+ parser: 'postcss-scss',
12
+ plugins: [
13
+ // ...
14
+ ]
15
+ };
16
+
17
+ jekyll-postcss has a higher priority, so it will hand off the the postcss output to jekyll-sass-converter to finish off compiling.
18
+
19
+ ```
20
+
3
21
  ## 0.3.2
4
22
 
5
23
  - Output valid CSS when running outside the development environment
@@ -12,6 +30,7 @@
12
30
 
13
31
  - Update rake
14
32
  - Performance improvement
33
+ - [Breaking?]: Uses `postcss` instead of `postcss-cli`. I think that it will continue to work without changing your dependencies since `postcss-cli` uses `postcss` as a dependency.
15
34
 
16
35
  ## 0.2.2
17
36
 
data/README.md CHANGED
@@ -41,7 +41,20 @@ module.exports = {
41
41
  };
42
42
  ```
43
43
 
44
- All files with the `.css` extension will now be processed by PostCSS.
44
+ All CSS and SCSS/Sass files will now be processed by PostCSS.
45
+
46
+ ### SCSS/Sass
47
+
48
+ If using SCSS/Sass, you must have [postcss-scss](https://github.com/postcss/postcss-scss) installed and configured in your `postcss.config.js`
49
+
50
+ ```javascript
51
+ module.exports = {
52
+ parser: 'postcss-scss',
53
+ plugins: [
54
+ // ...
55
+ ]
56
+ };
57
+ ```
45
58
 
46
59
  ### Notes
47
60
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module PostCss
5
- VERSION = "0.3.2"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
@@ -7,7 +7,7 @@ module Jekyll
7
7
  module Converters
8
8
  class PostCss < Converter
9
9
  safe true
10
- priority :low
10
+ priority :normal
11
11
 
12
12
  def initialize(config = {})
13
13
  super
@@ -19,11 +19,11 @@ module Jekyll
19
19
  end
20
20
 
21
21
  def matches(ext)
22
- ext.casecmp(".css").zero?
22
+ [".css", ".scss", ".sass"].include?(ext.downcase)
23
23
  end
24
24
 
25
- def output_ext(_ext)
26
- ".css"
25
+ def output_ext(ext)
26
+ ext
27
27
  end
28
28
 
29
29
  def convert(content)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-postcss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hanberg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-17 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler