@halospv3/hce.shared-config 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +21 -2
- package/cjs/index.cjs +3 -0
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.ts.map +1 -1
- package/package.json +6 -3
- package/src/index.ts +2 -0
- package/static/.releaserc.yml +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.2.0](https://github.com/halospv3/hce.shared/compare/v1.1.2...v1.2.0) (2023-10-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **node:** include semantic-release-export-data by default ([d7bd6bf](https://github.com/halospv3/hce.shared/commit/d7bd6bf298fa26405366af2eba809c0c426de76d))
|
|
7
|
+
* **node:** publish *all* files in ./publish/ directories ([82051be](https://github.com/halospv3/hce.shared/commit/82051bec96f1f37f12eb995fc4bd14afea9f5b31))
|
|
8
|
+
|
|
1
9
|
## [1.1.2](https://github.com/halospv3/hce.shared/compare/v1.1.1...v1.1.2) (2023-10-22)
|
|
2
10
|
|
|
3
11
|
|
package/README.md
CHANGED
|
@@ -5,9 +5,28 @@ It is recommended to "install" this repo via [Node Package Manager](#npm)
|
|
|
5
5
|
|
|
6
6
|
## NPM
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
### Usage
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
`npm install --save-dev HaloSPV3/HCE.Shared`
|
|
11
|
+
|
|
12
|
+
See [package.json](package.json), [src/index.ts](src/index.ts), and [static/.releaserc.yml](static/.releaserc.yml)
|
|
13
|
+
|
|
14
|
+
### Help
|
|
15
|
+
|
|
16
|
+
#### Need your VersionInfo before the actual release?
|
|
17
|
+
|
|
18
|
+
Make sure you are synced up before doing a dry-run! Semantic-release will fail before printing the version if you aren't synced with the remote!
|
|
19
|
+
Yes, I know that's ridiculous.
|
|
20
|
+
Run `npx semantic-release --dry-run --plugins "@semantic-release/commit-analyzer,semantic-release-export-data"`
|
|
21
|
+
|
|
22
|
+
#### Don't want to publish a Node package?
|
|
23
|
+
|
|
24
|
+
Add the following to your `package.json`:
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"private": true,
|
|
28
|
+
}
|
|
29
|
+
```
|
|
11
30
|
|
|
12
31
|
## .NET
|
|
13
32
|
|
package/cjs/index.cjs
CHANGED
|
@@ -10,6 +10,9 @@ const _interopDefault = e => e && e.__esModule ? e : {
|
|
|
10
10
|
};
|
|
11
11
|
const path__default = /*#__PURE__*/_interopDefault(path);
|
|
12
12
|
const jsYaml__default = /*#__PURE__*/_interopDefault(jsYaml);
|
|
13
|
+
|
|
14
|
+
/// ../static/.releaserc.yml
|
|
15
|
+
|
|
13
16
|
function findStaticConfig() {
|
|
14
17
|
const glob = "static/.releaserc.yml";
|
|
15
18
|
let dirPath = node_url.fileURLToPath(path__default.default.dirname(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href));
|
package/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":null,"names":["fileURLToPath","path","existsSync","jsYaml","readFileSync"],"mappings":";;;;;;;;;;;;;AAIA,SAAS,gBAAgB,GAAG;AAC5B,EAAE,MAAM,IAAI,GAAG,uBAAuB,CAAC;AACvC,EAAE,IAAI,OAAO,GAAGA,sBAAa,CAACC,qBAAI,CAAC,OAAO,CAAC,8LAAe,CAAC,CAAC,CAAC;AAC7D,EAAE,IAAI,YAAY,GAAGA,qBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC9C,EAAE,OAAO,CAACC,kBAAU,CAAC,YAAY,CAAC,EAAE;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAID,qBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,MAAM,IAAI,KAAK,CAAC,CAAC,uHAAuH,EAAE,IAAI,CAAC,iBAAiB,EAAEA,qBAAI,CAAC,OAAO,CAAC,8LAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1O,IAAI,OAAO,GAAGA,qBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACpC,IAAI,YAAY,GAAGA,qBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC5C,GAAG;AACH,EAAE,OAAO,YAAY,CAAC;AACtB,CAAC;AACI,MAAC,OAAO,GAAGE,uBAAM,CAAC,IAAI,CAACC,oBAAY,CAAC,gBAAgB,EAAE,EAAE;AAC7D,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":null,"names":["fileURLToPath","path","existsSync","jsYaml","readFileSync"],"mappings":";;;;;;;;;;;;;AAIA;AACA;AACA,SAAS,gBAAgB,GAAG;AAC5B,EAAE,MAAM,IAAI,GAAG,uBAAuB,CAAC;AACvC,EAAE,IAAI,OAAO,GAAGA,sBAAa,CAACC,qBAAI,CAAC,OAAO,CAAC,8LAAe,CAAC,CAAC,CAAC;AAC7D,EAAE,IAAI,YAAY,GAAGA,qBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC9C,EAAE,OAAO,CAACC,kBAAU,CAAC,YAAY,CAAC,EAAE;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAID,qBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,MAAM,IAAI,KAAK,CAAC,CAAC,uHAAuH,EAAE,IAAI,CAAC,iBAAiB,EAAEA,qBAAI,CAAC,OAAO,CAAC,8LAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1O,IAAI,OAAO,GAAGA,qBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACpC,IAAI,YAAY,GAAGA,qBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC5C,GAAG;AACH,EAAE,OAAO,YAAY,CAAC;AACtB,CAAC;AACI,MAAC,OAAO,GAAGE,uBAAM,CAAC,IAAI,CAACC,oBAAY,CAAC,gBAAgB,EAAE,EAAE;AAC7D,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC,CAAC;;;;"}
|
package/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AA+BhD,QAAA,MAAM,OAAO,SAAiF,CAAC;AAE/F;;;GAGG;AACH,eAAe,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halospv3/hce.shared-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"halo",
|
|
@@ -53,9 +53,11 @@
|
|
|
53
53
|
"husky": "^8.0.3",
|
|
54
54
|
"js-yaml": "^4.1.0",
|
|
55
55
|
"node-fetch": "^3.3.2",
|
|
56
|
-
"semantic-release": "^22.0.0"
|
|
56
|
+
"semantic-release": "^22.0.0",
|
|
57
|
+
"semantic-release-export-data": "^1.0.1"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
60
|
+
"@halospv3/hce.shared-config": "./",
|
|
59
61
|
"@tsconfig/node-lts": "^18.12.5",
|
|
60
62
|
"@types/debug": "^4.1.8",
|
|
61
63
|
"@types/js-yaml": "^4.0.8",
|
|
@@ -92,7 +94,8 @@
|
|
|
92
94
|
"types": "./cjs/index.d.ts",
|
|
93
95
|
"require": "./cjs/index.cjs"
|
|
94
96
|
}
|
|
95
|
-
}
|
|
97
|
+
},
|
|
98
|
+
"./static/.releaserc.yml": "./static/.releaserc.yml"
|
|
96
99
|
},
|
|
97
100
|
"types": "./cjs/index.d.ts",
|
|
98
101
|
"commitlint": {
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
import jsYaml from "js-yaml";
|
|
5
5
|
import type { Options } from "semantic-release";
|
|
6
6
|
|
|
7
|
+
/// ../static/.releaserc.yml
|
|
8
|
+
|
|
7
9
|
function findStaticConfig(): string {
|
|
8
10
|
const glob = "static/.releaserc.yml";
|
|
9
11
|
let dirPath = fileURLToPath(path.dirname(import.meta.url));
|
package/static/.releaserc.yml
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
# https://semantic-release.gitbook.io/semantic-release/v/beta/usage/plugins#plugin-options-configuration
|
|
5
5
|
preset: conventionalcommits
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### main options
|
|
8
8
|
|
|
9
9
|
branches: # https://semantic-release.gitbook.io/semantic-release/v/beta/usage/configuration#branches
|
|
10
10
|
- main
|
|
11
11
|
- name: develop
|
|
12
12
|
channel: develop
|
|
13
13
|
prerelease: true
|
|
14
|
-
|
|
15
14
|
plugins: # https://semantic-release.gitbook.io/semantic-release/v/beta/usage/configuration#plugins
|
|
16
15
|
- "@semantic-release/commit-analyzer"
|
|
16
|
+
- "semantic-release-export-data"
|
|
17
17
|
- "@semantic-release/release-notes-generator"
|
|
18
18
|
- "@semantic-release/changelog"
|
|
19
19
|
- - "@semantic-release/git"
|
|
@@ -22,10 +22,11 @@ plugins: # https://semantic-release.gitbook.io/semantic-release/v/beta/usage/con
|
|
|
22
22
|
- CHANGELOG.md
|
|
23
23
|
- - "@semantic-release/github"
|
|
24
24
|
- assets:
|
|
25
|
-
- path: ./publish
|
|
26
|
-
## (OPTIONAL) export data
|
|
27
|
-
# https://github.com/felipecrs/semantic-release-export-data#readme
|
|
28
|
-
|
|
25
|
+
- path: ./publish/*
|
|
29
26
|
## (OPTIONAL) update Version strings
|
|
30
27
|
# https://github.com/jpoehnelt/semantic-release-replace-plugin
|
|
31
28
|
# https://github.com/droidsolutions/semantic-release-update-file
|
|
29
|
+
|
|
30
|
+
## Arbitrary shell commands
|
|
31
|
+
# (useful for `dotnet publish publish/`, but should be run after version tag is pushed so InformationalVersionInfo isn't a subversion)
|
|
32
|
+
# https://github.com/semantic-release/exec
|