Skip to content

Commit c8f9372

Browse files
committed
deps: updated template
1 parent c6b84ea commit c8f9372

File tree

11 files changed

+58
-57
lines changed

11 files changed

+58
-57
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66

77
on:
88
push:
9-
branches: [ master ]
9+
branches: [ master , build, experimental ]
1010
repository_dispatch:
1111
types: [ build ]
1212

@@ -21,25 +21,24 @@ jobs:
2121
steps:
2222

2323
# region Setup
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525

26-
- name: Setting Up Node.js (${{ matrix.node-version }})
27-
uses: actions/setup-node@v3
26+
- uses: actions/setup-node@v4
27+
name: Setting Up Node.js (${{ matrix.node-version }})
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

31-
- uses: pnpm/action-setup@v2.0.1
31+
- uses: pnpm/action-setup@v4
3232
name: Install pnpm
3333
id: pnpm-install
3434
with:
3535
version: latest
3636

3737
- name: Get Pnpm Cache Path
3838
id: pnpm-cache
39-
run: |
40-
echo "::set-output name=dir::$(pnpm store path)"
39+
run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT
4140

42-
- uses: actions/cache@v3
41+
- uses: actions/cache@v4
4342
name: pnpm cache
4443
with:
4544
path: ${{ steps.pnpm-cache.outputs.dir }}
@@ -50,14 +49,15 @@ jobs:
5049
- run: "echo Cache Key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"
5150
- run: "echo Cache Restore-Keys: ${{ runner.os }}-pnpm-store-"
5251
- run: "echo Pnpm Cache Hit: ${{ steps.pnpm-cache.outputs.cache-hit }}"
53-
# regionend
5452

55-
# region Steps
5653
- run: pnpm install --frozen-lockfile
5754
if: "env.USE_LOCKFILE == 'true'"
5855

5956
- run: pnpm install --no-lockfile
6057
if: "env.USE_LOCKFILE != 'true'"
58+
# regionend
59+
60+
# region Steps
6161

6262
- run: pnpm build
6363

.github/workflows/docs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ jobs:
2121
steps:
2222

2323
# region Setup
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525

26-
- name: Setting Up Node.js (${{ matrix.node-version }})
27-
uses: actions/setup-node@v3
26+
- uses: actions/setup-node@v4
27+
name: Setting Up Node.js (${{ matrix.node-version }})
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

31-
- uses: pnpm/action-setup@v2.0.1
31+
- uses: pnpm/action-setup@v4
3232
name: Install pnpm
3333
id: pnpm-install
3434
with:
35-
version: latest
35+
version: latest
3636

3737
- name: Get Pnpm Cache Path
3838
id: pnpm-cache
39-
run: |
40-
echo "::set-output name=dir::$(pnpm store path)"
39+
run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT
4140

42-
- uses: actions/cache@v3
41+
- uses: actions/cache@v4
4342
name: pnpm cache
4443
with:
4544
path: ${{ steps.pnpm-cache.outputs.dir }}
@@ -50,14 +49,15 @@ jobs:
5049
- run: "echo Cache Key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"
5150
- run: "echo Cache Restore-Keys: ${{ runner.os }}-pnpm-store-"
5251
- run: "echo Pnpm Cache Hit: ${{ steps.pnpm-cache.outputs.cache-hit }}"
53-
# regionend
5452

5553
- run: pnpm install --frozen-lockfile
5654
if: "env.USE_LOCKFILE == 'true'"
5755

5856
- run: pnpm install --no-lockfile
5957
if: "env.USE_LOCKFILE != 'true'"
58+
# regionend
6059

60+
# region Steps
6161
- run: pnpm build
6262

6363
- run: pnpm lint
@@ -68,7 +68,7 @@ jobs:
6868

6969
- name: Documentation
7070
if: "env.ENABLE_DOCS == 'true'"
71-
uses: crazy-max/ghaction-github-pages@v2
71+
uses: crazy-max/ghaction-github-pages@v4
7272
with:
7373
jekyll: false
7474
target_branch: gh-pages

.github/workflows/pull-request.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,24 @@ jobs:
1818
steps:
1919

2020
# region Setup
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222

23-
- name: Setting Up Node.js (${{ matrix.node-version }})
24-
uses: actions/setup-node@v3
23+
- uses: actions/setup-node@v4
24+
name: Setting Up Node.js (${{ matrix.node-version }})
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727

28-
- uses: pnpm/action-setup@v2.0.1
28+
- uses: pnpm/action-setup@v4
2929
name: Install pnpm
3030
id: pnpm-install
3131
with:
3232
version: latest
3333

3434
- name: Get Pnpm Cache Path
3535
id: pnpm-cache
36-
run: |
37-
echo "::set-output name=dir::$(pnpm store path)"
36+
run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT
3837

39-
- uses: actions/cache@v3
38+
- uses: actions/cache@v4
4039
name: pnpm cache
4140
with:
4241
path: ${{ steps.pnpm-cache.outputs.dir }}
@@ -47,14 +46,15 @@ jobs:
4746
- run: "echo Cache Key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"
4847
- run: "echo Cache Restore-Keys: ${{ runner.os }}-pnpm-store-"
4948
- run: "echo Pnpm Cache Hit: ${{ steps.pnpm-cache.outputs.cache-hit }}"
50-
# regionend
5149

52-
# region Steps
5350
- run: pnpm install --frozen-lockfile
5451
if: "env.USE_LOCKFILE == 'true'"
5552

5653
- run: pnpm install --no-lockfile
5754
if: "env.USE_LOCKFILE != 'true'"
55+
# regionend
56+
57+
# region Steps
5858

5959
- name: Commits to Lint
6060
run: git log ${{github.event.pull_request.base.sha}}..${{github.event.pull_request.head.sha}} --graph --abbrev-commit --decorate --format=format:'%h%d%n%s (%cr) - %an (%ae)%n%b'
@@ -69,7 +69,5 @@ jobs:
6969
- run: pnpm coverage
7070

7171
- name: Coverage
72-
uses: romeovs/lcov-reporter-action@v0.2.16
73-
with:
74-
github-token: ${{ secrets.GITHUB_TOKEN }}
72+
uses: romeovs/lcov-reporter-action@v0.3.1
7573
# regionend

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ jobs:
2121
steps:
2222

2323
# region Setup
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525

26-
- name: Setting Up Node.js (${{ matrix.node-version }})
27-
uses: actions/setup-node@v3
26+
- uses: actions/setup-node@v4
27+
name: Setting Up Node.js (${{ matrix.node-version }})
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

31-
- uses: pnpm/action-setup@v2.0.1
31+
- uses: pnpm/action-setup@v4
3232
name: Install pnpm
3333
id: pnpm-install
3434
with:
3535
version: latest
3636

3737
- name: Get Pnpm Cache Path
3838
id: pnpm-cache
39-
run: |
40-
echo "::set-output name=dir::$(pnpm store path)"
39+
run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT
4140

42-
- uses: actions/cache@v3
41+
- uses: actions/cache@v4
4342
name: pnpm cache
4443
with:
4544
path: ${{ steps.pnpm-cache.outputs.dir }}
@@ -50,15 +49,15 @@ jobs:
5049
- run: "echo Cache Key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"
5150
- run: "echo Cache Restore-Keys: ${{ runner.os }}-pnpm-store-"
5251
- run: "echo Pnpm Cache Hit: ${{ steps.pnpm-cache.outputs.cache-hit }}"
53-
# regionend
5452

55-
# region Steps
5653
- run: pnpm install --frozen-lockfile
5754
if: "env.USE_LOCKFILE == 'true'"
5855

59-
- run: pnpm install
56+
- run: pnpm install --no-lockfile
6057
if: "env.USE_LOCKFILE != 'true'"
58+
# regionend
6159

60+
# region Steps
6261
- run: pnpm build
6362

6463
- run: pnpm lint
@@ -79,6 +78,7 @@ jobs:
7978
run: npx semantic-release --dry-run
8079
if: "env.ENABLE_RELEASE != 'true'"
8180

81+
8282
- run: echo "env.ENABLE_RELEASE is ${{ env.ENABLE_RELEASE }}, no release can be published" && exit 1
8383
if: "env.ENABLE_RELEASE != 'true'"
8484
# regionend

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ node_modules
55
worktree*/**/*
66
docs
77
coverage
8-
dist
98

109
src/assets/variables.scss
1110
**/*.wip.*
1211
test.css
12+
dist
1313
!flake.lock
1414
.direnv

.husky/pre-push

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33

44
echo "Running pre-push hook"
55

6-
# todo
7-
# npm run lint:commits
6+
npm run lint:commits

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
### 🚧 WORK IN PROGRESS 🚧
2-
![Docs](https://github.com/alanscodelog/vue-components/workflows/Docs/badge.svg)
3-
![Build](https://github.com/alanscodelog/vue-components/workflows/Build/badge.svg)
4-
[![Release](https://github.com/alanscodelog/vue-components/workflows/Release/badge.svg)](https://www.npmjs.com/package/@alanscodelog/vue-components)
2+
[![Docs](https://github.com/alanscodelog/vue-components/workflows/Docs/badge.svg)](https://github.com/alanscodelog/vue-components/actions/workflows/docs.yml)
3+
[![Build](https://github.com/alanscodelog/vue-components/actions/workflows/build.yml/badge.svg)](https://github.com/alanscodelog/vue-components/actions/workflows/build.yml)
4+
[![Release](https://github.com/alanscodelog/vue-components/actions/workflows/release.yml/badge.svg)](https://github.com/alanscodelog/vue-components/actions/workflows/release.yml)
5+
[![NPM Version (with latest tag)](https://img.shields.io/npm/v/%40alanscodelog%2Fvue-components/latest)](https://www.npmjs.com/package/@alanscodelog/vue-components/v/latest)
6+
[![NPM Version (with beta tag)](https://img.shields.io/npm/v/%40alanscodelog%2Fvue-components/beta)](https://www.npmjs.com/package/@alanscodelog/vue-components/v/beta)
57

68
Custom vue component library.
79

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"doc:dev": "pnpm run storybook",
7777
"lint:eslint": "eslint \"{src,tests}/**/*.{js,ts,vue,cjs}\" \"*.{js,ts}\" --max-warnings=0 --report-unused-disable-directives",
7878
"lint:types": "vue-tsc --noEmit --pretty --project tsconfig.types.json",
79-
"lint:commits": "commitlint --from $(git rev-list HEAD --not --remotes | tail -1)^ --to HEAD --verbose",
79+
"lint:commits": "commitlint --from $(git rev-list --max-parents=0 HEAD) --to HEAD --verbose",
8080
"lint:imports": "madge --circular --extensions ts ./src",
8181
"lint": "npm run lint:types && npm run lint:eslint && npm run lint:imports",
8282
"prepare": "husky install && npm run build",
@@ -193,7 +193,7 @@
193193
]
194194
},
195195
"engines": {
196-
"node": ">=20"
196+
"node": ">=20.0.0"
197197
},
198198
"@comments": {
199199
"scripts": {

tsconfig.eslint.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
{ // i give up, idk why eslint thinks vue files are not included in the regular tsconfig
1+
{
2+
// Here partly because eslint tends to think vue files aren't included even when they explicitly are
3+
// also here because I want to lint configs as well, but including them in the regular tsconfig can cause problems
24
"extends": "./tsconfig.json",
35
"compilerOptions": {
46
"outDir": "dist",
5-
"baseUrl": "."
67
},
78
"include": [
89
"**/*",

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
// https://www.typescriptlang.org/tsconfig/
12
{
3+
// ./node_modules/@alanscodelog/tsconfigs/tsconfig.json
4+
// https://github.com/AlansCodeLog/tsconfigs
25
"extends": "@alanscodelog/tsconfigs",
36
"compilerOptions": {
47
"module": "ESNext",
@@ -13,7 +16,6 @@
1316
"dom.iterable"
1417
],
1518
"importsNotUsedAsValues": "remove", // todo - workaround for https://github.com/microsoft/TypeScript/issues/53302 - must remove from main config package
16-
// "verbatimModuleSyntax": true,
1719
"moduleResolution": "bundler", //https://github.com/vuejs/language-tools/issues/1542 ?
1820
// see https://github.com/qmhc/vite-plugin-dts#type-errors-that-are-unable-to-infer-types-from-packages-in-node_modules
1921
// awaiting https://github.com/microsoft/TypeScript/issues/42873

0 commit comments

Comments
 (0)