Added Woodpecker CI config; added ESLint config to check for syntax and code style checks
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
cb5083d0d7
commit
bfb8d751b8
14
.eslintrc.json
Normal file
14
.eslintrc.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"es2021": true,
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"extends": "google",
|
||||||
|
"overrides": [
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": "latest"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
}
|
||||||
|
}
|
20
.woodpecker.yml
Normal file
20
.woodpecker.yml
Normal 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
1689
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user