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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +19 -5
- data/jekyll-webpack.gemspec +1 -1
- data/lib/jekyll/webpack/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9e56e62d305675a60644d8cd096a91b0b1738dd4acf7d1782a79944d3a1eea5
|
4
|
+
data.tar.gz: dab9f105e280cb11b48e0d2632c0e648757ef9a7236ea35224647484951412a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f621cf3eb1ba13eacd520da1b4f70ea0a312afa60a96ee75552beb724bb970bbef7b3f40ec3c234596f55148dfe3095fd77a0de1b0e0da509c9a80179d72f8
|
7
|
+
data.tar.gz: 12f7e08a0a3c7a0f0e610a69e5c5b060bd2de8983b75467db8c5cc8b09f1696a24a56ee5e16512cfe41363febd87d4f929b3471e474ba42172bd50bb852358d9
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# Jekyll::Webpack
|
2
2
|
|
3
|
-
|
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
|
-
|
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/
|
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
|
data/jekyll-webpack.gemspec
CHANGED
@@ -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 = "
|
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
|
|
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.
|
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:
|
134
|
+
homepage: https://github.com/tevio/jekyll-webpack
|
135
135
|
licenses:
|
136
136
|
- MIT
|
137
137
|
metadata:
|
138
|
-
homepage_uri:
|
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: []
|