changie 1.14.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Ronnie Smith
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ <p align="center">
2
+ <a href="https://changie.dev">
3
+ <img alt="Changie Logo" src="./docs/themes/hugo-whisper-theme/static/images/logo.svg" height="256" />
4
+ </a>
5
+ <h3 align="center">Changie</h3>
6
+ <p align="center">Separate your changelog from commit messages without conflicts.</p>
7
+ </p>
8
+
9
+ [![Codecov](https://img.shields.io/codecov/c/github/miniscruff/changie?style=for-the-badge&logo=codecov)](https://codecov.io/gh/miniscruff/changie)
10
+ [![GitHub release](https://img.shields.io/github/v/release/miniscruff/changie?style=for-the-badge&logo=github)](https://github.com/miniscruff/changie/releases)
11
+ [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/miniscruff/changie/test.yml?event=push&style=for-the-badge&logo=github)](https://github.com/miniscruff/changie/actions/workflows/test.yml)
12
+ [![Go Packge](https://img.shields.io/badge/Go-Reference-grey?style=for-the-badge&logo=go&logoColor=white&label=%20&labelColor=007D9C)](https://pkg.go.dev/github.com/miniscruff/changie)
13
+ [![Awesome Go](https://img.shields.io/badge/awesome-awesome?style=for-the-badge&logo=awesomelists&logoColor=white&label=%20&labelColor=CCA6C4&color=494368)](https://github.com/avelino/awesome-go#utilities)
14
+
15
+ ![quick_start](./examples/quick_start.gif)
16
+
17
+ ## Features
18
+ * File based changelog management keeps your commit history and release notes separate.
19
+ * Track changes while you work while the knowledge is fresh.
20
+ * Extensive [configuration options](https://changie.dev/config) to fit your project.
21
+ * Language and framework agnostic using a single go binary.
22
+
23
+ ## Getting Started
24
+ * User documentation is available on the [website](https://changie.dev/).
25
+ * Specifically, the [guide](https://changie.dev/guide/) is a good place to start.
26
+ * There is also a [Changie GitHub Action](https://github.com/miniscruff/changie-action) available.
27
+ * Changie's [Changelog](CHANGELOG.md) is generated by itself.
28
+ * [Examples](./examples) contains a few configurations and video examples.
29
+
30
+ ## Need help?
31
+ Use the [discussions page](https://github.com/miniscruff/changie/discussions) for help requests and how-to questions.
32
+
33
+ Please open [GitHub issues](https://github.com/miniscruff/changie/issues) for bugs and feature requests.
34
+ File an issue before creating a pull request, unless it is something simple like a typo.
35
+
36
+ ## Want to Contribute?
37
+ If you want to contribute through code or documentation, the [Contributing guide](CONTRIBUTING.md) is the place to start.
38
+ If you need additional help create an issue or post on discussions.
39
+
40
+ ## Semantic Version Compatibility
41
+ Changie is focused around the CLI and its configuration options and aims to keep existing CLI commands and options suported in major versions.
42
+ It is possible to use Changie as a dependent package but no support or compability is guaranteed.
43
+
44
+ ## License
45
+ Distributed under the [MIT License](LICENSE).
package/npm/changie.js ADDED
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+ const fs = require('node:fs');
3
+ const path = require('node:path');
4
+ const { spawn } = require('node:child_process')
5
+
6
+ // Platform distributed through NPM, this should mirror the package.json file list
7
+ const executables = {
8
+ 'darwin-arm64': true,
9
+ 'darwin-x64': true,
10
+ 'linux-arm64': true,
11
+ 'linux-x64': true,
12
+ 'win32-ia32': true,
13
+ 'win32-x64': true
14
+ };
15
+
16
+ const DIST = path.join(__dirname, 'dist');
17
+ const target = `${process.platform}-${process.arch}`
18
+
19
+ const runChangie = (filename) => {
20
+ const ext = process.platform === 'win32' ? '.exe' : '';
21
+ const executable = path.join(DIST, filename + ext);
22
+ const stat = fs.statSync(executable)
23
+ if (stat.isFile()) {
24
+ const child = spawn(executable, process.argv.slice(2));
25
+ child.stdout.pipe(process.stdout);
26
+ child.stderr.pipe(process.stderr);
27
+ child.on('close', (code) => {
28
+ process.exit(code);
29
+ });
30
+ } else {
31
+ throw new Error(`Unable to find changie ${executable} in NPM package`)
32
+ }
33
+ }
34
+
35
+ if (executables[target]) {
36
+ runChangie(target);
37
+ } else {
38
+ throw new Error(`Unsupported platform for Changie: ${target}`);
39
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "changie",
3
+ "version": "1.14.0",
4
+ "author": "miniscruff",
5
+ "description": "Automated changelog tool for preparing releases with lots of customization options",
6
+ "bin": {
7
+ "changie": "npm/changie.js"
8
+ },
9
+ "scripts": {
10
+ "prepack": "ls `node -e 'console.log((require(\"./package.json\").files||[]).join(\" \"))'`>/dev/null"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/miniscruff/changie.git"
15
+ },
16
+ "keywords": [
17
+ "changelog"
18
+ ],
19
+ "files": [
20
+ "npm/dist/darwin-arm64",
21
+ "npm/dist/darwin-x64",
22
+ "npm/dist/linux-arm64",
23
+ "npm/dist/linux-x64",
24
+ "npm/dist/win32-ia32.exe",
25
+ "npm/dist/win32-x64.exe",
26
+ "npm/changie.js",
27
+ "README.md",
28
+ "LICENSE"
29
+ ],
30
+ "license": "MIT",
31
+ "bugs": {
32
+ "url": "https://github.com/miniscruff/changie/issues"
33
+ },
34
+ "homepage": "https://github.com/miniscruff/changie#readme"
35
+ }