Skip to content

Commit

Permalink
Ensure dist contents are not included in govuk directory
Browse files Browse the repository at this point in the history
This commit fixes the issues identified while trying to run
`npm run build:dist`.

Current and desired directory structure:

dist
├── assets
│   ├── fonts
│   └── images
├── VERSION.txt
├── govuk-frontend-2.13.0.min.css
├── govuk-frontend-2.13.0.min.js
└── govuk-frontend-ie8-2.13.0.min.css

See proposal for more detail
https://github.com/alphagov/govuk-design-system-architecture/blob/master/proposals/005-namespace-govuk-frontend-nunjucks-sass-using-a-nested-folder-structure.md
  • Loading branch information
aliuk2012 committed Jun 19, 2019
1 parent bed88d5 commit fc8d1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/gulp/__tests__/after-build-dist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('dist/', () => {
files => {
return files
// Remove /package prefix from filenames
.map(file => file.replace(/^src\/assets\//, ''))
.map(file => file.replace(/^src\/govuk\/assets\//, ''))
// Sort to make comparison easier
.sort()
},
Expand Down

0 comments on commit fc8d1c9

Please sign in to comment.