Added Woodpecker CI config; added ESLint config to check for syntax and code style checks
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Gregory Ballantine 2022-11-03 22:19:42 -04:00
parent cb5083d0d7
commit bfb8d751b8
4 changed files with 1724 additions and 2 deletions

14
.eslintrc.json Normal file
View File

@ -0,0 +1,14 @@
{
"env": {
"es2021": true,
"node": true
},
"extends": "google",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
}
}

20
.woodpecker.yml Normal file
View File

@ -0,0 +1,20 @@
pipeline:
setup:
image: node:18
commands:
- npm install
lint:
image: node:18
commands:
- npm run lint
gitea_release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url: https://git.metaunix.net
title: "${CI_COMMIT_TAG}"
when:
event: tag

1689
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@
"start": "node index.js", "start": "node index.js",
"gulp": "gulp", "gulp": "gulp",
"nodemon": "nodemon index.js", "nodemon": "nodemon index.js",
"lint": "eslint index.js src/**/*.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {
@ -20,6 +21,8 @@
"author": "Gregory Ballanine <gballantine@bitgoblin.tech>", "author": "Gregory Ballanine <gballantine@bitgoblin.tech>",
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"devDependencies": { "devDependencies": {
"eslint": "^8.26.0",
"eslint-config-google": "^0.14.0",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-sass": "^5.1.0", "gulp-sass": "^5.1.0",
"nodemon": "^2.0.20", "nodemon": "^2.0.20",