mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 08:35:59 +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:
|
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
1
.prettierignore
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
.gitignore
|
|
@ -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",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
}
|
};
|
||||||
|
|
|
@ -12,15 +12,14 @@ emoji: 🪣
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"Version": "2012-10-17",
|
"Version": "2012-10-17",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": "*",
|
"Action": "*",
|
||||||
"Resource": "arn:aws:s3:::<bucket>/*"
|
"Resource": "arn:aws:s3:::<bucket>/*"
|
||||||
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -28,18 +27,16 @@ emoji: 🪣
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"Version": "2012-10-17",
|
"Version": "2012-10-17",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Principal": {
|
"Principal": {
|
||||||
"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>/*"
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -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
3
package-lock.json
generated
|
@ -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": {
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue