refactor: rename package to @3t/bennc and update repository URL
- Changed package name from "bennc-js" to "@3t/bennc" - Updated repository URL to point to the new location - Added publishConfig for npm registry - Updated devDependencies to newer versions
This commit is contained in:
52
.drone.yml
52
.drone.yml
@@ -1,52 +0,0 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: install
|
||||
image: node:lts-alpine
|
||||
commands:
|
||||
- apk add git
|
||||
- npm install
|
||||
|
||||
- name: lint
|
||||
image: node:lts-alpine
|
||||
commands:
|
||||
- npm run lint
|
||||
depends_on:
|
||||
- install
|
||||
|
||||
- name: test
|
||||
image: node:lts-alpine
|
||||
commands:
|
||||
- npm run test
|
||||
depends_on:
|
||||
- install
|
||||
|
||||
- name: build
|
||||
image: node:lts-alpine
|
||||
commands:
|
||||
- apk add zip
|
||||
- npm run build
|
||||
- zip -r bennc-m.zip dist/
|
||||
depends_on:
|
||||
- install
|
||||
|
||||
- name: publish
|
||||
image: plugins/gitea-release
|
||||
depends_on:
|
||||
- lint
|
||||
- test
|
||||
- build
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
settings:
|
||||
base_url: https://git.jacknet.io
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files:
|
||||
- bennc-m.zip
|
||||
checksum:
|
||||
- md5
|
||||
- sha256
|
||||
57
.gitea/workflows/ci..yml
Normal file
57
.gitea/workflows/ci..yml
Normal file
@@ -0,0 +1,57 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:lts-alpine
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
publish:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
container: node:lts-alpine
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
- name: Set version from git tag
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
npm version $VERSION --no-git-tag-version
|
||||
|
||||
- name: Setup npm for publishing
|
||||
run: |
|
||||
npm config set //git.3t.network/api/packages/3t.network/npm/:_authToken ${{ secrets.PUBLISH_TOKEN }}
|
||||
|
||||
- name: Publish to Gitea npm registry
|
||||
run: npm publish
|
||||
10651
package-lock.json
generated
10651
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "bennc-js",
|
||||
"name": "@3t/bennc",
|
||||
"version": "1.0.0",
|
||||
"description": "A TypeScript/Javascript BENNC implementation.",
|
||||
"main": "dist/index.js",
|
||||
@@ -13,17 +13,13 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.jacknet.io/TerribleCodeClub/bennc-js"
|
||||
"url": "https://git.3t.network/3t.network/bennc"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://git.3t.network/api/packages/3t.network/npm/"
|
||||
},
|
||||
"author": "Butlersaurus",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@types/jest": "^27.4.0",
|
||||
"jest": "^27.4.7",
|
||||
"ts-jest": "^27.1.3",
|
||||
"ts-standard": "^11.0.0",
|
||||
"typescript": "^4.5.5"
|
||||
},
|
||||
"jest": {
|
||||
"verbose": true,
|
||||
"transform": {
|
||||
@@ -34,5 +30,12 @@
|
||||
"@3t/romulus": "^1.0.2",
|
||||
"@types/color": "^3.0.3",
|
||||
"color": "^4.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^30.0.0",
|
||||
"jest": "^30.1.3",
|
||||
"prettier": "^3.6.2",
|
||||
"ts-jest": "^29.4.1",
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user