Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move config files to @nuxt/config (#4212)
- Loading branch information
Showing
17 changed files
with
39 additions
and
14 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
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
export { default as Modes } from './modes' | ||
export { default as NuxtConfig } from './nuxt.config' | ||
export { default as nuxtServerConfig } from './config/server' | ||
export { default as Options } from './options' | ||
export { default as BuildContext } from './build/context' | ||
export * from './utils' |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
export default { | ||
build: true | ||
} |
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,18 @@ | ||
{ | ||
"name": "@nuxt/config", | ||
"version": "2.2.0", | ||
"repository": "nuxt/nuxt.js", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/config.js", | ||
"dependencies": { | ||
"consola": "^1.4.4", | ||
"lodash": "^4.17.11", | ||
"std-env": "^2.0.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 NuxtConfig from './config' | ||
|
||
// Export individual bundles for easier access | ||
export { default as Modes } from './modes' | ||
export { default as build } from './config/build' | ||
export { default as messages } from './config/messages' | ||
export { default as render } from './config/render' | ||
export { default as router } from './config/router' | ||
export { default as server } from './config/server' | ||
|
||
export default NuxtConfig |
File renamed without changes.
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
@galvez I missed this. Mixing
default
and named exports breaks CJSrequire
. This is why eslint doesn't recommend it.