From 6f284c8b9274be72419f0a61a6c62f96a268181e Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 9 Sep 2022 19:11:07 +0200 Subject: [PATCH] fix(ci): adjust the repository url --- .stacks/components/package.json | 23 +++++----------- .stacks/elements/package.json | 29 +++++++------------- .stacks/functions/package.json | 22 +++++---------- .stacks/src/scripts/generate-package-json.ts | 8 +++--- config/library.ts | 5 ++-- 5 files changed, 31 insertions(+), 56 deletions(-) diff --git a/.stacks/components/package.json b/.stacks/components/package.json index 2f14debf58..7e5f83f879 100644 --- a/.stacks/components/package.json +++ b/.stacks/components/package.json @@ -1,29 +1,20 @@ { "name": "@ow3/hello-world-vue", - "version": "0.25.4", + "version": "", "description": "Your Vue component library description.", "author": "Chris Breuer", "license": "MIT", - "homepage": "https://github.com/@ow3/hello-world/tree/main/components#readme", + "homepage": "https://github.com/ow3org/stacks/tree/main/components#readme", "repository": { "type": "git", - "url": "git+https://github.com/@ow3/hello-world.git", + "url": "git+https://github.com/ow3org/stacks.git", "directory": "components" }, "bugs": { - "url": "https://github.com/@ow3/hello-world/issues" + "url": "https://github.com/ow3org/stacks/issues" }, - "keywords": [ - "component", - "library", - "vue", - "vite", - "typescript", - "javascript" - ], - "contributors": [ - "Chris Breuer " - ], + "keywords": ["component","library","vue","vite","typescript","javascript"], + "contributors": ["Chris Breuer "], "exports": { ".": { "types": "./dist/index.d.ts", @@ -35,6 +26,6 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ - "./dist/components" + "dist" ] } diff --git a/.stacks/elements/package.json b/.stacks/elements/package.json index 08c23608e1..1f7050bcb0 100644 --- a/.stacks/elements/package.json +++ b/.stacks/elements/package.json @@ -1,29 +1,20 @@ { "name": "@ow3/hello-world-elements", - "version": "0.25.4", + "version": "", "description": "Your framework agnostic web component library description.", "author": "Chris Breuer", "license": "MIT", - "homepage": "https://github.com/@ow3/hello-world/tree/main/components#readme", + "homepage": "https://github.com/ow3org/stacks/tree/main/components#readme", "repository": { "type": "git", - "url": "git+https://github.com/@ow3/hello-world.git", + "url": "git+https://github.com/ow3org/stacks.git", "directory": "components" }, "bugs": { - "url": "https://github.com/@ow3/hello-world/issues" + "url": "https://github.com/ow3org/stacks/issues" }, - "keywords": [ - "component", - "library", - "vue", - "vite", - "typescript", - "javascript" - ], - "contributors": [ - "Chris Breuer " - ], + "keywords": ["component","library","vue","vite","typescript","javascript"], + "contributors": ["Chris Breuer "], "exports": { ".": { "types": "./dist/index.d.ts", @@ -31,10 +22,10 @@ "import": "./dist/index.mjs" } }, - "main": "./dist/index.cjs", - "module": "./dist/index.mjs", - "types": "./dist/index.d.ts", + "main": "dist/index.cjs", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", "files": [ - "./dist" + "dist" ] } diff --git a/.stacks/functions/package.json b/.stacks/functions/package.json index 7b8c77ceab..d57216998c 100644 --- a/.stacks/functions/package.json +++ b/.stacks/functions/package.json @@ -1,28 +1,20 @@ { "name": "@ow3/hello-world-fx", - "version": "0.25.4", + "version": "", "description": "Your function library description.", "author": "Chris Breuer", "license": "MIT", - "homepage": "https://github.com/@ow3/hello-world/tree/main/functions#readme", + "homepage": "https://github.com/ow3org/stacks/tree/main/functions#readme", "repository": { "type": "git", - "url": "git+https://github.com/@ow3/hello-world.git", + "url": "git+https://github.com/ow3org/stacks.git", "directory": "functions" }, "bugs": { - "url": "https://github.com/@ow3/hello-world/issues" + "url": "https://github.com/ow3org/stacks/issues" }, - "keywords": [ - "functions", - "composables", - "library", - "typescript", - "javascript" - ], - "contributors": [ - "Chris Breuer " - ], + "keywords": ["functions","composables","library","typescript","javascript"], + "contributors": ["Chris Breuer "], "exports": { ".": { "types": "./dist/index.d.ts", @@ -34,6 +26,6 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ - "dist/functions" + "dist" ] } diff --git a/.stacks/src/scripts/generate-package-json.ts b/.stacks/src/scripts/generate-package-json.ts index 7ed6997c39..32cd0253a0 100644 --- a/.stacks/src/scripts/generate-package-json.ts +++ b/.stacks/src/scripts/generate-package-json.ts @@ -7,7 +7,7 @@ export async function generatePackageJson(type: string) { consola.info(`Creating the corresponding package.json file needed to publish the ${type} package...`) const author = library.author - const stackName = library.stackName + const repository = library.repository const contributors = library.contributors let name, description, directory, keywords @@ -46,14 +46,14 @@ export async function generatePackageJson(type: string) { "description": "${description}", "author": "${author}", "license": "MIT", - "homepage": "https://github.com/${stackName}/tree/main/${directory}#readme", + "homepage": "https://github.com/${repository}/tree/main/${directory}#readme", "repository": { "type": "git", - "url": "git+https://github.com/${stackName}.git", + "url": "git+https://github.com/${repository}.git", "directory": "${directory}" }, "bugs": { - "url": "https://github.com/${stackName}/issues" + "url": "https://github.com/${repository}/issues" }, "keywords": ${JSON.stringify(keywords)}, "contributors": ${JSON.stringify(contributors)}, diff --git a/config/library.ts b/config/library.ts index ac3a332af9..c64486fe90 100644 --- a/config/library.ts +++ b/config/library.ts @@ -13,8 +13,9 @@ export const author = 'Chris Breuer' export const contributors = ['Chris Breuer '] export const defaultLanguage = 'en' -export const organizationName = '@ow3' export const libraryName = 'hello-world' +export const organizationName = '@ow3' +export const repository = 'ow3org/stacks' export const host: Hosts = 'netlify' export const stackName = `${organizationName}/${libraryName}` @@ -30,4 +31,4 @@ export const componentLibraryKeywords = ['component', 'library', 'vue', 'vite', export const webComponentLibraryKeywords = ['custom-elements', 'web-components', 'library', 'framework-agnostic', 'typescript', 'javascript'] export const functionLibraryKeywords = ['functions', 'composables', 'library', 'typescript', 'javascript'] -export default { defaultLanguage, license, author, contributors, organizationName, libraryName, host, stackName, componentLibraryName, webComponentLibraryName, componentLibraryDescription, webComponentLibraryDescription, functionLibraryDescription, componentLibraryKeywords, webComponentLibraryKeywords, functionLibraryKeywords, functionLibraryName } +export default { defaultLanguage, license, author, contributors, organizationName, libraryName, host, stackName, componentLibraryName, webComponentLibraryName, componentLibraryDescription, webComponentLibraryDescription, functionLibraryDescription, componentLibraryKeywords, webComponentLibraryKeywords, functionLibraryKeywords, functionLibraryName, repository }