Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit f1f7ffd

Browse files
Merge pull request #40 from chakra-ui/develop
chore: release `@chakra-ui/vue-auto-import` component resolver
2 parents 7c107a9 + 3486866 commit f1f7ffd

File tree

16 files changed

+182
-17
lines changed

16 files changed

+182
-17
lines changed

.changeset/pre.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
"@chakra-ui/vue-theme": "0.0.0",
2323
"@chakra-ui/vue-theme-tools": "0.0.0",
2424
"@chakra-ui/vue-utils": "0.0.0",
25-
"@chakra-ui/vue-docs": "0.0.0"
25+
"@chakra-ui/vue-docs": "0.0.0",
26+
"@chakra-ui/vue-auto-import": "0.0.1-alpha.0"
2627
},
2728
"changesets": [
2829
"chilly-tables-care",
29-
"empty-dragons-wait"
30+
"empty-dragons-wait",
31+
"slimy-bugs-give"
3032
]
3133
}

.changeset/slimy-bugs-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chakra-ui/vue-auto-import': patch
3+
---
4+
5+
Initial release for vite-auto-import plugin

_templates/generator/component/README.md.ejs.t renamed to _templates/generator/tooling/README.md.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
to: packages/<%=h.changeCase.paramCase(name)%>/README.md
2+
to: tooling/<%=h.changeCase.paramCase(name)%>/README.md
33
---
44

55
# @chakra-ui/<%=h.changeCase.paramCase(name)%>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
to: tooling/<%=h.changeCase.paramCase(name)%>/package.json
3+
---
4+
5+
{
6+
"name": "<%= '@chakra-ui/' + h.changeCase.paramCase(name)%>",
7+
"version": "1.0.0",
8+
"main": "dist/cjs/index.js",
9+
"module": "dist/esm/index.js",
10+
"types": "dist/types/index.d.ts",
11+
"typings": "dist/types/index.d.ts",
12+
"files": [
13+
"dist"
14+
],
15+
"description": "<%= 'Chakra UI Vue | ' + h.changeCase.pascalCase(name) + ' module'%>",
16+
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
17+
"author": "Jonathan Bakebwa [email protected]",
18+
"license": "MIT",
19+
"scripts": {
20+
"build": "rimraf ./dist && concurrently yarn:build:*",
21+
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps",
22+
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps",
23+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
24+
"watch": "concurrently yarn:watch:*",
25+
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps --watch",
26+
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps --watch",
27+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch --incremental"
28+
}
29+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
to: tooling/<%=h.changeCase.paramCase(name)%>/src/index.ts
3+
---
4+
const <%= h.changeCase.pascalCase(name) %> = () => {
5+
return {}
6+
}
7+
8+
export {
9+
<%= h.changeCase.pascalCase(name) %>
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
to: tooling/<%=h.changeCase.paramCase(name)%>/tests/<%=h.changeCase.paramCase(name)%>.test.ts
3+
---
4+
import { <%= h.changeCase.pascalCase(name) %> } from '../'
5+
6+
7+
it('should be truthy', () => {
8+
expect(1).toBe(1)
9+
})
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
to: tooling/<%=h.changeCase.paramCase(name)%>/tsconfig.json
3+
---
4+
5+
{
6+
"extends": "../../tsconfig.json",
7+
"include": ["src"]
8+
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"packages": ["packages/*", "website", "docs"],
2+
"packages": ["packages/*", "website", "docs", "tooling/*"],
33
"version": "independent",
44
"npmClient": "yarn",
55
"useWorkspaces": true,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"author": "Jonathan Bakebwa [email protected]",
88
"workspaces": [
99
"packages/*",
10+
"tooling/*",
1011
"website"
1112
],
1213
"scripts": {
@@ -28,6 +29,7 @@
2829
"system": "yarn workspace @chakra-ui/vue-system",
2930
"utils": "yarn workspace @chakra-ui/vue-utils",
3031
"theme": "yarn workspace @chakra-ui/vue-theme",
32+
"auto-import": "yarn workspace @chakra-ui/vue-auto-import",
3133
"c-alert": "yarn workspace @chakra-ui/c-alert",
3234
"c-theme-provider": "yarn workspace @chakra-ui/c-theme-provider",
3335
"c-box": "yarn workspace @chakra-ui/c-box",

tooling/auto-import/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# @chakra-ui/vue-auto-import
2+
3+
## 0.0.1-alpha.1
4+
### Patch Changes
5+
6+
7+
8+
- Initial release for vite-auto-import plugin

0 commit comments

Comments
 (0)