From 5acbfd45554d84367d94d0847afb9a9a70bb7c68 Mon Sep 17 00:00:00 2001 From: James Brumond Date: Sat, 26 Aug 2023 13:59:59 -0700 Subject: [PATCH] prep repo --- .gitea/workflows/build-and-publish.yaml | 4 ++-- .gitea/workflows/build-and-test.yaml | 4 ++-- package-lock.json | 16 ++++++++++---- package.json | 11 +++++----- readme.md | 28 +------------------------ 5 files changed, 23 insertions(+), 40 deletions(-) diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index 07fd5c3..d80b4c7 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -23,8 +23,8 @@ jobs: - name: Login to package registry run: | - npm config set @:registry https://gitea.jbrumond.me/api/packages//npm/ - npm config set -- '//gitea.jbrumond.me/api/packages//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 diff --git a/.gitea/workflows/build-and-test.yaml b/.gitea/workflows/build-and-test.yaml index 3f97cd5..f074919 100644 --- a/.gitea/workflows/build-and-test.yaml +++ b/.gitea/workflows/build-and-test.yaml @@ -26,8 +26,8 @@ jobs: - name: Login to package registry run: | - npm config set @:registry https://gitea.jbrumond.me/api/packages//npm/ - npm config set -- '//gitea.jbrumond.me/api/packages//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 diff --git a/package-lock.json b/package-lock.json index b8d09b5..0f29a5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index ded3a6d..a767a07 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "ISC", "devDependencies": { + "@js/types": "^0.2.0", "typescript": "^5.1.3" } } diff --git a/readme.md b/readme.md index 7389046..3f345e1 100644 --- a/readme.md +++ b/readme.md @@ -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 `` placeholders - - - -## Building - -```bash -npm run tsc -``` - - - -