Created
October 8, 2013 07:42
-
-
Save edds/6881064 to your computer and use it in GitHub Desktop.
Test the creation of buttons using the govuk_frontend_toolkit.
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
#!/bin/bash | |
# Make folder for our test and cd into it | |
mkdir toolkit_test | |
cd toolkit_test | |
# Clone down a new copy of the toolkit | |
git clone https://github.com/alphagov/govuk_frontend_toolkit.git | |
# Make sub folder for the test so the toolkit isn't in a child folder | |
mkdir myproj | |
cd myproj | |
# Create a very simple Sass file | |
cat > base.scss << EOF | |
@import "design-patterns/buttons"; | |
@import "colours"; | |
.button { | |
@include button; | |
} | |
EOF | |
# Set the Sass load path to include the toolkit and compile our Sass file | |
sass --load-path ../govuk_frontend_toolkit/stylesheets base.scss base.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment