-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wrapper
govuk-frontend
package for workspace
Locally links `govuk-frontend` to ./package/src but npm publish can continue from ./package/dist until build directories are deleted in future
- Loading branch information
1 parent
2e70c64
commit 08f1d4a
Showing
21 changed files
with
124 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"watch": ["./src", "../package/src/govuk/**/*.{json,yaml}"], | ||
"ignore": ["**/*.test.*"], | ||
"ignore": ["./src/javascripts/**", "**/*.test.*"], | ||
"ext": "mjs,json,yaml", | ||
"quiet": true | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as GOVUKFrontend from 'govuk-frontend' | ||
|
||
// @ts-expect-error Manually add globals to window for tests | ||
window.GOVUKFrontend = GOVUKFrontend |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@import "../../../package/src/govuk/all-ie8"; | ||
@import "govuk/all-ie8"; | ||
@import "partials/app"; | ||
@import "partials/banner"; |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@import "govuk-frontend/govuk/all"; | ||
@import "govuk/all"; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"workspaces": [ | ||
"app", | ||
"docs/examples/*", | ||
"package/dist", | ||
"package", | ||
"shared/*" | ||
], | ||
"scripts": { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"private": true, | ||
"name": "govuk-frontend", | ||
"description": "Used only for the development of GOV.UK Frontend, see `package/dist/package.json` for the published `package.json`", | ||
"main": "src/govuk/all.mjs", | ||
"exports": { | ||
".": { | ||
"sass": "./src/govuk/all.scss", | ||
"import": "./src/govuk/all.mjs", | ||
"default": "./src/govuk/all.mjs" | ||
}, | ||
"./dist/*": "./dist/*", | ||
"./package.json": "./dist/package.json", | ||
"./*": "./src/*" | ||
}, | ||
"sass": "src/govuk/all.scss", | ||
"engines": { | ||
"node": "^18.12.0", | ||
"npm": "^8.1.0 || ^9.1.0" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"cheerio": "^1.0.0-rc.12", | ||
"govuk-frontend-config": "*", | ||
"govuk-frontend-helpers": "*", | ||
"govuk-frontend-lib": "*", | ||
"nunjucks": "^3.2.3", | ||
"outdent": "^0.8.0", | ||
"sass-embedded": "^1.60.0", | ||
"sassdoc": "^2.7.4", | ||
"slash": "^5.0.0", | ||
"html-validate": "7.15.1", | ||
"puppeteer": "^19.9.0" | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"include": ["**/*.js", "**/*.mjs"] | ||
"include": ["**/*.js", "**/*.mjs", "../../package"] | ||
} |
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
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
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