-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c159fe
commit f0c3e1b
Showing
22 changed files
with
139 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# @bfehub/create-lint | ||
|
||
## 2.1.0 | ||
|
||
### Minor Changes | ||
|
||
- add vitest vue/react | ||
|
||
## 2.0.2 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const { setPkg } = require('../../utils/index') | ||
|
||
// https://github.com/vitest-dev/vitest | ||
// https://github.com/testing-library/react-testing-library | ||
module.exports = (options) => { | ||
return { | ||
pkg: [ | ||
'vitest', | ||
'@vitest/ui', | ||
'@vitest/coverage-v8', | ||
'@vitejs/plugin-react', | ||
'@testing-library/react', | ||
'happy-dom', | ||
], | ||
configFile: ['test-vitest-react/vitest.config.ts'], | ||
async afterInstall() { | ||
await setPkg(options.cwd, { | ||
scripts: { | ||
test: 'vitest', | ||
'test:ui': 'vitest --ui', | ||
'test:coverage': 'vitest run --coverage', | ||
}, | ||
}) | ||
}, | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/create-lint/template/test-vitest-react/vitest.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from '@vitejs/plugin-react' | ||
import { defineConfig } from 'vitest/config' | ||
|
||
// https://cn.vitest.dev/config/ | ||
// Can write vite.config.ts if it already exists | ||
export default defineConfig({ | ||
plugins: [React()], | ||
test: { | ||
environment: 'happy-dom', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
packages/create-lint/template/test-vitest-vue/vitest.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
import Vue from '@vitejs/plugin-vue' | ||
import VueJsx from '@vitejs/plugin-vue-jsx' | ||
import { defineConfig } from 'vitest/config' | ||
|
||
// https://cn.vitest.dev/config/ | ||
// Can write vite.config.ts if it already exists | ||
export default defineConfig({ | ||
plugins: [Vue(), VueJsx()], | ||
optimizeDeps: { | ||
disabled: true, | ||
}, | ||
plugins: [Vue()], | ||
test: { | ||
clearMocks: true, | ||
environment: 'happy-dom', | ||
transformMode: { | ||
web: [/\.[jt]sx$/], | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# @bfehub/eslint-config-basic | ||
|
||
## 2.1.0 | ||
|
||
### Minor Changes | ||
|
||
- add vitest vue/react | ||
|
||
## 2.0.2 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# @bfehub/stylelint-config-basic | ||
|
||
## 2.1.0 | ||
|
||
### Minor Changes | ||
|
||
- add vitest vue/react | ||
|
||
## 2.0.2 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.