Skip to content

Commit 0237556

Browse files
committed
feat: support transform
1 parent 225e8be commit 0237556

27 files changed

+3687
-2652
lines changed

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@
88
"[typescript]": {
99
"editor.defaultFormatter": "rome.rome"
1010
},
11+
"[javascript]": {
12+
"editor.defaultFormatter": "rome.rome"
13+
},
14+
"[vue]": {
15+
"editor.defaultFormatter": "Vue.volar"
16+
},
1117
"files.eol": "\n"
1218
}

bin/tosetup.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
#!/usr/bin/env node
3+
'use strict'
4+
import '../dist/index.mjs'

build.config.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { defineBuildConfig } from "unbuild";
22

33
export default defineBuildConfig({
4-
entries: [
5-
'src/index',
6-
],
4+
entries: ["src/index"],
75
declaration: true,
86
clean: true,
97
rollup: {
108
emitCJS: true,
9+
inlineDependencies: true,
1110
},
12-
})
11+
});

example/src/App.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script lang="ts">
2+
import { defineComponent } from 'vue'
3+
export default defineComponent({
4+
directives: {
5+
6+
},
7+
setup(props, item) {
8+
9+
}
10+
})
11+
</script>
12+
13+
<template>
14+
<div>Home</div>
15+
</template>

example/src/components/Header.vue

Whitespace-only changes.

example/src/components/Tab.vue

Whitespace-only changes.

example/src/views/401.vue

Whitespace-only changes.

example/src/views/404.vue

Whitespace-only changes.

example/src/views/Home.vue

Whitespace-only changes.

package.json

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"main": "./dist/index.mjs",
2323
"module": "./dist/index.mjs",
2424
"types": "./dist/index.d.ts",
25+
"bin": {
26+
"tosetup": "bin/tosetup.mjs"
27+
},
2528
"typesVersions": {
2629
"*": {
2730
"*": [
@@ -42,23 +45,28 @@
4245
"start": "esno src/index.ts",
4346
"test": "vitest",
4447
"typecheck": "tsc --noEmit",
45-
"release-one": "standard-version -r major",
46-
"release-two": "standard-version -r minor",
47-
"release-three": "standard-version -r patch"
48+
"re-major": "standard-version -r major",
49+
"re-minor": "standard-version -r minor",
50+
"re-patch": "standard-version -r patch"
4851
},
4952
"devDependencies": {
50-
"@antfu/ni": "^0.18.0",
51-
"@types/node": "^18.11.9",
53+
"@antfu/ni": "^0.18.8",
54+
"@types/node": "^18.11.10",
5255
"bumpp": "^8.2.1",
5356
"esno": "^0.16.3",
5457
"rome": "^10.0.1",
5558
"standard-version": "^9.5.0",
56-
"typescript": "^4.8.4",
57-
"unbuild": "^0.8.11",
58-
"vite": "^3.2.3",
59-
"vitest": "^0.25.2"
59+
"typescript": "^4.9.3",
60+
"unbuild": "^1.0.1",
61+
"vite": "^3.2.4",
62+
"vitest": "^0.25.3",
63+
"vue": "^3.2.45"
6064
},
6165
"dependencies": {
62-
"find-up": "^6.3.0"
66+
"@swc/core": "^1.3.21",
67+
"colorette": "^2.0.19",
68+
"fast-glob": "^3.2.12",
69+
"find-up": "^6.3.0",
70+
"unconfig": "^0.3.7"
6371
}
6472
}

0 commit comments

Comments
 (0)