diff --git a/package.json b/package.json index 3234d40c..8a47c9ba 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "scripts": { "start": "bundle exec middleman server", "postinstall": "npm run build:sassdoc && npm run build:sassdocv5 && npm run build:sassdocv4", - "build:sassdoc": "sassdoc --no-update-notifier --parse node_modules/govuk-frontend/dist/govuk/ > data/sassdoc.json", - "build:sassdocv5": "sassdoc --no-update-notifier --parse node_modules/govuk-frontend-v5/dist/govuk/ > data/sassdoc-v5.json", - "build:sassdocv4": "sassdoc --no-update-notifier --parse node_modules/govuk-frontend-v4/govuk/ > data/sassdoc-v4.json", + "build:sassdoc": "sassdoc -c sassdoc.config.json --parse node_modules/govuk-frontend/dist/govuk/ > data/sassdoc.json", + "build:sassdocv5": "sassdoc -c sassdoc.config.json --parse node_modules/govuk-frontend-v5/dist/govuk/ > data/sassdoc-v5.json", + "build:sassdocv4": "sassdoc -c sassdoc.config.json --parse node_modules/govuk-frontend-v4/govuk/ > data/sassdoc-v4.json", "lint": "standard", "check-links": "hyperlink --canonicalroot https://frontend.design-system.service.gov.uk --internal --recursive build/index.html --skip 'property=\"og:image\"' --skip 'application.js' | tee check-links.log | tap-mocha-reporter min" }, diff --git a/sassdoc.config.json b/sassdoc.config.json new file mode 100644 index 00000000..e6391941 --- /dev/null +++ b/sassdoc.config.json @@ -0,0 +1,4 @@ +{ + "exclude": ["**/*.import.scss"], + "no-update-notifier": true +} \ No newline at end of file