Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Latest commit

 

History

History
73 lines (44 loc) · 2.81 KB

README.md

File metadata and controls

73 lines (44 loc) · 2.81 KB

NOTE: This repo has been deprecated. Starting with Bridgetown 0.19.2, popular automations are now bundled with the Bridgetown CLI directly. Read the Bundled Configurations documentations to learn more.


Bridgetown Automations

A collection of helpful automation scripts that can be applied to Bridgetown websites.

Simply run bundle exec bridgetown apply URL, where URL is this repo URL along with the automation filename. You can also run an automation as part of a new site setup using bundle exec bridgetown new mysite -a URL.

If you already have an automation script you like to use, you can include additional automations by calling apply_from_url. For example:

# my_script.rb

apply_from_url "https://github.com/bridgetownrb/automations/netlify.rb"

🖇 To include your automation, file a pull request and we'll review it for inclusion in this list!

Other Repos:

In addition to the automations here, check out some other GitHub repos which include Bridgetown automations:

List of Automations:

Swup.js Page Transitions

⚡️ Adds Swup for fast animated page transitions that make your site feel modern and cool. (If you've used Turbolinks in the past, you'll love Swup!)

🛠 Review or Install:

bundle exec bridgetown apply https://github.com/bridgetownrb/automations/swup.rb

PurgeCSS Post-Build Hook

🧼 Adds a builder plugin which runs PurgeCSS against the output HTML + frontend Javascript and produces a much smaller CSS output bundle for sites which use large CSS frameworks.

🛠 Review or Install:

bundle exec bridgetown apply https://github.com/bridgetownrb/automations/purgecss.rb

Automated Test Suite using Minitest

⚙️ Adds a basic test suite using Minitest and Rails DOM assertions for extremely fast verification of your output HTML.

🛠 Review or Install:

bundle exec bridgetown apply https://github.com/bridgetownrb/automations/minitesting.rb

Netlify TOML Configuration

⚙️ Adds a basic configuration to your site for use in Netlify deployments.

🛠 Review or Install:

bundle exec bridgetown apply https://github.com/bridgetownrb/automations/netlify.rb