jekyll-webpack 0.1.0 → 0.1.2

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: b4d5ee9f87bc09e143440db5e030ddfa5f6221c382794d9cfdd730de0c06e73c
4
- data.tar.gz: 49d09a16c8ea7bc74d29421ba12eff73cf9addc9737a5de925d51b661a297203
3
+ metadata.gz: e9e56e62d305675a60644d8cd096a91b0b1738dd4acf7d1782a79944d3a1eea5
4
+ data.tar.gz: dab9f105e280cb11b48e0d2632c0e648757ef9a7236ea35224647484951412a0
5
5
  SHA512:
6
- metadata.gz: fda55e3d1ef73539d68323e3d4db684f6b165c0bad85f66e094abcf756bfdc48c94a8102fa2ecbf4d3383339e59c7967eb5253c9034505620cfb195fd2e2f485
7
- data.tar.gz: 0fca987d4c97df697f99592ac08442e658c8fe20e12e8d1706dd7d09d711a97a3f4f79580bad1aa72ad27ac6132bcac95fefcbf60260a334919990d6bbb0b444
6
+ metadata.gz: 57f621cf3eb1ba13eacd520da1b4f70ea0a312afa60a96ee75552beb724bb970bbef7b3f40ec3c234596f55148dfe3095fd77a0de1b0e0da509c9a80179d72f8
7
+ data.tar.gz: 12f7e08a0a3c7a0f0e610a69e5c5b060bd2de8983b75467db8c5cc8b09f1696a24a56ee5e16512cfe41363febd87d4f929b3471e474ba42172bd50bb852358d9
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /spec/fixtures/.jekyll-cache/
10
10
  /spec/fixtures/_site/
11
11
  /spec/fixtures/node_modules/
12
+ /*.gem
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-webpack (0.1.0)
4
+ jekyll-webpack (0.1.1)
5
5
  jekyll
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # Jekyll::Webpack
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jekyll/webpack`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This plugin will allow you to build your assets with Webpack _after_ Jekyll has compiled your site to the `_site` folder. You will need to have Webpack installed at the root of your project in order for this to work.
4
+
5
+ ## Why?
6
+
7
+ This adds Webpack at a sane point in the build pipeline and will also allow you to parameterize your webpack and other JS config files by prepending them with front matter, before the compilation occurs. You can see a functioning excample in the `spec/fixtures` folder:-
8
+
9
+ There is a `_data/tailwind.yml` file in the fixure site that's picked up by adding a frontmatter declaration in `tailwind.config.yml`.
4
10
 
5
- TODO: Delete this and the text above, and describe your gem
6
11
 
7
12
  ## Installation
8
13
 
@@ -20,19 +25,28 @@ Or install it yourself as:
20
25
 
21
26
  $ gem install jekyll-webpack
22
27
 
28
+ And add the following to your site's `_config.yml`
29
+
30
+ ```yml
31
+ plugins:
32
+ - jekyll-webpack
33
+ ```
34
+
23
35
  ## Usage
24
36
 
25
- TODO: Write usage instructions here
37
+ In your root Jekyll project folder you need to have Webpack installed, so:-
38
+
39
+ `yarn add webpack webpack-cli --dev`
26
40
 
27
41
  ## Development
28
42
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
43
+ After checking out the repo, run `bin/setup` to install dependencies. Then `cd spec/fixtures && yarn` to install required JS dependencies for specs. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
44
 
31
45
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
46
 
33
47
  ## Contributing
34
48
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-webpack. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/jekyll-webpack/blob/master/CODE_OF_CONDUCT.md).
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tevio/jekyll-webpack. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/tevio/jekyll-webpack/blob/master/CODE_OF_CONDUCT.md).
36
50
 
37
51
 
38
52
  ## License
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
 
9
9
  spec.summary = %q{Compile assets with webpack}
10
10
  spec.description = %q{Once Jekyll has built your sites HTML, run webpack against the compiled _site}
11
- spec.homepage = "http://martian.media"
11
+ spec.homepage = "https://github.com/tevio/jekyll-webpack"
12
12
  spec.license = "MIT"
13
13
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
14
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Webpack
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-webpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Martin
@@ -131,11 +131,11 @@ files:
131
131
  - jekyll-webpack.gemspec
132
132
  - lib/jekyll/webpack.rb
133
133
  - lib/jekyll/webpack/version.rb
134
- homepage: http://martian.media
134
+ homepage: https://github.com/tevio/jekyll-webpack
135
135
  licenses:
136
136
  - MIT
137
137
  metadata:
138
- homepage_uri: http://martian.media
138
+ homepage_uri: https://github.com/tevio/jekyll-webpack
139
139
  source_code_uri: https://github.com/mml/jekyll-webpack
140
140
  post_install_message:
141
141
  rdoc_options: []