Skip to content

Commit

Permalink
Merge branch 'main' into 103-update-node-version-in-build-test-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-gsa authored Aug 6, 2024
2 parents eeb4ac2 + 7da7a17 commit 49ff7c5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 7 deletions.
26 changes: 26 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This CODEOWNERS file is used to direct Pull Request (PR) review
# requests to folks most likely able to provide good reviews of the
# updates for a given PR.
#
# The order of the file is significant -- the last matching
# pattern takes precedence. Therefore, we go from widest
# to most specific.

* @GSA-TTS/tts-website

*.js @GSA-TTS/tts-website-developers
*.ts @GSA-TTS/tts-website-developers
*.scss @GSA-TTS/tts-website-developers
*.css @GSA-TTS/tts-website-developers
*.html @GSA-TTS/tts-website-developers
*.htm @GSA-TTS/tts-website-developers
*.json @GSA-TTS/tts-website-developers
*.yaml @GSA-TTS/tts-website-developers
*.yml @GSA-TTS/tts-website-developers
*.njk @GSA-TTS/tts-website-developers

*.md @GSA-TTS/tts-website-content
*.png @GSA-TTS/tts-website-content
*.jpg @GSA-TTS/tts-website-content

.github @GSA-TTS/tts-website-admins
Binary file added _img/hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed _img/hero.png
Binary file not shown.
16 changes: 10 additions & 6 deletions config/buildAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ async function createAssetPaths() {
}

const assetPath = path.join(__dirname, '../_site/assets');
const assetDirs = await fs.readdir(assetPath);
let assetDirs = await fs.readdir(assetPath, {withFileTypes: true})
assetDirs = assetDirs.filter(item => item.isDirectory())
.map(item => item.name);
const assetsFiles = await Promise.all(
assetDirs.map(async (dir) => {
const files = await fs.readdir(
Expand Down Expand Up @@ -41,11 +43,13 @@ esbuild
outdir: '_site/assets',
format: 'iife',
loader: {
'.png': 'dataurl',
'.svg': 'dataurl',
'.ttf': 'dataurl',
'.woff': 'dataurl',
'.woff2': 'dataurl',
'.png': 'file',
'.jpg': 'file',
'.jpeg': 'file',
'.svg': 'file',
'.ttf': 'file',
'.woff': 'file',
'.woff2': 'file',
},
minify: process.env.ELEVENTY_ENV === 'production',
sourcemap: process.env.ELEVENTY_ENV !== 'production',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"start-server-and-test": "^2.0.3"
},
"dependencies": {
"@uswds/uswds": "3.0.2",
"@uswds/uswds": "3.8.1",
"netlify-cms": "^2.10.187"
}
}

0 comments on commit 49ff7c5

Please sign in to comment.