Skip to content

Commit

Permalink
chore: 🤖 Fix the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
renoirb committed Sep 29, 2024
1 parent 0eaa177 commit e56e01b
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'
- run: yarn
- run: yarn lint
- run: yarn build
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ dist
dist/_nuxt
static/files/resume/jsonresume-renoirb.json
static/legacy-stuff
static
content
3 changes: 2 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ const main = {
options: {
parser: 'vue',
vueIndentScriptAndStyle: true,
trailingComma: 'all',
},
},
{
files: '*.md',
options: {
proseWrap: 'always',
proseWrap: 'preserve',
},
},
{
Expand Down
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/static/**/*.css
dist/**/*.css
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"editor.formatOnSave": false
},
"[css]": {
"editor.formatOnSave": true,
"editor.formatOnSave": true
},
"[markdown]": {
"editor.formatOnSave": true
Expand All @@ -43,6 +43,6 @@
".nuxt/**": true,
"dist/**": true,
"node_modules": true,
"static/legacy-stuff/**": true,
"static/legacy-stuff/**": true
}
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Rewriting [renoirb/site][github-renoirb-site]
### Docs useful during maintenance

- [Prism supported languages](https://prismjs.com/#supported-languages)
- **Nuxt** docs for this present version (2024: it's 4 years old now!) (nuxt-content 1.8.1, nuxt 2.14)
- **Nuxt** docs for this present version (2024: it's 4 years old now!)
(nuxt-content 1.8.1, nuxt 2.14)
- [**Nuxt v2 Docs**](https://v2.nuxt.com/docs/)
- [**Nuxt**: fetch](https://github.com/nuxt/docs/blob/master/en/api/pages-fetch.md)
- [**Nuxt/content** Querying](https://github.com/nuxt/content/blob/%40nuxt/content%401.8.1/docs/content/en/fetching.md#wherequery)
Expand Down
2 changes: 1 addition & 1 deletion components/global/AppImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@

<style scoped>
.lost-image {
@apply mx-auto w-1/6 my-5;
@apply w-1/6 mx-auto my-5;
}
figcaption {
/* the speech bubble */
Expand Down
1 change: 1 addition & 0 deletions lib/model/content/break-into-years.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const breakIntoYears = (
)
content.prettyfiedTemporalDate = prettyfiedTemporalDate
// Mutating bucket after the fact. Something’s unfinished here, and I forgot what.
// eslint-disable-next-line
bucket?.[1].push(content)
}

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
"deploy": "use-cross-env IS_CI=aye use-run-all clean build:* deploy:push",
"deploy:push": "push-dir --dir=dist --branch=gh-pages --local-branch-name=2020 --cleanup",
"dev": "nuxt-ts dev -H 0.0.0.0",
"fix": "use-run-all fix:* lint:*",
"fix": "use-run-all fix:*",
"fix:js": "use-cross-env conventions-use-eslint --fix --ext .ts,.tsx,.js,.vue --ignore-path .gitignore --ignore-pattern 'static/' .",
"fix:prettier": "use-cross-env prettier --ignore-path .prettierignore --ignore-unknown --write '**/*.{svg,yaml,yml,vue,css,js,ts,json,md}'",
"fix:sort-package-json": "use-cross-env conventions-code-formatter sort-package-json",
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('Dependencies must be installed with Yarn: https://yarnpkg.com/')\"",
"lint": "use-cross-env use-run-all lint:* fix",
"lint:js": "use-cross-env conventions-use-eslint --fix --ext .ts,.tsx,.js,.vue --ignore-path .gitignore --ignore-pattern 'static/**/*.js' .",
"lint:style": "use-cross-env stylelint '**/*.{vue,css,scss}' --fix --ignore-path .gitignore",
"lint": "use-cross-env use-run-all lint:*",
"lint:js": "use-cross-env conventions-use-eslint --ext .ts,.tsx,.js,.vue --ignore-path .gitignore --ignore-pattern 'static/**/*.js' .",
"lint:style": "use-cross-env stylelint '**/*.{vue,css,scss}'",
"start": "nuxt-ts start",
"test": "use-cross-env jest --detectOpenHandles",
"test:snapshots": "use-cross-env jest --detectOpenHandles -u"
Expand Down
2 changes: 2 additions & 0 deletions pages/projets/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@
class="pb-8 mb-8 border-b border-black border-dashed"
>
<h2 class="mb-2 font-serif text-lg italic">
<!-- eslint-disable vue/no-v-html -->
<NuxtLink
v-if="content.callToAction.href"
:to="content.callToAction.href"
:lang="content.locale ? content.locale : 'en-CA'"
class="no-underline"
v-html="abbreviatize(content.title)"
/>
<!-- eslint-disable vue/no-v-html -->
<span
v-else
:lang="content.locale ? content.locale : 'en-CA'"
Expand Down

0 comments on commit e56e01b

Please sign in to comment.