diff --git a/.gitignore b/.gitignore index bd249fb..2210b5a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ node_modules/ !/chromium/.gclient !/chromium/depot_tools !/chromium/patches +/packages/*/build diff --git a/.refloat/config.js b/.refloat/config.js index c6ec557..41cd905 100644 --- a/.refloat/config.js +++ b/.refloat/config.js @@ -1,4 +1,5 @@ -const version = '0.0.1' +import { version } from '../package.json' + const sharedLib = { macos: 'dylib', linux: 'so' diff --git a/Cargo.lock b/Cargo.lock index ec5b0a6..0ab8bf6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,7 +25,7 @@ checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" [[package]] name = "carbonyl" -version = "0.0.1" +version = "0.0.2" dependencies = [ "chrono", "libc", diff --git a/Cargo.toml b/Cargo.toml index 1e663bc..7f1af5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "carbonyl" -version = "0.0.1" +version = "0.0.2" edition = "2021" [dependencies] diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..d3dfa72 --- /dev/null +++ b/changelog.md @@ -0,0 +1,49 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.0.2] - 2023-02-09 + +### 🚀 Features + +- Better true color detection +- Linux support +- Xterm title +- Hide stderr unless crash +- Add `--debug` to print stderr on exit ([#23](https://github.com/orhun/git-cliff/issues/23)) +- Add navigation UI ([#86](https://github.com/orhun/git-cliff/issues/86)) +- Handle terminal resize ([#87](https://github.com/orhun/git-cliff/issues/87)) + +### 🐛 Bug Fixes + +- Parser fixes +- Properly enter tab and return keys +- Fix some special characters ([#35](https://github.com/orhun/git-cliff/issues/35)) +- Improve terminal size detection ([#36](https://github.com/orhun/git-cliff/issues/36)) +- Allow working directories that contain spaces ([#63](https://github.com/orhun/git-cliff/issues/63)) +- Do not use tags for checkout ([#64](https://github.com/orhun/git-cliff/issues/64)) +- Do not checkout nacl ([#79](https://github.com/orhun/git-cliff/issues/79)) +- Wrap zip files in carbonyl folder ([#88](https://github.com/orhun/git-cliff/issues/88)) +- Fix WebGL support on Linux ([#90](https://github.com/orhun/git-cliff/issues/90)) +- Fix initial freeze on Docker ([#91](https://github.com/orhun/git-cliff/issues/91)) + +### 📖 Documentation + +- Upload demo videos +- Fix video layout +- Fix a typo ([#1](https://github.com/orhun/git-cliff/issues/1)) +- Fix a typo `ie.` -> `i.e.` ([#9](https://github.com/orhun/git-cliff/issues/9)) +- Fix build instructions ([#15](https://github.com/orhun/git-cliff/issues/15)) +- Add ascii logo +- Add comparisons ([#34](https://github.com/orhun/git-cliff/issues/34)) +- Add OS support ([#50](https://github.com/orhun/git-cliff/issues/50)) +- Add download link +- Fix linux download links +- Document shared library +- Fix a typo (`know` -> `known`) ([#71](https://github.com/orhun/git-cliff/issues/71)) +- Add license + +### Build + +- Various build system fixes ([#20](https://github.com/orhun/git-cliff/issues/20)) + diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..4ce8fc2 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,44 @@ +[changelog] +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | striptags | trim | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}){% endfor -%}){% endif %}\ + {% endfor %} +{% endfor %}\n +""" +trim = true +footer = "" + +[git] +conventional_commits = true +filter_unconventional = true +split_commits = false +commit_preprocessors = [ + { pattern = "#([0-9]+)", replace = "[#${1}](https://github.com/orhun/git-cliff/issues/${1})" } +] +commit_parsers = [ + { message = "^feat", group = "🚀 Features" }, + { message = "^fix", group = "🐛 Bug Fixes" }, + { message = "^doc", group = "📖 Documentation" }, + { message = "^perf", group = "⚡ Performance"}, + { message = "^chore", skip = true }, + { body = ".*security", group = "🔐 Security"}, +] +protect_breaking_commits = false +filter_commits = false +tag_pattern = "v[0-9]*" +skip_tags = "" +ignore_tags = "" +topo_order = true +sort_commits = "oldest" diff --git a/package.json b/package.json index a8a8a03..9c94bd0 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name": "carbonyl", - "version": "0.0.1", + "version": "0.0.2", "license": "BSD-3-Clause" } diff --git a/scripts/changelog.sh b/scripts/changelog.sh new file mode 100755 index 0000000..9754084 --- /dev/null +++ b/scripts/changelog.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +export CARBONYL_ROOT=$(cd $(dirname -- "$0") && dirname -- $(pwd)) +export SKIP_DEPOT_TOOLS="true" + +cd "$CARBONYL_ROOT" +source "scripts/env.sh" + +git cliff a69e8b609625b67a3e52e18f73ba5d0f49ceb7c3..HEAD "$@" > changelog.md diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..c012fa3 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +export CARBONYL_ROOT=$(cd $(dirname -- "$0") && dirname -- $(pwd)) +export SKIP_DEPOT_TOOLS="true" + +cd "$CARBONYL_ROOT" +source "scripts/env.sh" + +npm version "$1" --no-git-tag-version +"$CARBONYL_ROOT/scripts/changelog.sh" --tag "$1" +git add -A . +git commit -m "chore(release): $1" +git tag -a "v$1" -m "chore(release): $1"