-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nuxt): updates to file sctructure
- Loading branch information
Showing
24 changed files
with
434 additions
and
196 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
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
14 changes: 3 additions & 11 deletions
14
packages/nuxt/src/generators/application/files/nuxt.config.ts__tmpl__
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,17 +1,9 @@ | ||
import { nxTsPaths } from '@nx/nuxt'; | ||
import { NxNuxtModule } from '@nx/nuxt'; | ||
|
||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
/** | ||
* Nuxt recommends setting custom alias from a tsconfig here, | ||
* instead of in tsconfig since it will override the auto generated tsconfig. | ||
* all aliases added here will be added to the auto generated tsconfig. | ||
* Other projects generated with Nx will be added to the root level tsconfig.base.json | ||
* which might want to be used in this project. | ||
* | ||
* https://nuxt.com/docs/guide/directory-structure/tsconfig | ||
**/ | ||
alias: nxTsPaths(), | ||
modules: [NxNuxtModule], | ||
srcDir: 'src', | ||
devtools: { enabled: true }, | ||
css: ['~/assets/css/styles.css'], | ||
}); |
10 changes: 0 additions & 10 deletions
10
packages/nuxt/src/generators/application/files/pages/index.vue__tmpl__
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
packages/nuxt/src/generators/application/files/src/pages/index.vue__tmpl__
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,6 @@ | ||
<template> | ||
<NxWelcome title="<%= title %>" /> | ||
</template> | ||
|
||
|
||
|
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
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
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,36 +1,18 @@ | ||
import { | ||
eslintPluginVueVersion, | ||
vueEslintConfigPrettierVersion, | ||
vueEslintConfigTypescriptVersion, | ||
} from '@nx/vue'; | ||
import { nuxtEslintConfigTypescriptVersion } from './versions'; | ||
import { nuxtEslintConfigVersion } from './versions'; | ||
|
||
export const extraEslintDependencies = { | ||
dependencies: {}, | ||
devDependencies: { | ||
'@nuxtjs/eslint-config-typescript': nuxtEslintConfigTypescriptVersion, | ||
'eslint-plugin-vue': eslintPluginVueVersion, | ||
'@vue/eslint-config-prettier': vueEslintConfigPrettierVersion, | ||
'@vue/eslint-config-typescript': vueEslintConfigTypescriptVersion, | ||
'@nuxt/eslint-config': nuxtEslintConfigVersion, | ||
}, | ||
}; | ||
|
||
export const extendNuxtEslintJson = (json: any) => { | ||
const { extends: pluginExtends, ...config } = json; | ||
|
||
return { | ||
extends: [ | ||
'eslint:recommended', | ||
'@nuxtjs/eslint-config-typescript', | ||
'plugin:vue/vue3-essential', | ||
'@vue/eslint-config-typescript', | ||
'@vue/eslint-config-prettier/skip-formatting', | ||
...(pluginExtends || []), | ||
], | ||
extends: ['@nuxt/eslint-config', ...(pluginExtends || [])], | ||
ignorePatterns: ['.nuxt', 'node_modules', '.output'], | ||
rules: { | ||
'vue/multi-word-component-names': 'off', | ||
}, | ||
...config, | ||
}; | ||
}; |
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
Oops, something went wrong.