No commit activity in last 3 years
No release in over 3 years
Runs `npm run build` after the middleman build command finishes. You can configure your build process via your package.json file, or pass in a custom build process name.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Middleman::NpmBuild

Runs a generic npm build command before your Middleman site starts building.

Installation

Add this line to your Middleman app's Gemfile:

gem 'middleman-npm_build'

And then execute:

$ bundle install

Usage

Add this line to your config.rb:

activate :npm_build

This will run npm run build before your Middleman site starts building.

You can also pass a custom build function (defined in your package.json file) as below:

activate :npm_build, build_command: 'custom_build_function'

Contributing

  1. Fork it ( https://github.com/jhixson/middleman-npm_build/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request