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

Commit 5f41560

Browse files
committed
feat: create system package
1 parent af71d01 commit 5f41560

File tree

21 files changed

+147
-39
lines changed

21 files changed

+147
-39
lines changed

_templates/generator/component/package.json.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
1414
],
1515
"description": "<%= 'Chakra UI Vue | ' + h.changeCase.pascalCase(name) + ' component'%>",
1616
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
17-
"author": "codebender828 [email protected]",
17+
"author": "Jonathan Bakebwa [email protected]",
1818
"license": "MIT",
1919
"scripts": {
2020
"build": "concurrently yarn:build:*",

_templates/generator/module/index.ts.ejs.t

Lines changed: 0 additions & 19 deletions
This file was deleted.

_templates/generator/module/package.json.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
88
"main": "index.js",
99
"description": "<%= 'Chakra UI Vue | ' + h.changeCase.pascalCase(name) + ' module'%>",
1010
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
11-
"author": "codebender828 [email protected]",
11+
"author": "Jonathan Bakebwa [email protected]",
1212
"license": "MIT",
1313
"scripts": {
1414
"build": "concurrently yarn:build:*",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
to: packages/<%=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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
to: packages/<%=h.changeCase.paramCase(name)%>/tests/<%=h.changeCase.paramCase(name)%>.test.ts
33
---
4-
import { render } from '@chakra-ui/vue-test-utils'
5-
import <%= h.changeCase.pascalCase(name) %> from '../'
4+
import { <%= h.changeCase.pascalCase(name) %> } from '../'
65

76

8-
it('should render properly', () => {
9-
const { html } = render(<%= h.changeCase.pascalCase(name) %>)
10-
expect(html()).toMatchSnapshot()
7+
it('should be truthy', () => {
8+
expect(1).toBe(1)
119
})

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Vue 3 compatible Chakra UI",
55
"main": "index.js",
66
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
7-
"author": "codebender828 [email protected]",
7+
"author": "Jonathan Bakebwa [email protected]",
88
"workspaces": [
99
"packages/*"
1010
],
@@ -25,6 +25,7 @@
2525
"devDependencies": {
2626
"@swc/cli": "^0.1.26",
2727
"@swc/core": "^1.2.28",
28+
"@types/jest": "^26.0.14",
2829
"@types/recursive-readdir": "^2.2.0",
2930
"@typescript-eslint/eslint-plugin": "^2.34.0",
3031
"@typescript-eslint/parser": "^2.34.0",

packages/c-alert/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"description": "Chakra UI Vue | CAlert component",
1212
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
13-
"author": "codebender828 [email protected]",
13+
"author": "Jonathan Bakebwa [email protected]",
1414
"license": "MIT",
1515
"scripts": {
1616
"build": "concurrently yarn:build:*",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { render } from '@chakra-ui/vue-test-utils'
22
import CAlert from '../'
33

4-
54
it('should render properly', () => {
65
const { html } = render(CAlert)
76
expect(html()).toMatchSnapshot()
8-
})
7+
})

packages/c-box/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"description": "Chakra UI Vue | CBox component",
1212
"repository": "https://github.com/chakra-ui/chakra-ui-vue-next.git",
13-
"author": "codebender828 [email protected]",
13+
"author": "Jonathan Bakebwa [email protected]",
1414
"license": "MIT",
1515
"scripts": {
1616
"build": "concurrently yarn:build:*",

packages/c-box/tests/c-box.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { render } from '@chakra-ui/vue-test-utils'
22
import CBox from '../'
33

4-
54
it('should render properly', () => {
65
const { html } = render(CBox)
76
expect(html()).toMatchSnapshot()
8-
})
7+
})

0 commit comments

Comments
 (0)