Skip to content

Commit 0bf7240

Browse files
authored
#235 - Multiple updates (#236)
Feature: - added clearable default setting - added state handling to UIFile - added UIFileInput component - added input types to UIInput and moved some attributes to props for clarity - added library version constant Fix: - fixed button focus - improved fade transition customisability - styling improvements - added missing transition to input Refactor: - use library as plugin in demo board - removed autofocus - renamed icon - config changes - removed unnecessary css classes - moved shim files
1 parent 999dca0 commit 0bf7240

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+13573
-9558
lines changed

.commitlintrc.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* @type {import('@commitlint/types').UserConfig}
3+
*/
4+
module.exports = {
5+
extends: ['@commitlint/config-conventional'],
6+
7+
rules: {
8+
'scope-enum': [
9+
2,
10+
'always',
11+
[
12+
// add scopes as required
13+
'avatar',
14+
'badge',
15+
'button',
16+
'button-group',
17+
'button-toggle',
18+
'checkbox',
19+
'dropdown',
20+
'file-input',
21+
'file-uploader',
22+
'input',
23+
'loader-linear',
24+
'loader-spinner',
25+
'modal',
26+
'panel',
27+
'pill',
28+
'radio',
29+
'range-slider',
30+
'select',
31+
'table',
32+
'textarea',
33+
'toggle',
34+
'transitions',
35+
'tooltip',
36+
'outer-html',
37+
'click-away',
38+
'intersect',
39+
'deps',
40+
'dev-deps'
41+
]
42+
],
43+
}
44+
};

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ module.exports = {
2727
ecmaVersion: 2020,
2828
parser: '@typescript-eslint/parser',
2929
sourceType: 'module',
30-
project: 'tsconfig.dev.json',
30+
project: './tsconfig.eslint.json',
3131
tsconfigRootDir: __dirname,
3232
extraFileExtensions: ['.vue'],
3333
},
34+
globals: {
35+
__VUEISH_VERSION__: 'readonly'
36+
},
3437
rules: {
3538
// https://eslint.org/docs/rules/
3639
'no-console': isProduction ? 'error': 'warn',

.github/workflows/commitlint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint Commit Messages
2+
on: [pull_request]
3+
4+
jobs:
5+
commitlint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
with:
10+
fetch-depth: 0
11+
- uses: wagoid/commitlint-github-action@v3
12+
with:
13+
configFile: .commitlintrc.js

.husky/.gitignore

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

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

jest.config.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { pathsToModuleNameMapper } from 'ts-jest/utils';
22
import { compilerOptions } from './tsconfig.json';
3-
import type { Config } from '@jest/types';
3+
import { InitialOptionsTsJest } from 'ts-jest/dist/types';
44

55
export default {
66
clearMocks: true,
7+
testEnvironment: 'jsdom',
78
coverageDirectory: 'coverage',
89
coverageProvider: 'v8',
910
rootDir: './',
@@ -19,5 +20,10 @@ export default {
1920
'^.+\\.vue$': 'vue-jest',
2021
'^.+\\ts$': 'ts-jest'
2122
},
22-
testMatch: ['**/src/**/*.test.ts']
23-
} as Config.InitialOptions;
23+
testMatch: ['<rootDir>/src/**/*.test.ts'],
24+
globals: {
25+
'ts-jest': {
26+
tsconfig: 'tsconfig.node.json'
27+
}
28+
}
29+
} as InitialOptionsTsJest;

0 commit comments

Comments
 (0)