From 108d0b2164a4cfdc3406a01ba3c8371261b2ac5a Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 12 Sep 2021 12:37:57 +0200 Subject: [PATCH] perf(): testing sv --- .releaserc.json | 24 ++++++++ release.config.js => ols | 1 + package.json | 129 +++++++++++++++++++++++++-------------- 3 files changed, 109 insertions(+), 45 deletions(-) create mode 100644 .releaserc.json rename release.config.js => ols (98%) diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..4f333f3 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,24 @@ +{ + "extends": "@saithodev/semantic-release-sharedconf-npm", + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + [ + "@semantic-release/npm", + {"tarballDir": "release"} + ], + [ + "@semantic-release/git", + {"assets": ["package.json", "CHANGELOG.md"]} + ], + [ + "@semantic-release/github", + {"assets": "release/*.tgz"} + ] + ], + "branches": [ + "master" + ] + } + \ No newline at end of file diff --git a/release.config.js b/ols similarity index 98% rename from release.config.js rename to ols index c55110d..50ef0f7 100644 --- a/release.config.js +++ b/ols @@ -1,3 +1,4 @@ +release.config.js --- branch: master preset: "angular" diff --git a/package.json b/package.json index eae5410..0cac2d1 100644 --- a/package.json +++ b/package.json @@ -1,53 +1,92 @@ { "name": "@saithodev/semantic-release-gitea", - "version": "1.0.2", - + "version": "2.1.0", + "description": "Publish release notes to Gitea", "main": "index.js", - "license": "MIT", - "release": { - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - [ - "@semantic-release/npm", - { - "npmPublish": false - } - ], - "@semantic-release/changelog", - "@semantic-release/git", - "@saithodev/semantic-release-gitea" - ], - "branch": [ - "master", - "next" - ] + "scripts": { + "codecov": "codecov -f coverage/coverage-final.json", + "lint": "xo", + "semantic-release": "semantic-release", + "test": "nyc ava -v", + "commit": "git-cz" }, - "devDependencies": { - "@semantic-release/changelog": "^5.0.1", - "@semantic-release/commit-analyzer": "^8.0.1", - "@semantic-release/git": "^9.0.0", - "@semantic-release/npm": "^7.0.5", - "@semantic-release/release-notes-generator": "^9.0.1", - "@types/express": "^4.17.6", - "@typescript-eslint/eslint-plugin": "^2.28.0", - "@typescript-eslint/parser": "^2.28.0", - "eslint": "^6.8.0", - "eslint-config-airbnb-base": "^14.1.0", - "eslint-config-prettier": "^6.10.1", - "eslint-import-resolver-typescript": "^2.0.0", - "eslint-plugin-import": "^2.20.2", - "eslint-plugin-prettier": "^3.1.3", - "prettier": "^2.0.4", - "semantic-release": "^17.0.6", - "ts-node-dev": "^1.0.0-pre.44", - "typescript": "^3.8.3" + "engines": { + "node": "^10 || ^11 || ^12 || >=14" }, "dependencies": { - "express": "^4.17.1" + "@semantic-release/error": "^2.2.0", + "aggregate-error": "^3.0.0", + "debug": "^4.0.0", + "dir-glob": "^3.0.0", + "form-data": "^3.0.0", + "fs-extra": "^8.0.0", + "globby": "^10.0.0", + "got": "^10.0.1", + "lodash": "^4.17.21", + "querystring": "^0.2.0", + "url-join": "^4.0.0" }, - "scripts": { - "build": "tsc", - "dev:server": "ts-node-dev --inspect --transpileOnly --ignore-watch node_modules src/server.ts" + "devDependencies": { + "@saithodev/semantic-release-sharedconf-npm": "^2.0.2", + "ava": "^2.0.0", + "clear-module": "^4.0.0", + "codecov": "^3.5.0", + "commitizen": "^4.0.3", + "cz-conventional-changelog": "^3.0.2", + "nock": "^11.1.0", + "nyc": "^15.0.0", + "proxyquire": "^2.0.0", + "semantic-release": "^17.4.2", + "sinon": "^8.0.0", + "tempy": "^0.3.0", + "xo": "^0.38.2" + }, + "repository": { + "type": "git", + "url": "https://github.com/saitho/semantic-release-gitea" + }, + "author": "Mario Lubenka", + "license": "MIT", + "bugs": { + "url": "https://github.com/saitho/semantic-release-gitea/issues" + }, + "homepage": "https://github.com/saitho/semantic-release-gitea#readme", + "keywords": [ + "git", + "gitea", + "publish", + "pull-request", + "release", + "semantic-release", + "version" + ], + "config": { + "commitizen": { + "path": "./node_modules/cz-conventional-changelog" + } + }, + "nyc": { + "include": [ + "lib/**/*.js", + "index.js" + ], + "reporter": [ + "lcov", + "text", + "html" + ], + "all": true + }, + "xo": { + "prettier": true, + "space": true, + "rules": { + "camelcase": [ + "error", + { + "properties": "never" + } + ] + } } -} +} \ No newline at end of file