@icebreakers/monorepo 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/package.json +3 -3
- package/assets/turbo.json +1 -1
- package/assets/vitest.config.ts +3 -0
- package/dist/{chunk-VOROHSAI.js → chunk-L7MRLUKD.js} +85 -61
- package/dist/cli.cjs +131 -83
- package/dist/cli.js +29 -5
- package/dist/index.cjs +85 -61
- package/dist/index.js +1 -1
- package/package.json +3 -1
- package/templates/{bar → tsup-template}/package.json +3 -3
- package/templates/{foo → unbuild-template}/package.json +3 -3
- package/templates/vue-lib-template/eslint.config.js +9 -0
- package/templates/vue-lib-template/index.html +13 -0
- package/templates/vue-lib-template/lib/HelloWorld.vue +19 -0
- package/templates/vue-lib-template/lib/index.ts +3 -0
- package/templates/vue-lib-template/package.json +57 -0
- package/templates/vue-lib-template/src/App.vue +9 -0
- package/templates/vue-lib-template/src/main.ts +5 -0
- package/templates/vue-lib-template/src/style.css +0 -0
- package/templates/vue-lib-template/src/vite-env.d.ts +1 -0
- package/templates/vue-lib-template/test/index.test.ts +13 -0
- package/templates/vue-lib-template/tsconfig.app.json +29 -0
- package/templates/vue-lib-template/tsconfig.json +14 -0
- package/templates/vue-lib-template/tsconfig.node.json +25 -0
- package/templates/vue-lib-template/tsconfig.test.json +40 -0
- package/templates/vue-lib-template/vite.config.ts +36 -0
- package/templates/vue-lib-template/vite.shared.config.ts +16 -0
- package/templates/vue-lib-template/vitest.config.ts +10 -0
- /package/templates/{bar → tsup-template}/src/index.ts +0 -0
- /package/templates/{bar → tsup-template}/test/index.test.ts +0 -0
- /package/templates/{bar → tsup-template}/tsconfig.json +0 -0
- /package/templates/{bar → tsup-template}/tsup.config.ts +0 -0
- /package/templates/{bar → tsup-template}/vitest.config.ts +0 -0
- /package/templates/{foo → unbuild-template}/build.config.ts +0 -0
- /package/templates/{foo → unbuild-template}/src/index.ts +0 -0
- /package/templates/{foo → unbuild-template}/src/utils.ts +0 -0
- /package/templates/{foo → unbuild-template}/test/index.test.ts +0 -0
- /package/templates/{foo → unbuild-template}/tsconfig.json +0 -0
- /package/templates/{foo → unbuild-template}/vitest.config.ts +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
5
|
+
"target": "ES2023",
|
|
6
|
+
"lib": [
|
|
7
|
+
"ES2023"
|
|
8
|
+
],
|
|
9
|
+
"moduleDetection": "force",
|
|
10
|
+
"baseUrl": ".",
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
/* Bundler mode */
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
"paths": {
|
|
15
|
+
"@/*": [
|
|
16
|
+
"./src"
|
|
17
|
+
],
|
|
18
|
+
"~/*": [
|
|
19
|
+
"./lib"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"types": [
|
|
23
|
+
"vitest/globals"
|
|
24
|
+
],
|
|
25
|
+
"allowImportingTsExtensions": true,
|
|
26
|
+
/* Linting */
|
|
27
|
+
"strict": true,
|
|
28
|
+
"noFallthroughCasesInSwitch": true,
|
|
29
|
+
"noUnusedLocals": true,
|
|
30
|
+
"noUnusedParameters": true,
|
|
31
|
+
"noEmit": true,
|
|
32
|
+
"verbatimModuleSyntax": true,
|
|
33
|
+
"erasableSyntaxOnly": true,
|
|
34
|
+
"skipLibCheck": true,
|
|
35
|
+
"noUncheckedSideEffectImports": true
|
|
36
|
+
},
|
|
37
|
+
"include": [
|
|
38
|
+
"test/**/*.ts"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import path from 'pathe'
|
|
2
|
+
import { mergeConfig } from 'vite'
|
|
3
|
+
import dts from 'vite-plugin-dts'
|
|
4
|
+
import { sharedConfig } from './vite.shared.config'
|
|
5
|
+
|
|
6
|
+
export default mergeConfig(sharedConfig, {
|
|
7
|
+
plugins: [
|
|
8
|
+
dts(
|
|
9
|
+
{
|
|
10
|
+
tsconfigPath: './tsconfig.app.json',
|
|
11
|
+
entryRoot: './lib',
|
|
12
|
+
},
|
|
13
|
+
),
|
|
14
|
+
],
|
|
15
|
+
// https://vite.dev/guide/build.html#library-mode
|
|
16
|
+
build: {
|
|
17
|
+
lib: {
|
|
18
|
+
entry: path.resolve(import.meta.dirname, 'lib/index'),
|
|
19
|
+
name: 'icebreaker',
|
|
20
|
+
// the proper extensions will be added
|
|
21
|
+
fileName: 'index',
|
|
22
|
+
},
|
|
23
|
+
rollupOptions: {
|
|
24
|
+
// make sure to externalize deps that shouldn't be bundled
|
|
25
|
+
// into your library
|
|
26
|
+
external: ['vue'],
|
|
27
|
+
output: {
|
|
28
|
+
// Provide global variables to use in the UMD build
|
|
29
|
+
// for externalized deps
|
|
30
|
+
globals: {
|
|
31
|
+
vue: 'Vue',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
})
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import vue from '@vitejs/plugin-vue'
|
|
2
|
+
import path from 'pathe'
|
|
3
|
+
// https://vite.dev/guide/build.html#library-mode
|
|
4
|
+
import { defineConfig } from 'vite'
|
|
5
|
+
|
|
6
|
+
export const sharedConfig = defineConfig({
|
|
7
|
+
resolve: {
|
|
8
|
+
alias: {
|
|
9
|
+
'@': path.resolve(import.meta.dirname, 'src'),
|
|
10
|
+
'~': path.resolve(import.meta.dirname, 'lib'),
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
plugins: [
|
|
14
|
+
vue(),
|
|
15
|
+
],
|
|
16
|
+
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|