1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-12-22 08:35:59 +00:00

Run prettier

This commit is contained in:
Jake Howard 2022-09-09 17:11:51 +01:00
parent d2f4612ab5
commit 04a7e5b2c9
Signed by: jake
GPG key ID: 57AFB45680EDD477
8 changed files with 53 additions and 45 deletions

View file

@ -1,5 +1,6 @@
stages: stages:
- build - build
- test
- deploy - deploy
build: build:
@ -15,11 +16,17 @@ build:
script: script:
- npm run build - npm run build
artifacts: artifacts:
name: '$CI_JOB_ID' name: "$CI_JOB_ID"
paths: paths:
- ./public - ./public
expire_in: 30 mins expire_in: 30 mins
prettier:
image: node:slim
stage: test
script:
- npm run prettier
deploy: deploy:
image: dokku/ci-docker-image:latest image: dokku/ci-docker-image:latest
stage: deploy stage: deploy

1
.prettierignore Symbolic link
View file

@ -0,0 +1 @@
.gitignore

View file

@ -1,29 +1,29 @@
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
title: 'Notes', title: "Notes",
description: 'Notes and snippets and things', description: "Notes and snippets and things",
author: 'TheOrangeOne', author: "TheOrangeOne",
siteUrl: 'https://notes.theorangeone.net' siteUrl: "https://notes.theorangeone.net",
}, },
plugins: [ plugins: [
{ {
resolve: 'gatsby-theme-code-notes', resolve: "gatsby-theme-code-notes",
options: { options: {
contentPath: 'notes', contentPath: "notes",
basePath: '/', basePath: "/",
showThemeInfo: false, showThemeInfo: false,
showDescriptionInSidebar: true, showDescriptionInSidebar: true,
}, },
}, },
'gatsby-plugin-robots-txt', "gatsby-plugin-robots-txt",
'gatsby-plugin-sitemap', "gatsby-plugin-sitemap",
'gatsby-plugin-sri', "gatsby-plugin-sri",
{ {
resolve: 'gatsby-plugin-plausible', resolve: "gatsby-plugin-plausible",
options: { options: {
domain: 'notes.theorangeone.net', domain: "notes.theorangeone.net",
customDomain: 'elbisualp.theorangeone.net' customDomain: "elbisualp.theorangeone.net",
} },
} },
], ],
} };

View file

@ -18,7 +18,6 @@ emoji: 🪣
"Effect": "Allow", "Effect": "Allow",
"Action": "*", "Action": "*",
"Resource": "arn:aws:s3:::<bucket>/*" "Resource": "arn:aws:s3:::<bucket>/*"
} }
] ]
} }
@ -36,9 +35,7 @@ emoji: 🪣
"AWS": "arn:aws:iam::<account_id>:user/<user>" "AWS": "arn:aws:iam::<account_id>:user/<user>"
}, },
"Action": "*", "Action": "*",
"Resource": [ "Resource": ["arn:aws:s3:::<bucket>/*"]
"arn:aws:s3:::<bucket>/*"
]
} }
] ]
} }

View file

@ -12,7 +12,6 @@ ls -1 *.mp4 | xargs -I{} ffmpeg -y -i {} -map 0 -map -0:a:0 -c copy /path/to/out
`-map -0:a:0` removes the 0th audio stream. `-map -0:a:0` removes the 0th audio stream.
- v - video, such as `-map -0:v` - v - video, such as `-map -0:v`
- a - audio, such as `-map -0:a` - a - audio, such as `-map -0:a`
- s - subtitles, such as `-map -0:s` - s - subtitles, such as `-map -0:s`

3
package-lock.json generated
View file

@ -17,6 +17,9 @@
"gatsby-theme-code-notes": "2.3.0", "gatsby-theme-code-notes": "2.3.0",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"
},
"devDependencies": {
"prettier": "2.7.1"
} }
}, },
"node_modules/@alexcarpenter/slugify": { "node_modules/@alexcarpenter/slugify": {

View file

@ -6,7 +6,8 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "gatsby clean && gatsby build", "build": "gatsby clean && gatsby build",
"start": "gatsby develop" "start": "gatsby develop",
"prettier": "prettier --write ."
}, },
"dependencies": { "dependencies": {
"gatsby": "3.14.6", "gatsby": "3.14.6",
@ -21,5 +22,8 @@
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/RealOrangeOne/notes" "url": "https://github.com/RealOrangeOne/notes"
},
"devDependencies": {
"prettier": "2.7.1"
} }
} }

View file

@ -1,9 +1,6 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["config:base", ":disableDependencyDashboard"],
"config:base",
":disableDependencyDashboard"
],
"prHourlyLimit": 0, "prHourlyLimit": 0,
"prConcurrentLimit": 0 "prConcurrentLimit": 0
} }