Skip to content

Commit

Permalink
fixes testing and updates mdx rendering (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
kochie authored May 24, 2024
1 parent f7ba69b commit a04ca39
Show file tree
Hide file tree
Showing 67 changed files with 8,148 additions and 8,480 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions articles/10-hpc-with-step-functions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jumbotron:
src: manuel-CANL3bzp6wU-unsplash.jpg
alt: computing
publishedDate: 2023-05-04T22:24:00+10:00
editedDate: 2023-05-05T09:42:00+10:00
editedDate: 2024-05-22T19:33:00+11:00
---

High-Performance Computing (HPC) has become a mainstream method for the
processing of big data in the fields of machine learning and data science. But
the systems that are used to create such high-performance clusters are not
always accessible to everyday users. I found this out the hard way when I was
working on a project recently to
[calculate the maximum number of objects that I could store inside of S3](/08-s3-file-limit).
[calculate the maximum number of objects that I could store inside of S3](articles/08-s3-file-limit).
I found a better way of solving the problem by using AWS Step Functions
and distributed maps to create a serverless HPC cluster capable of running lots
of small tasks at an incredible speed for a fraction of the price, and today I'm
Expand Down
19 changes: 12 additions & 7 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,23 @@ let config = {
return config
},
reactStrictMode: true,
experimental: {
appDir: true,
newNextLinkBehavior: true,
},
// transpilePackages: ['d3'],
images: {
domains: ['avatars.githubusercontent.com', 'pbs.twimg.com'],
// domains: ['avatars.githubusercontent.com', 'pbs.twimg.com'],
// dangerouslyAllowSVG: true,
// contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
},
{
protocol: 'https',
hostname: 'pbs.twimg.com',
}
],
},

modularizeImports: {
'@/components': {
transform: '@/components/{{member}}',
Expand All @@ -54,8 +61,6 @@ const plugins = [

for (const plug of plugins) {
if (!plug.env || plug.env.includes(process.env.NODE_ENV)) {
// eslint-disable-next-line
// @ts-ignore
if (plug.options) config = plug.plugin(config, ...plug.options)
else plug.plugin(config)
}
Expand Down
167 changes: 85 additions & 82 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"type": "module",
"scripts": {
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"test": "vitest run",
"build": "next build",
"dev": "next",
"lint": "npm run prettier && npm run eslint",
"prettier": "prettier --write \"src/**/*.{tsx,ts,less,js,jsx,json}\"",
"eslint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
"eslint": "eslint",
"prepare": "husky install",
"prebuild": "node --loader ./bin/loader.js bin/build_feed.ts",
"postbuild": "node --loader ./bin/loader.js bin/postbuild.ts"
Expand All @@ -26,105 +26,108 @@
"author": "Robert Koch <[email protected]>",
"license": "MIT",
"devDependencies": {
"@actions/core": "^1.10.0",
"@csstools/postcss-color-mix-function": "^2.0.1",
"@csstools/postcss-hwb-function": "^3.0.1",
"@csstools/postcss-oklab-function": "^3.0.1",
"@fortawesome/fontawesome-pro": "^6.4.2",
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/pro-duotone-svg-icons": "^6.4.2",
"@fortawesome/pro-light-svg-icons": "^6.4.2",
"@fortawesome/pro-regular-svg-icons": "^6.4.2",
"@fortawesome/pro-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@jest/globals": "^29.6.2",
"@mapbox/rehype-prism": "^0.8.0",
"@mdx-js/react": "^2.3.0",
"@next/bundle-analyzer": "^13.4.13",
"@next/env": "^13.4.13",
"@octokit/core": "^5.0.0",
"@octokit/types": "^11.1.0",
"@actions/core": "^1.10.1",
"@csstools/postcss-color-mix-function": "^2.0.16",
"@csstools/postcss-hwb-function": "^3.0.15",
"@csstools/postcss-oklab-function": "^3.0.16",
"@eslint/compat": "^1.0.1",
"@eslint/eslintrc": "^3.1.0",
"@fortawesome/fontawesome-pro": "^6.5.2",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/free-regular-svg-icons": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/pro-duotone-svg-icons": "^6.5.2",
"@fortawesome/pro-light-svg-icons": "^6.5.2",
"@fortawesome/pro-regular-svg-icons": "^6.5.2",
"@fortawesome/pro-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@mapbox/rehype-prism": "^0.9.0",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/bundle-analyzer": "^14.2.3",
"@next/env": "^14.2.3",
"@next/eslint-plugin-next": "^14.2.3",
"@octokit/core": "^6.1.2",
"@octokit/types": "^13.5.0",
"@react-spring/web": "^9.7.3",
"@sentry/nextjs": "^7.63.0",
"@sentry/profiling-node": "^1.1.2",
"@types/d3": "^7.4.0",
"@types/hast": "^3.0.0",
"@types/jest": "^29.5.3",
"@types/js-yaml": "^4.0.5",
"@types/node": "^20.4.10",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/react-is": "^18.2.1",
"@types/react-test-renderer": "^18.0.0",
"@sentry/nextjs": "^8.3.0",
"@sentry/profiling-node": "^8.3.0",
"@testing-library/react": "^15.0.7",
"@types/d3": "^7.4.3",
"@types/hast": "^3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@types/react-is": "^18.3.0",
"@types/sharp": "^0.31.1",
"@types/three": "^0.155.0",
"@types/unist": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@typescript-eslint/typescript-estree": "^6.3.0",
"@vercel/og": "^0.5.11",
"autoprefixer": "^10.4.14",
"csstype": "^3.1.2",
"d3": "^7.8.5",
"@types/three": "^0.164.1",
"@types/unist": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@typescript-eslint/typescript-estree": "^7.10.0",
"@vercel/og": "^0.6.2",
"@vitejs/plugin-react": "^4.3.0",
"autoprefixer": "^10.4.19",
"canvas": "^2.11.2",
"clsx": "^2.1.1",
"csstype": "^3.1.3",
"d3": "^7.9.0",
"encoding": "^0.1.13",
"eslint": "^8.47.0",
"eslint-config-next": "^13.4.13",
"eslint-plugin-import": "^2.28.0",
"fathom-client": "^3.5.0",
"eslint": "^9.3.0",
"eslint-config-next": "^14.2.3",
"eslint-plugin-import": "^2.29.1",
"fathom-client": "^3.6.0",
"feed": "./feed-4.2.2.tgz",
"gray-matter": "^4.0.3",
"hast-util-heading": "^3.0.0",
"hast-util-is-element": "^3.0.0",
"husky": "^8.0.3",
"husky": "^9.0.11",
"identity-obj-proxy": "^3.0.0",
"intl-list-format": "^1.0.3",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"jimp": "^0.22.10",
"jimp": "^0.22.12",
"js-yaml": "^4.1.0",
"jsdom": "^22.1.0",
"next": "13.4.13",
"next-mdx-remote": "^4.4.1",
"jsdom": "^24.0.0",
"msw": "^2.3.0",
"next": "14.2.3",
"next-mdx-remote": "^5.0.0",
"next-pwa": "^5.6.0",
"next-remote-watch": "^2.0.0",
"node-loader": "^2.0.0",
"postcss": "^8.4.27",
"postcss": "^8.4.38",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-preset-env": "^9.1.1",
"prettier": "^3.0.1",
"prism-react-renderer": "^2.0.6",
"react": "18.3.0-next-18282f881-20230428",
"react-dom": "18.3.0-next-18282f881-20230428",
"react-is": "^18.2.0",
"react-test-renderer": "18.3.0-next-18282f881-20230428",
"postcss-preset-env": "^9.5.13",
"prettier": "^3.2.5",
"prism-react-renderer": "^2.3.1",
"prismjs": "^1.29.0",
"react": "19.0.0-beta-26f2496093-20240514",
"react-dom": "19.0.0-beta-26f2496093-20240514",
"react-is": "^18.3.1",
"reading-time": "^1.5.0",
"rehype": "^12.0.1",
"rehype-katex": "^6.0.3",
"rehype-slug": "^5.1.0",
"remark": "^14.0.3",
"remark-gfm": "^3.0.1",
"remark-math": "^5.1.1",
"rehype": "^13.0.1",
"rehype-katex": "^7.0.0",
"rehype-slug": "^6.0.0",
"remark": "^15.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remark-mdx-frontmatter": "^4.0.0",
"remark-slug": "^7.0.1",
"sentry-testkit": "^5.0.5",
"sharp": "^0.32.4",
"swr": "^2.2.1",
"tailwindcss": "^3.3.3",
"three": "^0.155.0",
"sentry-testkit": "^5.0.9",
"sharp": "^0.33.4",
"swr": "^2.2.5",
"tailwindcss": "^3.4.3",
"three": "^0.164.1",
"to-vfile": "^8.0.0",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.6",
"typescript": "^5.4.5",
"unist-util-visit": "^5.0.0",
"webpack": "^5.88.2",
"@jest/types": "^29.6.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"clsx": "^2.0.0",
"prismjs": "^1.29.0",
"yaml-loader": "^0.8.0"
"vitest": "^1.6.0",
"vitest-canvas-mock": "^0.3.3",
"webpack": "^5.91.0",
"yaml-loader": "^0.8.1"
},
"prettier": {
"trailingComma": "es5",
Expand Down
Loading

0 comments on commit a04ca39

Please sign in to comment.