All Projects → middleman → Middleman Sprockets

middleman / Middleman Sprockets

Licence: mit
Sprockets support for Middleman

Labels

Projects that are alternatives of or similar to Middleman Sprockets

behave-restful
BDD Framework to Test REST Services and APIs
Stars: ✭ 47 (-24.19%)
Mutual labels:  gherkin
Opencypher
Specification of the Cypher property graph query language
Stars: ✭ 534 (+761.29%)
Mutual labels:  gherkin
Jrg
Juno Reverse Geocoder
Stars: ✭ 21 (-66.13%)
Mutual labels:  gherkin
Jekyll Responsive Image
An unopinionated Jekyll plugin for generating and using responsive images
Stars: ✭ 289 (+366.13%)
Mutual labels:  gherkin
Contexts
Behat extension with most custom helper steps
Stars: ✭ 387 (+524.19%)
Mutual labels:  gherkin
Cuke linter
A linting tool for Cucumber
Stars: ✭ 24 (-61.29%)
Mutual labels:  gherkin
flutter gherkin
A Gherkin parsers and runner for Dart and Flutter which is very similar to cucumber
Stars: ✭ 160 (+158.06%)
Mutual labels:  gherkin
Gwen Web
A web automation engine for Gwen.
Stars: ✭ 47 (-24.19%)
Mutual labels:  gherkin
Karate
Test Automation Made Simple
Stars: ✭ 5,497 (+8766.13%)
Mutual labels:  gherkin
Jekyll Scholar
jekyll extensions for the blogging scholar
Stars: ✭ 872 (+1306.45%)
Mutual labels:  gherkin
Middleman Blog
Middleman : Blog Engine Extension
Stars: ✭ 317 (+411.29%)
Mutual labels:  gherkin
Symfonyextension
🎼 Extension integrating Behat with Symfony.
Stars: ✭ 376 (+506.45%)
Mutual labels:  gherkin
Crudecumber
A manual Cucumber runner RubyGem
Stars: ✭ 9 (-85.48%)
Mutual labels:  gherkin
Trema
Full-Stack OpenFlow Framework in Ruby
Stars: ✭ 267 (+330.65%)
Mutual labels:  gherkin
Psalm Plugin Phpunit
A PHPUnit plugin for Psalm
Stars: ✭ 42 (-32.26%)
Mutual labels:  gherkin
bat
Gherkin based DSL for testing HTTP APIs via Cucumber.JS
Stars: ✭ 30 (-51.61%)
Mutual labels:  gherkin
Gherkin
Gherkin parser, written in PHP 5.3+ for Behat project
Stars: ✭ 924 (+1390.32%)
Mutual labels:  gherkin
Jekyll ghost importer
Post importer from Ghost backup files.
Stars: ✭ 57 (-8.06%)
Mutual labels:  gherkin
Cucumber Gradle Parallel
Example of Gradle Running Cucumber Features in Parallel
Stars: ✭ 42 (-32.26%)
Mutual labels:  gherkin
Pantheon Wordpress Upstream Tests
Tests behavior of WordPress Core upstreams for Pantheon. Also within test suites of contrib plugins
Stars: ✭ 12 (-80.65%)
Mutual labels:  gherkin

The master branch is the 4.x version of Middleman-Sprockets.

Middleman-Sprockets

middleman-sprockets is an extension for the Middleman static site generator that allows support for Sprockets in your assets.

Installation

If you're just getting started, install the middleman gem and generate a new project:

gem install middleman
middleman init MY_PROJECT

Then add gem "middleman-sprockets" to your Gemfile and run bundle install

To activate the extension, in your config.rb add:

activate :sprockets

Usage

Configuration

There are currently two options for configuration, imported_asset_path and expose_middleman_helpers.

imported_asset_path [default: 'assets']

This is the path imported/linked assets will be added to the sitemap. For example, in the bower fixture app, the /javascripts/core.js file has //= link "lightbox2/img/close.png". This linked asset will be added to the sitemap at /assets/lightbox2/img/close.png.

To configure, in config.rb:

activate :sprockets do |c|
  c.imported_asset_path = "YOUR_PATH"
end

You can also pass an object (proc/lambda/class) that responds to #call to imported_asset_path to conditionally determine where assets go.

activate :sprockets do |c|
  c.imported_asset_path = ->(sprockets_asset) do
    if sprockets_asset.logical_path =~ /\.js$/
      # all files ending with .js get put in /vendor-js
      File.join('vendor-js', sprockets_asset.logical_path)
    else
      # other assets head to /imported
      File.join('imported', sprockets_asset.logical_path)
    end
  end
end

View the imported_asset_processor test for an example using a class.

expose_middleman_helpers [default: false]

Sometimes you might need sprockets to have access helpers (for example using different keys depending on deployment environment). Getting this to happen is bound to be full of edge cases, so for now it's behind a configuration option.

If you need Middleman helpers in your Sprockets, in config.rb:

activate :sprockets do |c|
  c.expose_middleman_helpers = true
end

Build & Dependency Status

Gem Version Build Status Dependency Status Code Quality

Community

The official community forum is available at: http://forum.middlemanapp.com

Bug Reports

Github Issues are used for managing bug reports and feature requests. If you run into issues, please search the issues and submit new problems: https://github.com/middleman/middleman-sprockets/issues

The best way to get quick responses to your issues and swift fixes to your bugs is to submit detailed bug reports, include test cases and respond to developer questions in a timely manner. Even better, if you know Ruby, you can submit Pull Requests containing Cucumber Features which describe how your feature should work or exploit the bug you are submitting.

How to Run Cucumber Tests

  1. Checkout Repository: git clone https://github.com/middleman/middleman-sprockets.git
  2. Install Bundler: gem install bundler
  3. Run bundle install inside the project root to install the gem dependencies.
  4. Run test cases: bundle exec rake test

To run specs for an individual feature, cucumber features/PATH_TO_FEATURE

Donate

Click here to lend your support to Middleman

License

Copyright (c) 2012-2016 Thomas Reynolds. MIT Licensed, see LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].