Skip to content

Commit e9cb936

Browse files
frankierobertopaulrobertlloyd
authored andcommitted
Add a build of the CSS to tests
This should help us catch where the sass doesn't compile for some reason?
1 parent eacbcaf commit e9cb936

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules/
33
npm-debug.log
44
_site
55
.DS_Store
6+
tmp/

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"lint:scss:fix": "stylelint '**/*.scss' --fix",
3737
"lint": "npm run lint:prettier && npm run lint:js && npm run lint:scss",
3838
"lint:fix": "npm run lint:prettier:fix && npm run lint:js:fix && npm run lint:scss:fix",
39-
"test": "npm run lint && npx govuk-prototype-kit@latest validate-plugin",
39+
"test": "npm run lint && npx govuk-prototype-kit@latest validate-plugin && npm run test:css",
40+
"test:css": "npx sass --pkg-importer=node --load-path=. --quiet-deps src/x-govuk/index.scss ./tmp/output.css",
4041
"prepublishOnly": "npm run package",
4142
"package": "rollup --config",
4243
"release": "np"

0 commit comments

Comments
 (0)