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

Commit 81ea1f9

Browse files
committed
refactor(dev): improved development enviroment performance
1 parent ce8db6e commit 81ea1f9

36 files changed

+498
-626
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"bootstrap": "yarn run lerna bootstrap",
1414
"scaffold": "hygen",
1515
"build": "lerna run build --no-private --stream",
16-
"dev": "concurrently 'ts-node ./scripts/watch-files.ts' 'NODE_ENV=development vite serve playground --config ./vite.config.ts'",
17-
"playground:routes": "ts-node ./scripts/parse-routes.ts",
16+
"dev": "NODE_ENV=development vite serve playground --config ./vite.config.ts",
1817
"playground:build": "yarn install && yarn build && yarn playground:routes && NODE_ENV=production vite build playground --config ./vite.config.ts",
1918
"test": "jest",
2019
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix",
@@ -82,6 +81,8 @@
8281
"ts-node": "^9.0.0",
8382
"typescript": "^4.1.2",
8483
"vite": "^2.0.0-beta.44",
84+
"vite-plugin-components": "^0.6.6",
85+
"vite-plugin-pages": "^0.3.0",
8586
"vue": "^3.0.5",
8687
"vue-jest": "^5.0.0-alpha.7",
8788
"vue-router": "4.0.0-beta.10"
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
<template>
22
<c-alert> HELLO ALERT </c-alert>
33
</template>
4-
5-
<script lang="ts">
6-
import { CAlert } from '@chakra-ui/c-alert/src'
7-
import { defineComponent } from 'vue'
8-
9-
export default defineComponent({
10-
name: 'BaseAlertExample',
11-
components: { CAlert },
12-
})
13-
</script>

packages/c-alert/examples/with-accent.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,3 @@
1616
<c-alert-description> Something just happened </c-alert-description>
1717
</c-alert>
1818
</template>
19-
20-
<script lang="ts">
21-
import { CAlert, CAlertTitle, CAlertDescription } from '@chakra-ui/c-alert/src'
22-
import { defineComponent } from 'vue'
23-
24-
export default defineComponent({
25-
name: 'WithAccentExample',
26-
components: { CAlert, CAlertTitle, CAlertDescription },
27-
})
28-
</script>

packages/c-alert/examples/with-icon.vue

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,3 @@
2020
<c-alert-description> Something just happened </c-alert-description>
2121
</c-alert>
2222
</template>
23-
24-
<script lang="ts">
25-
import {
26-
CAlert,
27-
CAlertIcon,
28-
CAlertTitle,
29-
CAlertDescription,
30-
} from '@chakra-ui/c-alert/src'
31-
import { defineComponent } from 'vue'
32-
33-
export default defineComponent({
34-
name: 'WithIconAlertExample',
35-
components: { CAlert, CAlertIcon, CAlertTitle, CAlertDescription },
36-
})
37-
</script>

packages/c-alert/examples/with-status.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,3 @@
44
<c-alert status="warning" mb="3"> Warning alert </c-alert>
55
<c-alert status="error" mb="3"> Error alert </c-alert>
66
</template>
7-
8-
<script lang="ts">
9-
import { CAlert } from '@chakra-ui/c-alert/src'
10-
import { defineComponent } from 'vue'
11-
12-
export default defineComponent({
13-
name: 'WithStatusAlertExample',
14-
components: { CAlert },
15-
})
16-
</script>

packages/c-alert/examples/with-title.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,3 @@
44
<c-alert-description> Something just happened </c-alert-description>
55
</c-alert>
66
</template>
7-
8-
<script lang="ts">
9-
import { CAlert, CAlertTitle, CAlertDescription } from '@chakra-ui/c-alert/src'
10-
import { defineComponent } from 'vue'
11-
12-
export default defineComponent({
13-
name: 'WithTitleExample',
14-
components: { CAlert, CAlertTitle, CAlertDescription },
15-
})
16-
</script>

packages/c-button/examples/base-button.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,3 @@
66
<c-button mr="3" color-scheme="pink"> Base button</c-button>
77
</div>
88
</template>
9-
10-
<script lang="ts">
11-
import { CButton } from '@chakra-ui/c-button/src'
12-
import { defineComponent } from 'vue'
13-
14-
export default defineComponent({
15-
components: { CButton },
16-
})
17-
</script>

packages/c-button/examples/with-attached-buttons.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,3 @@
44
<c-button>Cancel</c-button>
55
</c-button-group>
66
</template>
7-
8-
<script lang="ts">
9-
import { CButton, CButtonGroup } from '@chakra-ui/c-button/src'
10-
import { defineComponent } from 'vue'
11-
12-
export default defineComponent({
13-
components: { CButton, CButtonGroup },
14-
})
15-
</script>

packages/c-button/examples/with-button-group.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,3 @@
44
<c-button>Cancel</c-button>
55
</c-button-group>
66
</template>
7-
8-
<script lang="ts">
9-
import { CButton, CButtonGroup } from '@chakra-ui/c-button/src'
10-
import { defineComponent } from 'vue'
11-
12-
export default defineComponent({
13-
components: { CButton, CButtonGroup },
14-
})
15-
</script>

packages/c-button/examples/with-button-size.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,3 @@
44
<c-button mr="3" size="md" color-scheme="teal"> Medium button </c-button>
55
<c-button mr="3" size="lg" color-scheme="teal"> Large button </c-button>
66
</template>
7-
8-
<script lang="ts">
9-
import { CButton } from '@chakra-ui/c-button/src'
10-
import { defineComponent } from 'vue'
11-
12-
export default defineComponent({
13-
components: { CButton },
14-
})
15-
</script>

0 commit comments

Comments
 (0)