Skip to content

Commit f5821f7

Browse files
committed
chore(lazy-table-render): update eslint
1 parent 2a29c35 commit f5821f7

File tree

9 files changed

+136
-31
lines changed

9 files changed

+136
-31
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Release lazy-table-renderer
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'packages/lazy-table-renderer/**'
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
issues: write
17+
pull-requests: write
18+
id-token: write
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '20.8.1'
29+
registry-url: 'https://registry.npmjs.org/'
30+
31+
- name: Setup pnpm
32+
uses: pnpm/action-setup@v2
33+
with:
34+
version: latest
35+
36+
- name: Install dependencies
37+
run: pnpm install
38+
39+
- name: Build
40+
run: pnpm -F @seungwoo321/lazy-table-renderer build
41+
42+
- name: Release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
run: |
48+
cd packages/lazy-table-renderer
49+
pnpm dlx semantic-release
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"branches": ["main"],
3+
"tagFormat": "@vue-pivottable/lazy-table-renderer@${version}",
4+
"plugins": [
5+
["@semantic-release/commit-analyzer", {
6+
"preset": "angular",
7+
"parserOpts": {
8+
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
9+
"headerCorrespondence": ["type", "scope", "subject"]
10+
},
11+
"releaseRules": [
12+
{"type": "feat", "scope": "lazy-table-renderer", "release": "minor"},
13+
{"type": "fix", "scope": "lazy-table-renderer", "release": "patch"},
14+
{"type": "docs", "scope": "lazy-table-renderer", "release": "patch"},
15+
{"type": "style", "scope": "lazy-table-renderer", "release": "patch"},
16+
{"type": "refactor", "scope": "lazy-table-renderer", "release": "patch"},
17+
{"type": "perf", "scope": "lazy-table-renderer", "release": "patch"},
18+
{"type": "test", "scope": "lazy-table-renderer", "release": "patch"},
19+
{"type": "build", "scope": "lazy-table-renderer", "release": "patch"},
20+
{"type": "ci", "scope": "lazy-table-renderer", "release": "patch"},
21+
{"type": "chore", "scope": "lazy-table-renderer", "release": "patch"}
22+
]
23+
}],
24+
["@semantic-release/release-notes-generator", {
25+
"preset": "angular",
26+
"parserOpts": {
27+
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
28+
"headerCorrespondence": ["type", "scope", "subject"]
29+
},
30+
"writerOpts": {
31+
"commitsSort": ["scope", "subject"]
32+
}
33+
}],
34+
["@semantic-release/changelog", {
35+
"changelogFile": "CHANGELOG.md"
36+
}],
37+
["@semantic-release/npm", {
38+
"pkgRoot": "."
39+
}],
40+
["@semantic-release/git", {
41+
"assets": ["package.json", "CHANGELOG.md"],
42+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
43+
}],
44+
["@semantic-release/github", {
45+
"successComment": "🎉 이 PR은 [${nextRelease.version}](https://github.com/vue-pivottable/vue3-pivottable/releases/tag/@vue-pivottable/lazy-table-renderer@${nextRelease.version})에 포함되었습니다.",
46+
"failTitle": "semantic-release 실패"
47+
}]
48+
]
49+
}

packages/lazy-table-renderer/CHANGELOG.md

Whitespace-only changes.

packages/lazy-table-renderer/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-pivottable/lazy-table-renderer",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"type": "module",
55
"exports": {
66
".": {
@@ -39,7 +39,10 @@
3939
"author": "Seungwoo, Lee <seungwoo321@gmail.com>",
4040
"license": "MIT",
4141
"scripts": {
42-
"build": "vite build"
42+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --scope lazy-table-renderer",
43+
"clean": "rimraf lib",
44+
"build": "pnpm clean && tsc",
45+
"lint": "eslint ."
4346
},
4447
"peerDependencies": {
4548
"vue": "^3.2.0",

packages/lazy-table-renderer/src/LazyPivottableBody.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,19 @@
9494
:style="`height: ${bottomPaddingHeight}px; position:relative`"
9595
>
9696
<slot name="lazy-loader">
97-
<div style="position: absolute; top: 0; left: 0">Loading...</div>
97+
<div style="position: absolute; top: 0; left: 0">
98+
Loading...
99+
</div>
98100
</slot>
99101
</td>
100102
</tr>
101103

102104
<VPivottableBodyRowsTotalRow
103105
v-if="colTotal"
104-
:colTotal="colTotal"
105-
:rowTotal="rowTotal"
106-
:localeStrings="localeStrings"
107-
:tableOptions="tableOptions"
106+
:col-total="colTotal"
107+
:row-total="rowTotal"
108+
:locale-strings="localeStrings"
109+
:table-options="tableOptions"
108110
/>
109111
</tbody>
110112
</template>

packages/lazy-table-renderer/src/LazyPivottableRenderer.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22
<table class="pvtTable">
33
<VPivottableHeader
4-
:rowTotal="props.showRowTotal"
5-
:localeStrings="props.localeStrings"
4+
:row-total="props.showRowTotal"
5+
:locale-strings="props.localeStrings"
66
/>
77
<IntersectionChunkPivottableBody
8-
:rowTotal="props.showRowTotal"
9-
:colTotal="props.showColTotal"
10-
:tableOptions="props.tableOptions"
11-
:chunkSize="props.chunkSize"
12-
:bufferSize="props.bufferSize"
13-
:localeStrings="props.localeStrings"
8+
:row-total="props.showRowTotal"
9+
:col-total="props.showColTotal"
10+
:table-options="props.tableOptions"
11+
:chunk-size="props.chunkSize"
12+
:buffer-size="props.bufferSize"
13+
:locale-strings="props.localeStrings"
1414
/>
1515
</table>
1616
</template>

packages/lazy-table-renderer/src/VPivottableHeader.vue

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,29 @@
99
v-if="j === 0 && rowAttrs.length !== 0"
1010
:colSpan="rowAttrs.length"
1111
:rowSpan="colAttrs.length"
12-
></th>
13-
<th class="pvtAxisLabel">{{ c }}</th>
12+
/>
13+
<th class="pvtAxisLabel">
14+
{{ c }}
15+
</th>
1416
<VPivottableHeaderColumns
15-
:colKeys="colKeys"
16-
:colIndex="j"
17-
:colAttrsLength="colAttrs.length"
18-
:rowAttrsLength="rowAttrs.length"
17+
:col-keys="colKeys"
18+
:col-index="j"
19+
:col-attrs-length="colAttrs.length"
20+
:row-attrs-length="rowAttrs.length"
1921
/>
2022
<VPivottableHeaderRowsTotal
2123
v-if="j === 0 && rowTotal"
22-
:colAttrsLength="colAttrs.length"
23-
:rowAttrsLength="rowAttrs.length"
24-
:localeStrings="localeStrings"
24+
:col-attrs-length="colAttrs.length"
25+
:row-attrs-length="rowAttrs.length"
26+
:locale-strings="localeStrings"
2527
/>
2628
</tr>
2729
<VPivottableHeaderRows
2830
v-if="rowAttrs.length !== 0"
29-
:rowAttrs="rowAttrs"
30-
:rowTotal="rowTotal"
31-
:colAttrsLength="colAttrs.length"
32-
:localeStrings="localeStrings"
31+
:row-attrs="rowAttrs"
32+
:row-total="rowTotal"
33+
:col-attrs-length="colAttrs.length"
34+
:locale-strings="localeStrings"
3335
/>
3436
</template>
3537
</thead>

packages/lazy-table-renderer/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { PivotUtilities } from 'vue-pivottable'
44

55
export default markRaw({
66
'Lazy Table': defineComponent({
7-
name: 'vue-lazy-table',
7+
name: 'VueLazyTable',
88
props: { ...PivotUtilities.defaultProps },
9-
setup(props) {
9+
setup (props) {
1010
return () =>
1111
h(LazyPivottableRenderer, {
1212
...props,

packages/lazy-table-renderer/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig(({ command, mode, ssrBuild }) => {
2727
output: {
2828
exports: 'named',
2929
globals: {
30-
'vue': 'Vue',
30+
vue: 'Vue',
3131
'vue-pivottable': 'VuePivottable'
3232
}
3333
}

0 commit comments

Comments
 (0)