Skip to content

Commit 76e288e

Browse files
committed
Nuxt Bridge
``` ℹ Nuxt Bridge has now been released in beta. It has full composition API support and it's strongly recommended to migrate from @nuxtjs/composition-api, if possible, by following the steps at https://v3.nuxtjs.org/getting-started/bridge. Feedback welcome at nuxt-community/composition-api#585. ```
1 parent 1912c7f commit 76e288e

9 files changed

+17432
-7087
lines changed

Diff for: components/DbTableInfo.vue

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
</template>
2222

2323
<script lang="ts">
24-
import { defineComponent } from '@nuxtjs/composition-api'
25-
2624
export default defineComponent({
2725
props: {
2826
dbColumnNames: {

Diff for: components/DragAndDrop.vue

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
</template>
1515

1616
<script lang="ts">
17-
import { defineComponent, reactive } from '@nuxtjs/composition-api'
1817
import { parse } from 'csv-parse/lib/sync'
1918
2019
export default defineComponent({

Diff for: components/ErrorMessage.vue

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
</template>
1313

1414
<script lang="ts">
15-
import { defineComponent } from '@nuxtjs/composition-api'
16-
1715
export default defineComponent({
1816
props: {
1917
message: {

Diff for: components/ResultTable.vue

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
</template>
1919

2020
<script lang="ts">
21-
import { defineComponent } from '@nuxtjs/composition-api'
22-
2321
export default defineComponent({
2422
props: {
2523
columnNames: {

Diff for: nuxt.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import { defineNuxtConfig } from '@nuxt/bridge'
2+
13
const baseDir = process.env.BASE_DIR || '/'
2-
module.exports = { // eslint-disable-line
4+
5+
export default defineNuxtConfig({
36
// Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
47
ssr: false,
58

@@ -28,11 +31,8 @@ module.exports = { // eslint-disable-line
2831

2932
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
3033
buildModules: [
31-
// https://go.nuxtjs.dev/typescript
32-
'@nuxt/typescript-build',
3334
// https://go.nuxtjs.dev/stylelint
3435
'@nuxtjs/stylelint-module',
35-
'@nuxtjs/composition-api/module'
3636
],
3737

3838
// Modules (https://go.nuxtjs.dev/config-modules)
@@ -57,4 +57,4 @@ module.exports = { // eslint-disable-line
5757
},
5858
// telemetry#opting-out
5959
telemetry: false,
60-
}
60+
})

Diff for: package-lock.json

+17,420-7,067
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
"scripts/electron.js"
3030
],
3131
"scripts": {
32-
"dev": "npm run sql-wasm && nuxt",
32+
"dev": "npm run sql-wasm && nuxi dev",
3333
"dev-electron": "npm run sql-wasm && NODE_ENV=dev electron main.js",
34-
"build": "nuxt build",
35-
"start": "nuxt start",
36-
"generate": "nuxt generate",
34+
"build": "nuxi build",
35+
"start": "nuxi preview",
36+
"generate": "nuxi generate",
3737
"lint:js": "eslint --ext .ts,.js,.vue --ignore-path .gitignore .",
3838
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",
3939
"lint": "npm run lint:js && npm run lint:style",
@@ -61,9 +61,8 @@
6161
"devDependencies": {
6262
"@commitlint/cli": "^16.2.4",
6363
"@commitlint/config-conventional": "^16.2.4",
64+
"@nuxt/bridge": "npm:@nuxt/bridge-edge@^3.0.0-27566698.2b0045e",
6465
"@nuxt/types": "^2.15.8",
65-
"@nuxt/typescript-build": "^2.1.0",
66-
"@nuxtjs/composition-api": "^0.32.0",
6766
"@nuxtjs/eslint-config": "^10.0.0",
6867
"@nuxtjs/eslint-config-typescript": "^10.0.0",
6968
"@nuxtjs/eslint-module": "^3.1.0",
@@ -80,8 +79,8 @@
8079
"husky": "^8.0.0",
8180
"jest": "^28.1.0",
8281
"lint-staged": "^12.4.1",
83-
"nuxt": "^2.15.8",
8482
"nuxt-buefy": "^0.4.22",
83+
"nuxt-edge": "latest",
8584
"postcss-html": "^1.4.1",
8685
"prettier": "^2.6.2",
8786
"sql.js": "^1.6.2",

Diff for: pages/index.vue

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
</template>
2525

2626
<script lang="ts">
27-
import { defineComponent, reactive, onMounted } from '@nuxtjs/composition-api'
2827
import initSqlJs from 'sql.js'
2928
import DragAndDrop from '@/components/DragAndDrop.vue'
3029
import DbTableInfo from '@/components/DbTableInfo.vue'

Diff for: tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "./.nuxt/tsconfig.json",
23
"compilerOptions": {
34
"target": "ES2018",
45
"module": "ESNext",

0 commit comments

Comments
 (0)