Skip to content

Commit

Permalink
Merge pull request alphagov#69 from alphagov/add-sass-linter
Browse files Browse the repository at this point in the history
Add Sass linter
  • Loading branch information
36degrees authored Nov 1, 2017
2 parents 7dbaa25 + cf4a0b0 commit 94225f6
Show file tree
Hide file tree
Showing 7 changed files with 3,231 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: ruby
script:
- bundle exec rspec
- npm run lint
- bundle exec middleman build

env:
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@ tests from command line by running:
bundle exec rspec
```

[rspec]: https://relishapp.com/rspec
[rspec]: https://relishapp.com/rspec

## Running the Sass linter

We are using the [sass-lint][sass-lint] plugin to lint the Sass files in
`source/stylesheets`. You can run the linter from command line by running:

```
npm run lint
```

[sass-lint]: https://github.com/juanfran/gulp-scss-lint

## GOV.UK Frontend packages

Expand All @@ -38,6 +49,7 @@ For the time being we are consuming private packages. To access private packages
When changes are pushed to GitHub [Travis][travis] will:

- run the tests
- lint the Sass stylesheets in `source/stylesheets`
- run the `middleman build` command to ensure that the site can be generated

If any of these fail, this will be reported in the GitHub status checks
Expand Down
Loading

0 comments on commit 94225f6

Please sign in to comment.