mirror of https://github.com/abpframework/abp.git
74 changed files with 892 additions and 192 deletions
@ -0,0 +1,7 @@ |
|||
{ |
|||
"permissions": { |
|||
"allow": [ |
|||
"Bash(yarn nx g:*)" |
|||
] |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/account-core', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'account-core', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/account-core', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/account', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'account', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/account', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/components', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'components', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/components', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,26 @@ |
|||
/// <reference types='vitest' /> |
|||
import { defineConfig } from 'vite'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/core', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
// Uncomment this if you are using workers. |
|||
// worker: { |
|||
// plugins: () => [ nxViteTsPaths() ], |
|||
// }, |
|||
test: { |
|||
name: 'core', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/core', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/feature-management', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'feature-management', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/feature-management', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/generators', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'generators', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/generators', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/identity', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'identity', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/identity', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/oauth', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'oauth', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/oauth', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/permission-management', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'permission-management', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/permission-management', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/schematics', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'schematics', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/schematics', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/setting-management', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'setting-management', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/setting-management', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/tenant-management', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'tenant-management', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/tenant-management', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/theme-basic', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'theme-basic', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/theme-basic', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1,21 @@ |
|||
import { defineConfig } from 'vitest/config'; |
|||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; |
|||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'; |
|||
|
|||
export default defineConfig(() => ({ |
|||
root: __dirname, |
|||
cacheDir: '../../node_modules/.vite/packages/theme-shared', |
|||
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])], |
|||
test: { |
|||
name: 'theme-shared', |
|||
watch: false, |
|||
globals: true, |
|||
environment: 'jsdom', |
|||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], |
|||
reporters: ['default'], |
|||
coverage: { |
|||
reportsDirectory: '../../coverage/packages/theme-shared', |
|||
provider: 'v8' as const, |
|||
}, |
|||
}, |
|||
})); |
|||
@ -0,0 +1 @@ |
|||
export default ['**/vite.config.{mjs,js,ts,mts}', '**/vitest.config.{mjs,js,ts,mts}']; |
|||
Loading…
Reference in new issue