prep repo
All checks were successful
Build and test / build-and-test (18.x) (push) Successful in 12s
Build and test / build-and-test (20.x) (push) Successful in 12s

This commit is contained in:
James Brumond 2023-08-26 13:59:59 -07:00
parent e9ab51e2d2
commit 5acbfd4555
Signed by: james
GPG Key ID: E8F2FC44BAA3357A
5 changed files with 23 additions and 40 deletions

View File

@ -23,8 +23,8 @@ jobs:
- name: Login to package registry
run: |
npm config set @<scope name>:registry https://gitea.jbrumond.me/api/packages/<scope name>/npm/
npm config set -- '//gitea.jbrumond.me/api/packages/<scope name>/npm/:_authToken' "$NPM_PUBLISH_TOKEN"
npm config set @js:registry https://gitea.jbrumond.me/api/packages/js/npm/
npm config set -- '//gitea.jbrumond.me/api/packages/js/npm/:_authToken' "$NPM_PUBLISH_TOKEN"
- name: Install dependencies
run: npm ci

View File

@ -26,8 +26,8 @@ jobs:
- name: Login to package registry
run: |
npm config set @<scope name>:registry https://gitea.jbrumond.me/api/packages/<scope name>/npm/
npm config set -- '//gitea.jbrumond.me/api/packages/<scope name>/npm/:_authToken' "$NPM_PUBLISH_TOKEN"
npm config set @js:registry https://gitea.jbrumond.me/api/packages/js/npm/
npm config set -- '//gitea.jbrumond.me/api/packages/js/npm/:_authToken' "$NPM_PUBLISH_TOKEN"
- name: Install dependencies
run: npm ci

16
package-lock.json generated
View File

@ -1,17 +1,25 @@
{
"name": "@templates/typescript-library",
"version": "1.0.0",
"name": "@js/memo",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@templates/typescript-library",
"version": "1.0.0",
"name": "@js/memo",
"version": "0.1.0",
"license": "ISC",
"devDependencies": {
"@js/types": "^0.2.0",
"typescript": "^5.1.3"
}
},
"node_modules/@js/types": {
"version": "0.2.0",
"resolved": "https://gitea.jbrumond.me/api/packages/js/npm/%40js%2Ftypes/-/0.2.0/types-0.2.0.tgz",
"integrity": "sha512-7CsWkTQjuP9+Y+5Fv1vK0o6QDshJzCB0b8hTld3bu1j+wELrwBuLT3iTcfdB8H3hLLdohZfDMCWMl0ZY+0bseg==",
"dev": true,
"license": "ISC"
},
"node_modules/typescript": {
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",

View File

@ -1,7 +1,7 @@
{
"name": "@templates/typescript-library",
"version": "1.0.0",
"description": "Template project for creating new TypeScript library packages",
"name": "@js/memo",
"version": "0.1.0",
"description": "In-memory caching/memoization utilities",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
@ -9,15 +9,16 @@
"clean": "rm -rf ./build"
},
"publishConfig": {
"registry": "https://gitea.jbrumond.me/api/packages/templates/npm/"
"registry": "https://gitea.jbrumond.me/api/packages/js/npm/"
},
"repository": {
"type": "git",
"url": "https://gitea.jbrumond.me/templates/typescript-library.git"
"url": "https://gitea.jbrumond.me/js/memo.git"
},
"author": "James Brumond <https://jbrumond.me>",
"license": "ISC",
"devDependencies": {
"@js/types": "^0.2.0",
"typescript": "^5.1.3"
}
}

View File

@ -1,30 +1,4 @@
Template project for creating new TypeScript library packages
In-memory caching/memoization utilities
---
## Get Started
### Pull down the code
```bash
git init
git pull https://gitea.jbrumond.me/templates/typescript-library.git master
```
### Update configuration
- In `package.json`, update any fields like `name`, `description`, `repository`, etc.
- In `.gitea/workflows/publish.yaml`, update `<scope name>` placeholders
## Building
```bash
npm run tsc
```