-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: upgrade to stable nuxt and server dependencies (#648)
Co-authored-by: Pooya Parsa <[email protected]>
- Loading branch information
Showing
95 changed files
with
4,327 additions
and
1,386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { defineBuildConfig } from 'unbuild' | ||
|
||
export default defineBuildConfig({ | ||
declaration: true, | ||
entries: [ | ||
{ | ||
input: 'src/config/index', | ||
outDir: 'schema', | ||
name: 'config', | ||
builder: 'untyped', | ||
defaults: { | ||
dev: false, | ||
ssr: true, | ||
buildAssetsDir: '_nuxt', | ||
srcDir: '', | ||
buildDir: '.nuxt', | ||
dir: { | ||
store: 'store' | ||
}, | ||
loading: {}, | ||
sourcemap: {}, | ||
vue: {}, | ||
manifest: {}, | ||
messages: {}, | ||
postcss: {}, | ||
build: {}, | ||
generate: {}, | ||
app: {}, | ||
_nuxtConfigFiles: [], | ||
rootDir: '/<rootDir>/', | ||
vite: { | ||
base: '/' | ||
} | ||
} | ||
}, | ||
'src/index' | ||
], | ||
externals: [ | ||
// Type imports | ||
'vue-meta', | ||
'vue-router', | ||
'vue-bundle-renderer', | ||
'@vueuse/head', | ||
'vue', | ||
'hookable', | ||
'nitropack', | ||
'webpack', | ||
'webpack-bundle-analyzer', | ||
'rollup-plugin-visualizer', | ||
'vite', | ||
'@vitejs/plugin-vue', | ||
'mini-css-extract-plugin', | ||
'terser-webpack-plugin', | ||
'css-minimizer-webpack-plugin', | ||
'webpack-dev-middleware', | ||
'h3', | ||
'webpack-hot-middleware', | ||
'postcss', | ||
'consola', | ||
'ignore', | ||
// Implicit | ||
'@vue/compiler-core', | ||
'@vue/shared', | ||
'untyped' | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "@nuxt/bridge-schema", | ||
"version": "3.0.0", | ||
"repository": "nuxt/bridge", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"schema" | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"prepack": "unbuild" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash.template": "^4", | ||
"@types/semver": "^7", | ||
"@vitejs/plugin-vue": "^3.1.2", | ||
"@vueuse/head": "^0.9.7", | ||
"nitropack": "^1.0.0", | ||
"unbuild": "latest", | ||
"vite": "~3.2.4" | ||
}, | ||
"dependencies": { | ||
"c12": "^1.0.1", | ||
"create-require": "^1.1.1", | ||
"defu": "^6.1.0", | ||
"jiti": "^1.16.0", | ||
"pathe": "^1.0.0", | ||
"pkg-types": "^1.0.1", | ||
"postcss-import-resolver": "^2.0.0", | ||
"scule": "^1.0.0", | ||
"std-env": "^3.3.0", | ||
"ufo": "^1.0.1", | ||
"unbuild": "1.0.1", | ||
"unimport": "^0.6.8", | ||
"untyped": "^1.0.0" | ||
}, | ||
"engines": { | ||
"node": "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ConfigSchema } from '../schema/config' | ||
|
||
type DeepPartial<T> = T extends Function ? T : T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T | ||
|
||
/** User configuration in `nuxt.config` file */ | ||
export interface Nuxt2Config extends DeepPartial<Omit<ConfigSchema, 'vite'>> { | ||
} | ||
|
||
/** Normalized Nuxt options available as `nuxt.options.*` */ | ||
export interface Nuxt2Options extends ConfigSchema { | ||
} |
Oops, something went wrong.