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

Commit a1ffdaa

Browse files
committed
feat(nuxt): programmatically install emotion
1 parent 648ea14 commit a1ffdaa

19 files changed

+129
-60
lines changed

examples/nuxt-app/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
*.log*
3+
.nuxt
4+
.nitro
5+
.cache
6+
.output
7+
.env
8+
dist

examples/nuxt-app/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

examples/nuxt-app/.nuxtrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports.autoImport=false
2+
typescript.includeWorkspace=true

examples/nuxt-app/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Nuxt 3 Minimal Starter
2+
3+
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# yarn
11+
yarn install
12+
13+
# npm
14+
npm install
15+
16+
# pnpm
17+
pnpm install
18+
```
19+
20+
## Development Server
21+
22+
Start the development server on http://localhost:3000
23+
24+
```bash
25+
npm run dev
26+
```
27+
28+
## Production
29+
30+
Build the application for production:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
Locally preview production build:
37+
38+
```bash
39+
npm run preview
40+
```
41+
42+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

examples/nuxt-app/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
<NuxtWelcome />
4+
</div>
5+
</template>

examples/nuxt-app/nuxt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default defineNuxtConfig({
2+
modules: ["@chakra-ui/nuxt-next"],
3+
})

examples/nuxt-app/package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"build": "nuxt build",
5+
"dev": "nuxt dev",
6+
"generate": "nuxt generate",
7+
"preview": "nuxt preview",
8+
"postinstall": "nuxt prepare"
9+
},
10+
"devDependencies": {
11+
"@chakra-ui/nuxt-next": "workspace:*",
12+
"nuxt": "^3.1.0"
13+
}
14+
}

examples/nuxt-app/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./.nuxt/tsconfig.json"
3+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"@chakra-ui/utils": "2.0.14",
7979
"@chakra-ui/vue-auto-import": "workspace:*",
8080
"@chakra-ui/vue-next": "workspace:*",
81+
"@chakra-ui/nuxt-next": "workspace:*",
8182
"@chakra-ui/vue-styled": "workspace:*",
8283
"@chakra-ui/vue-system": "workspace:*",
8384
"@chakra-ui/vue-test-utils": "workspace:*",

packages/core/src/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { computed, Plugin, ref, UnwrapRef } from "vue"
22
import { theme as defaultTheme, baseTheme, Theme } from "@chakra-ui/theme"
3-
import {
4-
AppColorModeContextSymbol,
5-
ColorModeRef,
6-
setupColorModeContext,
7-
} from "@chakra-ui/c-color-mode"
3+
import { ColorModeRef, setupColorModeContext } from "@chakra-ui/c-color-mode"
84
import { toCSSVar, WithCSSVar } from "@chakra-ui/styled-system"
95
import { chakra, injectGlobal } from "@chakra-ui/vue-system"
106
import {

0 commit comments

Comments
 (0)