Logo: Relish

  1. Sign in

Project: Pannier v0.3.0

App priming

In order that a Pannier app can maintain processed state
As a developer
I want previously processed assets to be loaded from a manifest file

Background
Given
this code has executed
require 'pannier/mounted'
Scenarios
The app is loaded after a manifest has been generated
Given
these files exist
input/foo.js
And
the file ".assets.rb" contains
input  'input'
output 'output'

package :scripts do
  assets 'foo.js'
end
And
I run pannier process --env production
And
the app is primed in a production environment
When
I request "/foo.js"
Then
the response status should be 200

Last published almost 4 years ago by joecorcoran.