Skip to content

Commit

Permalink
build(project): began to configure semver for easy release deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Nov 23, 2023
1 parent 06adb73 commit 67d6de2
Show file tree
Hide file tree
Showing 23 changed files with 1,481 additions and 1,574 deletions.
Empty file added apps/octra/CHANGELOG.md
Empty file.
6 changes: 6 additions & 0 deletions apps/octra/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@
"options": {
"buildTarget": "octra:build"
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
}
}
Empty file.
10 changes: 7 additions & 3 deletions apps/web-components/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"apps/web-components/src/LICENSE.txt",
"apps/web-components/src/README.md"
],
"styles": [
"apps/web-components/styles.css"
],
"styles": ["apps/web-components/styles.css"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -108,6 +106,12 @@
"codeCoverage": true
}
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
}
}
Empty file added libs/annotation/CHANGELOG.md
Empty file.
14 changes: 14 additions & 0 deletions libs/annotation/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
{
"name": "@octra/annotation",
"description": "library containing annotation related classes and functions used by OCTRA (e.g. file converters)",
"version": "0.1.7",
"license": "MIT",
"private": false,
"author": {
"name": "Julian Poemp"
},
"bugs": {
"url": "https://github.com/IPS-LMU/octra/issues"
},
"homepage": "https://github.com/IPS-LMU/octra",
"peerDependencies": {
"@octra/media": "~0.0.11",
"@octra/utilities": "~0.0.3"
},
"repository": {
"type": "git",
"url": "https://github.com/IPS-LMU/octra"
},
"type": "commonjs",
"main": "./index.cjs",
"module": "./index.js",
Expand Down
22 changes: 22 additions & 0 deletions libs/annotation/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,28 @@
"libs/annotation/package.json"
]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"postTargets": ["annotation:github"],
"baseBranch": "main",
"commitMessageFormat": "build(${projectName}): release version ${version}"
}
},
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "${tag}",
"notes": "${notes}"
}
},
"npm": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"tags": []
Expand Down
Empty file added libs/assets/CHANGELOG.md
Empty file.
40 changes: 14 additions & 26 deletions libs/assets/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@
"targets": {
"build": {
"executor": "@nx/rollup:rollup",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"rollupConfig": "libs/assets/rollup.cjs",
"outputPath": "dist/libs/assets",
"main": "libs/assets/src/index.ts",
"tsConfig": "libs/assets/tsconfig.lib.json",
"project": "libs/assets/package.json",
"compiler": "tsc",
"format": [
"cjs",
"esm"
],
"format": ["cjs", "esm"],
"assets": [
"libs/assets/src/README.md",
"libs/assets/src/LICENSE.txt",
Expand All @@ -33,14 +28,10 @@
},
"bundle": {
"executor": "@nx/webpack:webpack",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"libraryName": "OctraAssets",
"libraryTargets": [
"umd"
],
"libraryTargets": ["umd"],
"index": "",
"tsConfig": "libs/assets/tsconfig.lib.json",
"main": "libs/assets/src/index.ts",
Expand All @@ -55,29 +46,26 @@
"namedChunks": false,
"webpackConfig": "webpack.config.js"
},
"dependsOn": [
"build"
]
"dependsOn": ["build"]
},
"publish": {
"executor": "nx:run-commands",
"options": {
"command": "node tools/scripts/publish.mjs assets {args.ver} {args.tag}"
},
"dependsOn": [
"build"
]
"dependsOn": ["build"]
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"libs/assets/**/*.ts",
"libs/assets/package.json"
]
"lintFilePatterns": ["libs/assets/**/*.ts", "libs/assets/package.json"]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
},
Expand Down
Empty file added libs/json-sets/CHANGELOG.md
Empty file.
6 changes: 6 additions & 0 deletions libs/json-sets/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
"libs/json-sets/package.json"
]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
},
"tags": []
Expand Down
Empty file added libs/media/CHANGELOG.md
Empty file.
6 changes: 6 additions & 0 deletions libs/media/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
"options": {
"lintFilePatterns": ["libs/media/**/*.ts", "libs/media/package.json"]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
},
"tags": []
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions libs/ngx-components/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"libs/ngx-components/package.json"
]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
}
}
Empty file added libs/ngx-utilities/CHANGELOG.md
Empty file.
6 changes: 6 additions & 0 deletions libs/ngx-utilities/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"libs/ngx-utilities/package.json"
]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
}
}
Empty file added libs/utilities/CHANGELOG.md
Empty file.
6 changes: 6 additions & 0 deletions libs/utilities/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
"options": {
"lintFilePatterns": ["utilities/**/*.ts", "utilities/package.json"]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
},
"tags": []
Expand Down
Empty file added libs/web-media/CHANGELOG.md
Empty file.
23 changes: 10 additions & 13 deletions libs/web-media/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@
"compiler": "tsc",
"format": ["cjs", "esm"],
"external": ["@octra/utilities", "@octra/media"],
"dependsOn": [
"media",
"utilities"
]
"dependsOn": ["media", "utilities"]
}
},
"bundle": {
"executor": "@nx/webpack:webpack",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"babelUpwardRootMode": true,
"libraryName": "OctraWebMedia",
"libraryTargets": [
"umd"
],
"libraryTargets": ["umd"],
"index": "",
"tsConfig": "libs/web-media/tsconfig.lib.json",
"main": "libs/web-media/src/index.ts",
Expand All @@ -51,9 +44,7 @@
"namedChunks": false,
"webpackConfig": "webpack.config.js"
},
"dependsOn": [
"build"
]
"dependsOn": ["build"]
},
"lint": {
"executor": "@nx/linter:eslint",
Expand All @@ -64,6 +55,12 @@
"libs/web-media/package.json"
]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
}
}
},
"tags": []
Expand Down
Loading

0 comments on commit 67d6de2

Please sign in to comment.