Skip to content

Commit 1f34da4

Browse files
alexsemancristinecula
authored andcommitted
feat: convert to TypeScript
- update deps - add Storybook - update ESLint config - add "npm run prettier" - have a single top-level suite for the tests
1 parent 155175e commit 1f34da4

26 files changed

+14621
-10390
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/problem-matcher.json

Lines changed: 40 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
11
{
2-
"problemMatcher": [{
3-
"owner": "karma-eval",
4-
"pattern": [{
5-
"regexp": "^\\w+\\s\\d+\\.\\d+\\.\\d+\\s\\(\\w+\\s\\d+\\.\\d+\\.\\d+\\)\\sERROR$"
6-
}, {
7-
"regexp": "^\\s{2}(.*)$",
8-
"message": 1
9-
}, {
10-
"regexp": "^\\s{2}at\\s([^:]*):(\\d+):(\\d+)$",
11-
"file": 1,
12-
"line": 2,
13-
"column": 3
14-
}]
15-
}, {
16-
"owner": "karma-test-error",
17-
"pattern": [{
18-
"regexp": "^\\w+\\s\\d+\\.\\d+\\.\\d+\\s\\(\\w+\\s\\d+\\.\\d+\\.\\d+\\)\\s(.*)FAILED$",
19-
"code": 1
20-
}, {
21-
"regexp": "^\\t(.*)$",
22-
"message": 1
23-
}, {
24-
"regexp": "^\\t {4}at\\s[^\\s]*\\s\\(([^:]*):(\\d+):(\\d+)\\)$",
25-
"file": 1,
26-
"line": 2,
27-
"column": 3
28-
}]
29-
}]
30-
}
2+
"problemMatcher": [
3+
{
4+
"owner": "karma-eval",
5+
"pattern": [
6+
{
7+
"regexp": "^\\w+\\s\\d+\\.\\d+\\.\\d+\\s\\(\\w+\\s\\d+\\.\\d+\\.\\d+\\)\\sERROR$"
8+
},
9+
{
10+
"regexp": "^\\s{2}(.*)$",
11+
"message": 1
12+
},
13+
{
14+
"regexp": "^\\s{2}at\\s([^:]*):(\\d+):(\\d+)$",
15+
"file": 1,
16+
"line": 2,
17+
"column": 3
18+
}
19+
]
20+
},
21+
{
22+
"owner": "karma-test-error",
23+
"pattern": [
24+
{
25+
"regexp": "^\\w+\\s\\d+\\.\\d+\\.\\d+\\s\\(\\w+\\s\\d+\\.\\d+\\.\\d+\\)\\s(.*)FAILED$",
26+
"code": 1
27+
},
28+
{
29+
"regexp": "^\\t(.*)$",
30+
"message": 1
31+
},
32+
{
33+
"regexp": "^\\t {4}at\\s[^\\s]*\\s\\(([^:]*):(\\d+):(\\d+)\\)$",
34+
"file": 1,
35+
"line": 2,
36+
"column": 3
37+
}
38+
]
39+
}
40+
]
41+
}

.github/workflows/storybook.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Storybook
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
storybook:
9+
uses: Neovici/cfg/.github/workflows/story.yml@master
10+
secrets: inherit

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
node_modules/
22
coverage/
3+
.idea/
4+
.vscode/
5+
dist/
36
debug.log
47
yarn-error.log
58
.DS_Store

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"@neovici/cfg/prettier"
1+
"@neovici/cfg/prettier/index.mjs"

.storybook/main.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import type { StorybookConfig } from '@storybook/web-components-vite';
2+
3+
const config: StorybookConfig = {
4+
stories: [
5+
'../stories/**/*.mdx',
6+
'../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
7+
],
8+
addons: [
9+
'@storybook/addon-links',
10+
'@storybook/addon-essentials',
11+
'storybook-dark-mode',
12+
],
13+
framework: {
14+
name: '@storybook/web-components-vite',
15+
options: {},
16+
},
17+
docs: {
18+
autodocs: 'tag',
19+
},
20+
};
21+
22+
export default config;

.storybook/preview.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { Preview } from '@storybook/web-components';
2+
3+
const preview: Preview = {
4+
parameters: {
5+
actions: { argTypesRegex: '^on[A-Z].*' },
6+
controls: {
7+
matchers: {
8+
color: /(background|color)$/iu,
9+
date: /Date$/iu,
10+
},
11+
},
12+
},
13+
};
14+
15+
export default preview;

.vscode/settings.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,55 @@
11
# [6.0.0](https://github.com/Neovici/cosmoz-treenode/compare/v5.1.0...v6.0.0) (2024-01-11)
22

3-
43
### Features
54

6-
* update to pion ([ebe2e48](https://github.com/Neovici/cosmoz-treenode/commit/ebe2e48745b91f610367e7c7c9b37b30f28721aa))
7-
5+
- update to pion ([ebe2e48](https://github.com/Neovici/cosmoz-treenode/commit/ebe2e48745b91f610367e7c7c9b37b30f28721aa))
86

97
### BREAKING CHANGES
108

11-
* Update to @pionjs/pion
9+
- Update to @pionjs/pion
1210

1311
# [5.1.0](https://github.com/neovici/cosmoz-treenode/compare/v5.0.1...v5.1.0) (2022-10-27)
1412

15-
1613
### Features
1714

18-
* add fallback ([3165705](https://github.com/neovici/cosmoz-treenode/commit/3165705f53a3f1aa8a9b6d6fab4ce708efd6fdd9))
15+
- add fallback ([3165705](https://github.com/neovici/cosmoz-treenode/commit/3165705f53a3f1aa8a9b6d6fab4ce708efd6fdd9))
1916

2017
## [5.0.1](https://github.com/neovici/cosmoz-treenode/compare/v5.0.0...v5.0.1) (2022-07-10)
2118

22-
2319
### Bug Fixes
2420

25-
* **treenode:** show full path as title ([fb6ef98](https://github.com/neovici/cosmoz-treenode/commit/fb6ef98fd4f15876bfdee088129b99f2afc5bfbc))
21+
- **treenode:** show full path as title ([fb6ef98](https://github.com/neovici/cosmoz-treenode/commit/fb6ef98fd4f15876bfdee088129b99f2afc5bfbc))
2622

2723
# [5.0.0](https://github.com/neovici/cosmoz-treenode/compare/v4.2.0...v5.0.0) (2022-06-16)
2824

29-
3025
### Features
3126

32-
* replace computing-lit-element with haunted ([3d65d9a](https://github.com/neovici/cosmoz-treenode/commit/3d65d9ac2bb39ef9cbf9903b096fe6c92aef32e7))
33-
27+
- replace computing-lit-element with haunted ([3d65d9a](https://github.com/neovici/cosmoz-treenode/commit/3d65d9ac2bb39ef9cbf9903b096fe6c92aef32e7))
3428

3529
### BREAKING CHANGES
3630

37-
* Replaces computing-lit-element with haunted
31+
- Replaces computing-lit-element with haunted
3832

3933
# [4.2.0](https://github.com/neovici/cosmoz-treenode/compare/v4.1.2...v4.2.0) (2021-12-14)
4034

41-
4235
### Bug Fixes
4336

44-
* typo ([64fd7b6](https://github.com/neovici/cosmoz-treenode/commit/64fd7b6a5717a07387534bfc96b32c9fedc0a4a4))
45-
37+
- typo ([64fd7b6](https://github.com/neovici/cosmoz-treenode/commit/64fd7b6a5717a07387534bfc96b32c9fedc0a4a4))
4638

4739
### Features
4840

49-
* **ci:** upgrade repo ([36feaeb](https://github.com/neovici/cosmoz-treenode/commit/36feaeb11d8119586e2ad9980e2e9ca2530993f1))
50-
* **no-wrap:** show ellipsis on left side ([538dc9c](https://github.com/neovici/cosmoz-treenode/commit/538dc9c1b830b8ac305bad6da2628524a4b22c23))
41+
- **ci:** upgrade repo ([36feaeb](https://github.com/neovici/cosmoz-treenode/commit/36feaeb11d8119586e2ad9980e2e9ca2530993f1))
42+
- **no-wrap:** show ellipsis on left side ([538dc9c](https://github.com/neovici/cosmoz-treenode/commit/538dc9c1b830b8ac305bad6da2628524a4b22c23))
5143

5244
## [4.1.2](https://github.com/neovici/cosmoz-treenode/compare/v4.1.1...v4.1.2) (2020-03-02)
5345

54-
5546
### Bug Fixes
5647

57-
* drop polymer ([4f3485f](https://github.com/neovici/cosmoz-treenode/commit/4f3485f137941ddd093500d38501df5b0779b2ca))
58-
* linting ([a1c8cc8](https://github.com/neovici/cosmoz-treenode/commit/a1c8cc8882e81c305a2df5a706fb3d983fdc1d23))
48+
- drop polymer ([4f3485f](https://github.com/neovici/cosmoz-treenode/commit/4f3485f137941ddd093500d38501df5b0779b2ca))
49+
- linting ([a1c8cc8](https://github.com/neovici/cosmoz-treenode/commit/a1c8cc8882e81c305a2df5a706fb3d983fdc1d23))
5950

6051
## [4.1.1](https://github.com/neovici/cosmoz-treenode/compare/v4.1.0...v4.1.1) (2019-10-09)
6152

62-
6353
### Bug Fixes
6454

65-
* **ci:** adopt semantic release ([8a75efb](https://github.com/neovici/cosmoz-treenode/commit/8a75efb07e692b0b7915f7b956650605f44bcecd))
55+
- **ci:** adopt semantic release ([8a75efb](https://github.com/neovici/cosmoz-treenode/commit/8a75efb07e692b0b7915f7b956650605f44bcecd))

0 commit comments

Comments
 (0)