@ribbon-studios/ribbon 1.1.0 → 1.1.2
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/.forgejo/workflows/ci.yml +80 -0
- package/.nvmrc +1 -1
- package/.releaserc.yml +6 -0
- package/README.md +7 -10
- package/bun.lock +1839 -0
- package/dist/index.cjs +8 -8
- package/dist/index.css +1 -1
- package/dist/index.js +602 -583
- package/eslint.config.ts +2 -1
- package/package.json +13 -4
- package/src/Ribbon.module.css +1 -0
- package/vite.config.ts +4 -3
- package/.codeclimate.yml +0 -3
- package/.gitattributes +0 -0
- package/.github/workflows/ci.yml +0 -104
- package/.vscode/settings.json +0 -24
- package/bun.lockb +0 -0
- package/flake.lock +0 -27
- package/flake.nix +0 -15
- package/nixpkgs.nix +0 -8
- package/shell.nix +0 -16
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: Deploy
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
name: Lint
|
|
14
|
+
runs-on: docker
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v6
|
|
17
|
+
- uses: oven-sh/setup-bun@v2
|
|
18
|
+
|
|
19
|
+
- run: bun ci
|
|
20
|
+
- run: bun lint
|
|
21
|
+
|
|
22
|
+
test:
|
|
23
|
+
name: Test
|
|
24
|
+
runs-on: docker
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v6
|
|
27
|
+
- uses: oven-sh/setup-bun@v2
|
|
28
|
+
|
|
29
|
+
- run: bun ci
|
|
30
|
+
- run: bun test:coverage
|
|
31
|
+
- run: bun badges
|
|
32
|
+
|
|
33
|
+
- uses: actions/git-pages@v2
|
|
34
|
+
with:
|
|
35
|
+
site: https://${{ forge.repository_owner }}.codeberg.page/${{ forge.event.repository.name }}/
|
|
36
|
+
token: ${{ forgejo.token }}
|
|
37
|
+
source: coverage/
|
|
38
|
+
|
|
39
|
+
build:
|
|
40
|
+
name: Build
|
|
41
|
+
runs-on: docker
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v6
|
|
44
|
+
- uses: oven-sh/setup-bun@v2
|
|
45
|
+
|
|
46
|
+
- run: bun ci
|
|
47
|
+
- run: bun run build
|
|
48
|
+
|
|
49
|
+
- uses: actions/upload-artifact@v3
|
|
50
|
+
with:
|
|
51
|
+
name: build
|
|
52
|
+
path: dist
|
|
53
|
+
|
|
54
|
+
deploy:
|
|
55
|
+
name: Deploy
|
|
56
|
+
runs-on: docker
|
|
57
|
+
needs: [lint, test, build]
|
|
58
|
+
concurrency:
|
|
59
|
+
group: deploy
|
|
60
|
+
cancel-in-progress: false
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/checkout@v6
|
|
63
|
+
with:
|
|
64
|
+
# Necessary for Semantic Release to work
|
|
65
|
+
fetch-depth: 0
|
|
66
|
+
|
|
67
|
+
- uses: oven-sh/setup-bun@v2
|
|
68
|
+
|
|
69
|
+
- run: bun ci
|
|
70
|
+
|
|
71
|
+
- uses: actions/download-artifact@v3
|
|
72
|
+
with:
|
|
73
|
+
name: build
|
|
74
|
+
path: dist
|
|
75
|
+
|
|
76
|
+
- run: bun x semantic-release
|
|
77
|
+
env:
|
|
78
|
+
FORGEJO_URL: ${{ forgejo.server_url }}
|
|
79
|
+
FORGEJO_TOKEN: ${{ forgejo.token }}
|
|
80
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
22
|
package/.releaserc.yml
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
[![NPM Version][npm-version-image]][npm-url]
|
|
2
2
|
[![NPM Downloads][npm-downloads-image]][npm-url]
|
|
3
|
-
[![
|
|
3
|
+
[![Coverage][coverage-image]][coverage-url]
|
|
4
4
|
|
|
5
|
-
[![CI Build][
|
|
6
|
-
[![Maintainability][maintainability-image]][maintainability-url]
|
|
5
|
+
[![CI Build][build-image]][build-url]
|
|
7
6
|
[![Semantic Release][semantic-release-image]][semantic-release-url]
|
|
8
7
|
[![Code Style: Prettier][code-style-image]][code-style-url]
|
|
9
8
|
|
|
10
|
-
#
|
|
9
|
+
# Ribbon
|
|
11
10
|
|
|
12
11
|
### Preview
|
|
13
12
|
|
|
@@ -42,13 +41,11 @@ export function MyApp() {
|
|
|
42
41
|
[npm-version-image]: https://img.shields.io/npm/v/@ribbon-studios/ribbon.svg
|
|
43
42
|
[npm-downloads-image]: https://img.shields.io/npm/dm/@ribbon-studios/ribbon.svg
|
|
44
43
|
[npm-url]: https://npmjs.org/package/@ribbon-studios/ribbon
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
44
|
+
[build-image]: https://codeberg.org/ribbon-studios/ribbon/badges/workflows/ci.yml/badge.svg?branch=main
|
|
45
|
+
[build-url]: https://codeberg.org/ribbon-studios/ribbon/actions?workflow=ci.yml&branch=main
|
|
46
|
+
[coverage-image]: https://ribbon-studios.codeberg.page/ribbon/badge.svg
|
|
47
|
+
[coverage-url]: https://ribbon-studios.codeberg.page/ribbon
|
|
49
48
|
[code-style-image]: https://img.shields.io/badge/code%20style-prettier-ff69b4.svg
|
|
50
49
|
[code-style-url]: https://prettier.io
|
|
51
|
-
[maintainability-image]: https://img.shields.io/codeclimate/maintainability/ribbon-studios/ribbon
|
|
52
|
-
[maintainability-url]: https://codeclimate.com/github/ribbon-studios/ribbon/maintainability
|
|
53
50
|
[semantic-release-url]: https://github.com/semantic-release/semantic-release
|
|
54
51
|
[semantic-release-image]: https://img.shields.io/badge/%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079
|