@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.
Files changed (39) hide show
  1. package/assets/package.json +3 -3
  2. package/assets/turbo.json +1 -1
  3. package/assets/vitest.config.ts +3 -0
  4. package/dist/{chunk-VOROHSAI.js → chunk-L7MRLUKD.js} +85 -61
  5. package/dist/cli.cjs +131 -83
  6. package/dist/cli.js +29 -5
  7. package/dist/index.cjs +85 -61
  8. package/dist/index.js +1 -1
  9. package/package.json +3 -1
  10. package/templates/{bar → tsup-template}/package.json +3 -3
  11. package/templates/{foo → unbuild-template}/package.json +3 -3
  12. package/templates/vue-lib-template/eslint.config.js +9 -0
  13. package/templates/vue-lib-template/index.html +13 -0
  14. package/templates/vue-lib-template/lib/HelloWorld.vue +19 -0
  15. package/templates/vue-lib-template/lib/index.ts +3 -0
  16. package/templates/vue-lib-template/package.json +57 -0
  17. package/templates/vue-lib-template/src/App.vue +9 -0
  18. package/templates/vue-lib-template/src/main.ts +5 -0
  19. package/templates/vue-lib-template/src/style.css +0 -0
  20. package/templates/vue-lib-template/src/vite-env.d.ts +1 -0
  21. package/templates/vue-lib-template/test/index.test.ts +13 -0
  22. package/templates/vue-lib-template/tsconfig.app.json +29 -0
  23. package/templates/vue-lib-template/tsconfig.json +14 -0
  24. package/templates/vue-lib-template/tsconfig.node.json +25 -0
  25. package/templates/vue-lib-template/tsconfig.test.json +40 -0
  26. package/templates/vue-lib-template/vite.config.ts +36 -0
  27. package/templates/vue-lib-template/vite.shared.config.ts +16 -0
  28. package/templates/vue-lib-template/vitest.config.ts +10 -0
  29. /package/templates/{bar → tsup-template}/src/index.ts +0 -0
  30. /package/templates/{bar → tsup-template}/test/index.test.ts +0 -0
  31. /package/templates/{bar → tsup-template}/tsconfig.json +0 -0
  32. /package/templates/{bar → tsup-template}/tsup.config.ts +0 -0
  33. /package/templates/{bar → tsup-template}/vitest.config.ts +0 -0
  34. /package/templates/{foo → unbuild-template}/build.config.ts +0 -0
  35. /package/templates/{foo → unbuild-template}/src/index.ts +0 -0
  36. /package/templates/{foo → unbuild-template}/src/utils.ts +0 -0
  37. /package/templates/{foo → unbuild-template}/test/index.test.ts +0 -0
  38. /package/templates/{foo → unbuild-template}/tsconfig.json +0 -0
  39. /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
+ })
@@ -0,0 +1,10 @@
1
+ import { mergeConfig } from 'vitest/config'
2
+ import { sharedConfig } from './vite.shared.config'
3
+
4
+ export default mergeConfig(sharedConfig, {
5
+ test: {
6
+ globals: true,
7
+ testTimeout: 60_000,
8
+ environment: 'jsdom',
9
+ },
10
+ })
File without changes
File without changes
File without changes