Add basic CI integration
continuous-integration/drone/push Build is failing Details

pull/1/head
Davide Polonio 2021-04-27 22:27:41 +02:00
parent a56242b818
commit 3e5a6f67b4
3 changed files with 72 additions and 0 deletions

14
.drone.yml Normal file
View File

@ -0,0 +1,14 @@
kind: pipeline
type: docker
name: default
steps:
- name: Lint checks
image: node:14.16-alpine
commands:
- npm install
- npm run lint
- name: Hugo build
image: klakegg/hugo:0.82.1-ext-alpine-ci
commands:
- hugo

39
.markdownlint-cli2.yaml Normal file
View File

@ -0,0 +1,39 @@
# Disable some built-in rules
config:
no-inline-html: false
MD013:
code_block_line_length: 120
MD024:
allow_different_nesting: true
# no-trailing-spaces: false
# no-multiple-blanks: false
# Include a custom rule package
#customRules:
# - markdownlint-rule-titlecase
# Fix any fixable errors
fix: false
# Define a custom front matter pattern
#frontMatter: "<head>[^]*<\/head>"
# Define glob expressions to ignore
ignores:
- "*.autogen.md"
# Use a plugin to recognize math
#markdownItPlugins:
# -
# - "@iktakahiro/markdown-it-katex"
# Disable inline config comments
noInlineConfig: true
# Disable progress on stdout
noProgress: true
# Use a specific formatter
outputFormatters:
-
- markdownlint-cli2-formatter-default

19
package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "bitdispenser.dev",
"version": "0.0.1",
"description": "Personal Hugo website",
"main": "none.js",
"scripts": {
"lint": "markdownlint-cli2 content/posts/"
},
"repository": {
"type": "git",
"url": "git+https://git.poldebra.me/polpetta/bitdispenser.dev.git"
},
"author": "Polonio Davide <davide@poldebra.me>",
"license": "CC-BY-SA 4.0",
"dependencies": {},
"devDependencies": {
"markdownlint-cli2": "0.0.10",
}
}