middleman-npm_build 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 5a1966f1446601121842744dc07369714bcb2a30
4
- data.tar.gz: 12e4021af4822f0b82e7bdfc5d21d5fcadc9d070
3
+ metadata.gz: 8c4acc5c3d415201d10ba2798a89ef770761e8f8
4
+ data.tar.gz: f9b9482760c2a86aa71af66051f6936b54faf407
5
5
  SHA512:
6
- metadata.gz: 1d0cc39e8bccd549b215e7c10bb58e6e897f0a062516a63125eb08bb8ab0280b2df89efc9d2dc8e14522a060da73818921aa2fea285d73301ebcef6279ef2386
7
- data.tar.gz: 4d2199df73a489aa6cfa6814fc056d30793ff7ce33f319933aedd8345caf46b5945c3ec312af239d9d87afec15f10f75514130ed85ebd0043022bda8c736aef7
6
+ metadata.gz: 6e051b54ea6ab199806ca8fe7a34cc07951094f3e258351877cc20e9c87e6df505739275d2d84682c29e0b1f2261cd9b525d8a8b04f7b800df577ce7bda5d760
7
+ data.tar.gz: 0ea8afddc44d16a2b297c265ba3abd8a126da1b680da0ee424381fddf79a52f21909da38f167b21a1ec3fd5f4fcbdf6283ecd4b6d731f9ac40e9f5b98324c0e1
data/.gitignore CHANGED
@@ -2,4 +2,27 @@
2
2
  /Gemfile.lock
3
3
 
4
4
  # Ignore pkg folder
5
- /pkg
5
+ /pkg
6
+
7
+ *.gem
8
+ *.rbc
9
+ .bundle
10
+ .config
11
+ .yardoc
12
+ Gemfile.lock
13
+ InstalledFiles
14
+ _yardoc
15
+ coverage
16
+ doc/
17
+ lib/bundler/man
18
+ pkg
19
+ rdoc
20
+ spec/reports
21
+ test/tmp
22
+ test/version_tmp
23
+ tmp
24
+ *.bundle
25
+ *.so
26
+ *.o
27
+ *.a
28
+ mkmf.log
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Middleman::NpmBuild
2
2
 
3
- Runs a generic `npm` build command after your Middleman site has finished building.
3
+ Runs a generic `npm` build command before your Middleman site starts building.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,7 @@ Add this line to your `config.rb`:
18
18
 
19
19
  `activate :npm_build`
20
20
 
21
- This will run `npm run build` after your Middleman site has finished building.
21
+ This will run `npm run build` before your Middleman site starts building.
22
22
 
23
23
  You can also pass a custom build function (defined in your `package.json` file) as below:
24
24
 
@@ -9,7 +9,7 @@ class NpmBuild < ::Middleman::Extension
9
9
  super
10
10
 
11
11
  build_command = options.build_command
12
- app.after_build do |builder|
12
+ app.before_build do |builder|
13
13
  system "npm run #{build_command}"
14
14
  end
15
15
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "middleman-npm_build"
6
- s.version = "0.0.4"
6
+ s.version = "0.0.5"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Jesse Hixson"]
9
9
  s.email = ["hixsonj@gmail.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-npm_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Hixson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core