Skip to content

Commit

Permalink
Merge pull request #301 from qld-gov-au/QOLOE-134-Various-UATs
Browse files Browse the repository at this point in the history
[QOLOE-134] Various UATs
  • Loading branch information
duttonw authored Jun 24, 2024
2 parents 44883ef + 3405101 commit affc431
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 32 deletions.
39 changes: 15 additions & 24 deletions .esbuild/plugins/qgds-plugin-clean-output-folders.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
import fs from "fs";
import log from "../helpers/logger.js";

/**
* Clean the output folders /dist.
* Skip cleaning during the initial build or initial watch mode.
*
* @returns {Object} Object with a name and a setup function.
*/
export default function cleanFoldersPlugin() {
let isInitialBuild = true;
return {
name: "qgds-clean-output-folders",
setup(build) {
build.onStart(() => {
if (!isInitialBuild) {
//Console feedback
log("cyan", `\u{1F4C2} Cleaning /dist folders\n\n`);
//Console feedback
log("cyan", `\u{1F4C2} Cleaning /dist folders\n\n`);

// Clean the output folders
const { outdir, outfile } = build.initialOptions;
// Clean the output folders
const { outdir, outfile } = build.initialOptions;

if (outdir && fs.existsSync(outdir)) {
fs.rmSync(outdir, { recursive: true });
}

if (outfile && fs.existsSync(outfile)) {
fs.rmSync(outfile);
}
if (outdir && fs.existsSync(outdir)) {
fs.rmSync(outdir, { recursive: true });
}

// // Clean the docs folder
// const docsdir = "./docs/";
// if (fs.existsSync(docsdir)) {
// fs.rmSync(docsdir, { recursive: true });
// }
if (outfile && fs.existsSync(outfile)) {
fs.rmSync(outfile);
}

// // Clean the docs folder
// const docsdir = "./docs/";
// if (fs.existsSync(docsdir)) {
// fs.rmSync(docsdir, { recursive: true });
// }
});
},
};
Expand Down
6 changes: 2 additions & 4 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ const config = {
"../src/stories/Introduction.mdx",
// Include all stories found under the src/components directory ( For example: alert/alert.stories.js )
// Exlude any stories starting with an underscore ( For example: _exludeme.stories.js )
// "../src/**/!(*_)*.mdx",
// "../src/**/!(*_)*.stories.js",
process.env.STORYBOOK_SINGLE ? process.env.STORYBOOK_SINGLE : "../src/**/!(*_)*.mdx",
process.env.STORYBOOK_SINGLE ? process.env.STORYBOOK_SINGLE : "../src/**/!(*_)*.stories.js",
"../src/**/!(*_)*.mdx",
"../src/**/!(*_)*.stories.js",
],
staticDirs: [
{ from: '../dist', to: '/assets' },
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
"serve": "live-server dist",
"dev-storybook": "npm-run-all --parallel watch storybook",
"storybook": "storybook dev -p 6006",
"storybook-single": "STORYBOOK_SINGLE=../src/components/bs5/button/button.stories.js npm run storybook",
"storybook-single-watch": "STORYBOOK_SINGLE=../src/components/bs5/button/button.stories.js npm-run-all --parallel watch storybook",
"build-storybook": "storybook build --webpack-stats-json ",
"build-storybook:serve": "live-server storybook-static"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/bs5/textbox/textInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}

.qld-text-input-label {
color: var(--#{$prefix}color-default-color-light-text-lighter);
color: var(--#{$prefix}text-grey);
display: block;
font-weight: 600;
line-height: 1.5;
Expand Down
4 changes: 3 additions & 1 deletion src/components/bs5/video/video.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
</div>

{{! Render the transcript content in an accordion template }}
{{{ transcriptAccordion }}}
{{#if transcriptContent}}
{{{ transcriptAccordion }}}
{{/if}}

</section>

0 comments on commit affc431

Please sign in to comment.