Skip to content

Commit

Permalink
fix(ci): adjust the repository url
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Sep 9, 2022
1 parent ea2b237 commit 6f284c8
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 56 deletions.
23 changes: 7 additions & 16 deletions .stacks/components/package.json
Original file line number Diff line number Diff line change
@@ -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 <chris@ow3.org>"
],
"keywords": ["component","library","vue","vite","typescript","javascript"],
"contributors": ["Chris Breuer <chris@ow3.org>"],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -35,6 +26,6 @@
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"./dist/components"
"dist"
]
}
29 changes: 10 additions & 19 deletions .stacks/elements/package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,31 @@
{
"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 <chris@ow3.org>"
],
"keywords": ["component","library","vue","vite","typescript","javascript"],
"contributors": ["Chris Breuer <chris@ow3.org>"],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"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"
]
}
22 changes: 7 additions & 15 deletions .stacks/functions/package.json
Original file line number Diff line number Diff line change
@@ -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 <chris@ow3.org>"
],
"keywords": ["functions","composables","library","typescript","javascript"],
"contributors": ["Chris Breuer <chris@ow3.org>"],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -34,6 +26,6 @@
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/functions"
"dist"
]
}
8 changes: 4 additions & 4 deletions .stacks/src/scripts/generate-package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)},
Expand Down
5 changes: 3 additions & 2 deletions config/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export const author = 'Chris Breuer'
export const contributors = ['Chris Breuer <chris@ow3.org>']
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}`
Expand All @@ -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 }

0 comments on commit 6f284c8

Please sign in to comment.