mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 04:06:00 +00:00
Run prettier
This commit is contained in:
parent
d2f4612ab5
commit
04a7e5b2c9
8 changed files with 53 additions and 45 deletions
|
@ -1,5 +1,6 @@
|
|||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
build:
|
||||
|
@ -15,11 +16,17 @@ build:
|
|||
script:
|
||||
- npm run build
|
||||
artifacts:
|
||||
name: '$CI_JOB_ID'
|
||||
name: "$CI_JOB_ID"
|
||||
paths:
|
||||
- ./public
|
||||
expire_in: 30 mins
|
||||
|
||||
prettier:
|
||||
image: node:slim
|
||||
stage: test
|
||||
script:
|
||||
- npm run prettier
|
||||
|
||||
deploy:
|
||||
image: dokku/ci-docker-image:latest
|
||||
stage: deploy
|
||||
|
|
1
.prettierignore
Symbolic link
1
.prettierignore
Symbolic link
|
@ -0,0 +1 @@
|
|||
.gitignore
|
|
@ -1,29 +1,29 @@
|
|||
module.exports = {
|
||||
siteMetadata: {
|
||||
title: 'Notes',
|
||||
description: 'Notes and snippets and things',
|
||||
author: 'TheOrangeOne',
|
||||
siteUrl: 'https://notes.theorangeone.net'
|
||||
title: "Notes",
|
||||
description: "Notes and snippets and things",
|
||||
author: "TheOrangeOne",
|
||||
siteUrl: "https://notes.theorangeone.net",
|
||||
},
|
||||
plugins: [
|
||||
{
|
||||
resolve: 'gatsby-theme-code-notes',
|
||||
resolve: "gatsby-theme-code-notes",
|
||||
options: {
|
||||
contentPath: 'notes',
|
||||
basePath: '/',
|
||||
contentPath: "notes",
|
||||
basePath: "/",
|
||||
showThemeInfo: false,
|
||||
showDescriptionInSidebar: true,
|
||||
},
|
||||
},
|
||||
'gatsby-plugin-robots-txt',
|
||||
'gatsby-plugin-sitemap',
|
||||
'gatsby-plugin-sri',
|
||||
"gatsby-plugin-robots-txt",
|
||||
"gatsby-plugin-sitemap",
|
||||
"gatsby-plugin-sri",
|
||||
{
|
||||
resolve: 'gatsby-plugin-plausible',
|
||||
resolve: "gatsby-plugin-plausible",
|
||||
options: {
|
||||
domain: 'notes.theorangeone.net',
|
||||
customDomain: 'elbisualp.theorangeone.net'
|
||||
}
|
||||
}
|
||||
domain: "notes.theorangeone.net",
|
||||
customDomain: "elbisualp.theorangeone.net",
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
};
|
||||
|
|
|
@ -12,15 +12,14 @@ emoji: 🪣
|
|||
|
||||
```json
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": "*",
|
||||
"Resource": "arn:aws:s3:::<bucket>/*"
|
||||
|
||||
}
|
||||
]
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": "*",
|
||||
"Resource": "arn:aws:s3:::<bucket>/*"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -28,18 +27,16 @@ emoji: 🪣
|
|||
|
||||
```json
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Principal": {
|
||||
"AWS": "arn:aws:iam::<account_id>:user/<user>"
|
||||
},
|
||||
"Action": "*",
|
||||
"Resource": [
|
||||
"arn:aws:s3:::<bucket>/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Principal": {
|
||||
"AWS": "arn:aws:iam::<account_id>:user/<user>"
|
||||
},
|
||||
"Action": "*",
|
||||
"Resource": ["arn:aws:s3:::<bucket>/*"]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
||||
- v - video, such as `-map -0:v`
|
||||
- a - audio, such as `-map -0:a`
|
||||
- s - subtitles, such as `-map -0:s`
|
||||
|
|
3
package-lock.json
generated
3
package-lock.json
generated
|
@ -17,6 +17,9 @@
|
|||
"gatsby-theme-code-notes": "2.3.0",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "2.7.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@alexcarpenter/slugify": {
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "gatsby clean && gatsby build",
|
||||
"start": "gatsby develop"
|
||||
"start": "gatsby develop",
|
||||
"prettier": "prettier --write ."
|
||||
},
|
||||
"dependencies": {
|
||||
"gatsby": "3.14.6",
|
||||
|
@ -21,5 +22,8 @@
|
|||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/RealOrangeOne/notes"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "2.7.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base",
|
||||
":disableDependencyDashboard"
|
||||
],
|
||||
"extends": ["config:base", ":disableDependencyDashboard"],
|
||||
"prHourlyLimit": 0,
|
||||
"prConcurrentLimit": 0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue