Skip to content

Commit

Permalink
feat: vite migration
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhadip committed Nov 4, 2023
1 parent 72148c5 commit 0b3541a
Show file tree
Hide file tree
Showing 37 changed files with 16,823 additions and 18,876 deletions.
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/components/datepicker/locale/index.ts":"1","/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/components/datepicker/utils/DateUtils.ts":"2","/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/components/prismcomponent/index.ts":"3","/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/directives/click-outside.ts":"4","/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/global.d.ts":"5","/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/main.ts":"6","/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/shims-vue.d.ts":"7","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/datepicker/utils/DateUtils.ts":"8","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/components/prismcomponent/index.ts":"9","/Users/shubhadipmaity/projects/vuejs3-datepicker/src/vite-env.d.ts":"10","/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.lib.ts":"11","/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.project.ts":"12"},{"size":12652,"mtime":1699092401918,"results":"13","hashOfConfig":"14"},{"size":6970,"mtime":1699092401919,"results":"15","hashOfConfig":"14"},{"size":1179,"mtime":1699092401923,"results":"16","hashOfConfig":"14"},{"size":2069,"mtime":1699092401924,"results":"17","hashOfConfig":"14"},{"size":59,"mtime":1699092401924,"results":"18","hashOfConfig":"14"},{"size":210,"mtime":1699092401924,"results":"19","hashOfConfig":"14"},{"size":151,"mtime":1699092401924,"results":"20","hashOfConfig":"14"},{"size":6955,"mtime":1699092401932},{"size":1192,"mtime":1699092401934},{"size":197,"mtime":1699092401934},{"size":833,"mtime":1699092401935,"results":"21","hashOfConfig":"14"},{"size":373,"mtime":1699092401935,"results":"22","hashOfConfig":"14"},{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"ofe5ac",{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"29","messages":"30","suppressedMessages":"31","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"32","messages":"33","suppressedMessages":"34","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"35","messages":"36","suppressedMessages":"37","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"38","messages":"39","suppressedMessages":"40","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"41","messages":"42","suppressedMessages":"43","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"44","messages":"45","suppressedMessages":"46","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"47","messages":"48","suppressedMessages":"49","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/components/datepicker/locale/index.ts",["50"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/components/datepicker/utils/DateUtils.ts",["51"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/components/prismcomponent/index.ts",["52"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/directives/click-outside.ts",["53"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/global.d.ts",["54"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/main.ts",["55"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/backup-src/shims-vue.d.ts",["56"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.lib.ts",["57"],[],"/Users/shubhadipmaity/projects/vuejs3-datepicker/vite.config.project.ts",["58"],[],{"ruleId":null,"fatal":true,"severity":2,"message":"59","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"60","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"61","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"62","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"63","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"64","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"65","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"66","nodeType":null},{"ruleId":null,"fatal":true,"severity":2,"message":"67","nodeType":null},"Parsing error: ESLint was configured to run on `<tsconfigRootDir>/backup-src/components/datepicker/locale/index.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/backup-src/components/datepicker/utils/DateUtils.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/backup-src/components/prismcomponent/index.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/backup-src/directives/click-outside.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/backup-src/global.d.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/backup-src/main.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/backup-src/shims-vue.d.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/vite.config.lib.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file","Parsing error: ESLint was configured to run on `<tsconfigRootDir>/vite.config.project.ts` using `parserOptions.project`: /users/shubhadipmaity/projects/vuejs3-datepicker/tsconfig.json\nHowever, that TSConfig does not include this file. Either:\n- Change ESLint's list of included files to not include this file\n- Change that TSConfig to include this file\n- Create a new TSConfig that includes this file and include it in your parserOptions.project\nSee the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file"]
6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ test/
dist/*.hot-update.json
dist/index.html
dist/webpack-stats.json
tests/
tests/
vite.config.lib.ts
vite.config.project.ts
postcss.config.cjs
*.d.ts
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
'@vue/airbnb',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
// '@vue/prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2020,
Expand Down
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 -- commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run precommit
112 changes: 0 additions & 112 deletions build/rollup-dev.config.js

This file was deleted.

Loading

0 comments on commit 0b3541a

Please sign in to comment.