chore: fix deps
This commit is contained in:
parent
fb59965067
commit
bcec491a68
8 changed files with 64 additions and 1058 deletions
|
@ -1 +1 @@
|
|||
exec < /dev/tty && npx cz --hook || true && npx --no -- commitlint --edit $1
|
||||
npx --no -- commitlint --edit $1
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/* eslint-env jest */
|
||||
import { render } from '@testing-library/react'
|
||||
import Cv from '../../src/components/Cv/Cv'
|
||||
import Resume from '../../src/components/Resume/Resume'
|
||||
import '@testing-library/jest-dom'
|
||||
|
||||
describe('Cv', () => {
|
||||
describe('Resume', () => {
|
||||
const props = {
|
||||
competencies: ['Competency 1', 'Competency 2'],
|
||||
education: 'My education history',
|
||||
|
@ -21,37 +21,37 @@ describe('Cv', () => {
|
|||
}
|
||||
|
||||
it('renders without crashing', () => {
|
||||
render(<Cv {...props} />)
|
||||
render(<Resume {...props} />)
|
||||
})
|
||||
|
||||
it('renders competencies', () => {
|
||||
const { getByText } = render(<Cv {...props} />)
|
||||
const { getByText } = render(<Resume {...props} />)
|
||||
props.competencies.forEach(competency => {
|
||||
expect(getByText(competency)).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
||||
it('renders education', () => {
|
||||
const { getByText } = render(<Cv {...props} />)
|
||||
const { getByText } = render(<Resume {...props} />)
|
||||
expect(getByText(props.education)).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('renders certifications', () => {
|
||||
const { getByText } = render(<Cv {...props} />)
|
||||
const { getByText } = render(<Resume {...props} />)
|
||||
props.certifications.forEach(certification => {
|
||||
expect(getByText(certification)).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
||||
it('renders languages', () => {
|
||||
const { getByText } = render(<Cv {...props} />)
|
||||
const { getByText } = render(<Resume {...props} />)
|
||||
props.languages.forEach(language => {
|
||||
expect(getByText(`${language.name} - ${language.proficiency}`)).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
||||
it('renders experience', () => {
|
||||
const { getByText } = render(<Cv {...props} />)
|
||||
const { getByText } = render(<Resume {...props} />)
|
||||
props.experience.forEach(exp => {
|
||||
expect(getByText(exp.employer)).toBeInTheDocument()
|
||||
expect(getByText(exp.position)).toBeInTheDocument()
|
1024
package-lock.json
generated
1024
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -33,7 +33,6 @@
|
|||
"@testing-library/react": "^16.0.0",
|
||||
"@types/jest": "^29.5.12",
|
||||
"babel-jest": "^29.7.0",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"eslint": "^9.9.0",
|
||||
"front-matter": "^4.0.2",
|
||||
"frontmatter-markdown-loader": "^3.7.0",
|
||||
|
@ -45,10 +44,5 @@
|
|||
"react-test-renderer": "^18.3.1",
|
||||
"showdown": "^2.1.0",
|
||||
"standard": "^17.1.0"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
|
||||
<url><loc>https://www.aaronjy.me/</loc><lastmod>2024-10-13T12:32:05.486Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/cv/</loc><lastmod>2024-10-13T12:32:05.488Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/writing/</loc><lastmod>2024-10-13T12:32:05.488Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/writing/static-site-on-google-cloud/</loc><lastmod>2024-10-13T12:32:05.488Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/</loc><lastmod>2024-10-13T12:32:05.488Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/</loc><lastmod>2024-10-13T12:50:41.157Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/cv/</loc><lastmod>2024-10-13T12:50:41.158Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/writing/</loc><lastmod>2024-10-13T12:50:41.158Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/writing/static-site-on-google-cloud/</loc><lastmod>2024-10-13T12:50:41.158Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
<url><loc>https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/</loc><lastmod>2024-10-13T12:50:41.158Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
|
||||
</urlset>
|
|
@ -4,9 +4,9 @@ import yaml from 'js-yaml'
|
|||
import fs from 'fs'
|
||||
import showdown from 'showdown'
|
||||
import { NextSeo } from 'next-seo'
|
||||
import Cv from '@/components/Cv/Cv'
|
||||
import Resume from '@/components/Resume/Resume'
|
||||
|
||||
function CVPage ({
|
||||
function ResumePage ({
|
||||
competencies,
|
||||
education,
|
||||
certifications,
|
||||
|
@ -20,7 +20,7 @@ function CVPage ({
|
|||
<h1>CV 💼</h1>
|
||||
</section>
|
||||
<section>
|
||||
<Cv
|
||||
<Resume
|
||||
competencies={competencies}
|
||||
education={education}
|
||||
certifications={certifications}
|
||||
|
@ -51,4 +51,4 @@ export function getStaticProps () {
|
|||
}
|
||||
}
|
||||
|
||||
export default CVPage
|
||||
export default ResumePage
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e # Exit with nonzero exit code if anything fails
|
||||
|
||||
BUCKET_URL="gs://aaronjy-www"
|
||||
BACKUP_BUCKET_URL="gs://aaronjy-www-backup"
|
||||
|
||||
echo "------------------------------"
|
||||
echo "BACKUP CURRENT SITE FILES"
|
||||
echo "------------------------------"
|
||||
|
||||
TIMESTAMP=$(date +%Y-%m-%d_%H:%M:%S)
|
||||
gcloud transfer jobs create $BUCKET_URL $BACKUP_BUCKET_URL/$(date +%Y-%m-%d_%H:%M:%S)/ --no-async --delete-from=source-after-transfer;
|
||||
|
||||
echo "------------------------------"
|
||||
echo "REMOVE SENSITIVE FILES"
|
||||
echo "------------------------------"
|
||||
|
||||
rm -rfv ./out/admin/
|
||||
|
||||
echo "Removed all sensitive files."
|
||||
|
||||
echo "------------------------------"
|
||||
echo "UPLOADING NEW SITE FILES"
|
||||
echo "------------------------------"
|
||||
|
||||
gcloud storage cp --recursive ./out/* $BUCKET_URL --gzip-in-flight-all
|
||||
|
||||
echo "------------------------------"
|
||||
echo "INVALIDATING GLOBAL CACHE"
|
||||
echo "------------------------------"
|
||||
|
||||
echo "WARNING: This is an async operation that can take upwards of 10 minutes depending on how fast Google Cloud CDN invalidates its cache. It does take around 10 minutes on average."
|
||||
|
||||
gcloud compute url-maps invalidate-cdn-cache lb-aaronjy-www --path "/*" --async
|
||||
|
||||
echo "------------------------------"
|
||||
echo "DONE!"
|
||||
echo "------------------------------"
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e # Exit with nonzero exit code if anything fails
|
||||
|
||||
echo "Preparing for deployment..."
|
||||
|
||||
echo "- Running tests..."
|
||||
npx jest
|
||||
|
||||
echo "- Building site..."
|
||||
npm run build
|
||||
|
||||
echo "- Commit any build artifacts..."
|
||||
git add .
|
||||
git commit -m "chore: build artifacts"
|
||||
|
||||
|
||||
|
||||
echo "Finished preparing for deployment."
|
Loading…
Add table
Reference in a new issue