diff --git a/README.md b/README.md index 543e9de..e9c4b2a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ don't hesitate to check out some demo apps: - [examples/demo_app](./examples/demo_app) uses [`webpack`] to process javascript assets while `sprockets` handles other assets - [examples/demo_app-rails5](./examples/demo_app-rails5) is the same app but - using rails 5 instead of rails 6 (`external_asset_pipeline` supports both) + using rails 5 (`external_asset_pipeline` supports rails >= 5) - [examples/demo_app-brunch](./examples/demo_app-brunch) uses [`brunch`] to manage all assets without `sprockets` - [examples/demo_app-gulp](./examples/demo_app-gulp) uses [`gulp`] in addition @@ -39,10 +39,6 @@ And then execute: $ bundle -Or install it yourself as: - - $ gem install external_asset_pipeline - ## Usage In `config/application.rb`, after `Bundler.require(*Rails.groups)`, add: @@ -175,9 +171,14 @@ container. ## Development -After checking out the repo, run `bin/setup` to install dependencies. Then, run -`rake test` to run the tests. You can also run `bin/console` for an interactive -prompt that will allow you to experiment. +After checking out the repo, run `script/bootstrap` to install dependencies. +Then, run `bundle exec rake test:integration:prepare` to set up the integration +test environment and run `script/test` to run the tests. By default, that will +exercise the `demo_app` example application. To exercise a different example +application, set the `EXAMPLE_APP` environment variable to the corresponding +directory name (e.g. `EXAMPLE_APP=demo_app-rollup`). To lint the code, run +`script/lint`. You can also run `script/console` for an interactive prompt that +will allow you to experiment. 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 diff --git a/bin/setup b/bin/setup deleted file mode 100755 index dce67d8..0000000 --- a/bin/setup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' -set -vx - -bundle install - -# Do any other automated setup that you need to do here diff --git a/bin/console b/script/console similarity index 100% rename from bin/console rename to script/console