Skip to content

Commit

Permalink
#235 - Multiple updates (#236)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nandi95 authored Jul 12, 2021
1 parent 999dca0 commit 0bf7240
Show file tree
Hide file tree
Showing 79 changed files with 13,573 additions and 9,558 deletions.
44 changes: 44 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* @type {import('@commitlint/types').UserConfig}
*/
module.exports = {
extends: ['@commitlint/config-conventional'],

rules: {
'scope-enum': [
2,
'always',
[
// add scopes as required
'avatar',
'badge',
'button',
'button-group',
'button-toggle',
'checkbox',
'dropdown',
'file-input',
'file-uploader',
'input',
'loader-linear',
'loader-spinner',
'modal',
'panel',
'pill',
'radio',
'range-slider',
'select',
'table',
'textarea',
'toggle',
'transitions',
'tooltip',
'outer-html',
'click-away',
'intersect',
'deps',
'dev-deps'
]
],
}
};
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ module.exports = {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser',
sourceType: 'module',
project: 'tsconfig.dev.json',
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
extraFileExtensions: ['.vue'],
},
globals: {
__VUEISH_VERSION__: 'readonly'
},
rules: {
// https://eslint.org/docs/rules/
'no-console': isProduction ? 'error': 'warn',
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint Commit Messages
on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v3
with:
configFile: .commitlintrc.js
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
12 changes: 9 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { pathsToModuleNameMapper } from 'ts-jest/utils';
import { compilerOptions } from './tsconfig.json';
import type { Config } from '@jest/types';
import { InitialOptionsTsJest } from 'ts-jest/dist/types';

export default {
clearMocks: true,
testEnvironment: 'jsdom',
coverageDirectory: 'coverage',
coverageProvider: 'v8',
rootDir: './',
Expand All @@ -19,5 +20,10 @@ export default {
'^.+\\.vue$': 'vue-jest',
'^.+\\ts$': 'ts-jest'
},
testMatch: ['**/src/**/*.test.ts']
} as Config.InitialOptions;
testMatch: ['<rootDir>/src/**/*.test.ts'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.node.json'
}
}
} as InitialOptionsTsJest;
Loading

0 comments on commit 0bf7240

Please sign in to comment.