-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3034 from alphagov/migrate-to-dart-sass
Migrate to Dart Sass from LibSass
- Loading branch information
Showing
12 changed files
with
62 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
web: bin/rails server -p 3090 | ||
css: bin/rails dartsass:watch |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
//= link_tree ../images | ||
//= link application.js | ||
//= link webchat.js | ||
//= link application.css | ||
//= link components/_back-to-top.css | ||
//= link components/_banner.css | ||
//= link components/_contents-list-with-body.css | ||
//= link components/_download-link.css | ||
//= link components/_error-message.css | ||
//= link components/_figure.css | ||
//= link components/_important-metadata.css | ||
//= link components/_published-dates.css | ||
//= link components/_publisher-metadata.css | ||
//= link views/_guide.css | ||
//= link views/_html-publication.css | ||
//= link views/_manual.css | ||
//= link views/_published-dates-button-group.css | ||
//= link views/_service_manual_guide.css | ||
//= link views/_specialist-document.css | ||
//= link views/_travel-advice.css | ||
//= link_tree ../builds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
if ! gem list foreman -i --silent; then | ||
echo "Installing foreman..." | ||
gem install foreman | ||
fi | ||
|
||
exec foreman start -f Procfile.dev "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
APP_STYLESHEETS = { | ||
"application.scss" => "application.css", | ||
"components/_back-to-top.scss" => "components/_back-to-top.css", | ||
"components/_banner.scss" => "components/_banner.css", | ||
"components/_contents-list-with-body.scss" => "components/_contents-list-with-body.css", | ||
"components/_download-link.scss" => "components/_download-link.css", | ||
"components/_error-message.scss" => "components/_error-message.css", | ||
"components/_figure.scss" => "components/_figure.css", | ||
"components/_important-metadata.scss" => "components/_important-metadata.css", | ||
"components/_published-dates.scss" => "components/_published-dates.css", | ||
"components/_publisher-metadata.scss" => "components/_publisher-metadata.css", | ||
"views/_guide.scss" => "views/_guide.css", | ||
"views/_html-publication.scss" => "views/_html-publication.css", | ||
"views/_manual.scss" => "views/_manual.css", | ||
"views/_published-dates-button-group.scss" => "views/_published-dates-button-group.css", | ||
"views/_service_manual_guide.scss" => "views/_service_manual_guide.css", | ||
"views/_specialist-document.scss" => "views/_specialist-document.css", | ||
"views/_travel-advice.scss" => "views/_travel-advice.css", | ||
}.freeze | ||
|
||
all_stylesheets = APP_STYLESHEETS.merge(GovukPublishingComponents::Config.all_stylesheets) | ||
Rails.application.config.dartsass.builds = all_stylesheets | ||
|
||
Rails.application.config.dartsass.build_options << " --quiet-deps" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters