mirror of
https://github.com/remnawave/supervisord-nestJS.git
synced 2026-05-13 12:16:46 +00:00
chore: update version to 0.3.0 and migrate to @kastov/node-supervisord; adjust configuration options
This commit is contained in:
parent
08c9056130
commit
6506d57a04
8 changed files with 612 additions and 338 deletions
16
.github/workflows/deploy-lib.yml
vendored
16
.github/workflows/deploy-lib.yml
vendored
|
|
@ -26,25 +26,27 @@ jobs:
|
|||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Update npm
|
||||
run: npm install -g npm@latest
|
||||
|
||||
- name: Install dependencies and build
|
||||
working-directory: './'
|
||||
working-directory: 'libs/contract'
|
||||
run: npm i && npm run prepublish
|
||||
|
||||
- name: Publish package on NPM
|
||||
working-directory: './'
|
||||
run: npm publish --provenance --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
working-directory: 'libs/contract'
|
||||
run: npm publish
|
||||
|
||||
send-finish-tg-msg:
|
||||
name: Send TG message
|
||||
|
|
|
|||
42
Makefile
Normal file
42
Makefile
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
.PHONY: bump-patch bump-minor bump-major help tag-release
|
||||
|
||||
# Default target
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " bump-patch - Bump patch version (x.x.X) and install dependencies"
|
||||
@echo " bump-minor - Bump minor version (x.X.x) and install dependencies"
|
||||
@echo " bump-major - Bump major version (X.x.x) and install dependencies"
|
||||
@echo " tag-release - Create and push git tag for current version"
|
||||
|
||||
# Bump patch version (0.0.1 -> 0.0.2)
|
||||
bump-patch:
|
||||
@echo "Bumping patch version..."
|
||||
npm version patch --no-git-tag-version
|
||||
@echo "New version: $$(node -p "require('./package.json').version")"
|
||||
npm install
|
||||
|
||||
# Bump minor version (0.1.0 -> 0.2.0)
|
||||
bump-minor:
|
||||
@echo "Bumping minor version..."
|
||||
npm version minor --no-git-tag-version
|
||||
@echo "New version: $$(node -p "require('./package.json').version")"
|
||||
npm install
|
||||
# Bump major version (1.0.0 -> 2.0.0)
|
||||
bump-major:
|
||||
@echo "Bumping major version..."
|
||||
npm version major --no-git-tag-version
|
||||
@echo "New version: $$(node -p "require('./package.json').version")"
|
||||
npm install
|
||||
|
||||
# Create and push git tag for current version
|
||||
tag-release:
|
||||
@VERSION=$$(node -p "require('./package.json').version") && \
|
||||
echo "Creating signed tag for version $$VERSION..." && \
|
||||
git tag -s "$$VERSION" -m "Release $$VERSION" && \
|
||||
git push origin --follow-tags && \
|
||||
echo "Signed tag $$VERSION created and pushed"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
870
package-lock.json
generated
870
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@remnawave/supervisord-nestjs",
|
||||
"version": "0.1.1",
|
||||
"version": "0.3.0",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"license": "AGPL-3.0-only",
|
||||
|
|
@ -18,11 +18,11 @@
|
|||
"url": "https://github.com/remnawave/supervisord-nestjs/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "^11.0.12",
|
||||
"@nestjs/core": "^11.0.12"
|
||||
"@nestjs/common": "^11.1.12",
|
||||
"@nestjs/core": "^11.1.12"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"node-supervisord": ">=1.0.6-rc.2"
|
||||
"@kastov/node-supervisord": ">=2"
|
||||
},
|
||||
"author": "Remnawave",
|
||||
"keywords": [],
|
||||
|
|
@ -35,4 +35,4 @@
|
|||
"eslint-plugin-prettier": "5.0.0",
|
||||
"typescript": "5.8.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { Logger } from '@nestjs/common';
|
||||
import { ISupervisordConfig } from './interfaces';
|
||||
import { SupervisordClient } from 'node-supervisord';
|
||||
import { SupervisordClient } from '@kastov/node-supervisord';
|
||||
|
||||
const logger = new Logger('supervisor-nestjs');
|
||||
|
||||
export function createSupervisordFactory(moduleOptions: ISupervisordConfig): SupervisordClient {
|
||||
const supervisor = new SupervisordClient(moduleOptions.host, moduleOptions.options);
|
||||
logger.log(`Supervisord initialized`);
|
||||
const supervisor = new SupervisordClient(moduleOptions.connectionUrl, moduleOptions.options);
|
||||
logger.log(`[OK] SupervisorD initialized`);
|
||||
return supervisor;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ interface ISupervisordConfigOptions {
|
|||
}
|
||||
|
||||
export interface ISupervisordConfig {
|
||||
host: string;
|
||||
connectionUrl: string;
|
||||
options?: ISupervisordConfigOptions;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ interface ISupervisordConfigOptions {
|
|||
}
|
||||
|
||||
export interface ISupervisordModuleOptions {
|
||||
host: string;
|
||||
connectionUrl: string;
|
||||
options?: ISupervisordConfigOptions;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
} from './supervisord-nestjs.builder';
|
||||
import { ModuleRef } from '@nestjs/core';
|
||||
import { ISupervisordModuleOptions } from './interfaces';
|
||||
import { SupervisordClient } from 'node-supervisord';
|
||||
import { SupervisordClient } from '@kastov/node-supervisord';
|
||||
|
||||
@Global()
|
||||
@Module({})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue