mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
parent
e8aca9eb11
commit
75a29c8b13
@ -15,7 +15,8 @@ module.exports = {
|
||||
},
|
||||
rules: {
|
||||
'no-console': 'error',
|
||||
'no-debugger': 'error'
|
||||
'no-debugger': 'error',
|
||||
quotes: ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }]
|
||||
},
|
||||
overrides: [{
|
||||
files: [ 'test/fixtures/*/.nuxt*/**' ],
|
||||
|
@ -12,8 +12,7 @@ export default () => ({
|
||||
mode: 'universal',
|
||||
modern: undefined,
|
||||
|
||||
// Globals
|
||||
globalName: 'nuxt',
|
||||
globalName: undefined,
|
||||
globals: {
|
||||
id: globalName => `__${globalName}`,
|
||||
nuxt: globalName => `$${globalName}`,
|
||||
|
@ -63,7 +63,8 @@ export function getNuxtConfig (_options) {
|
||||
|
||||
options.globalName = (isNonEmptyString(options.globalName) && /^[a-zA-Z]+$/.test(options.globalName))
|
||||
? options.globalName.toLowerCase()
|
||||
: 'nuxt'
|
||||
// use `` for preventing replacing to nuxt-edge
|
||||
: `nuxt`
|
||||
|
||||
// Resolve rootDir
|
||||
options.rootDir = isNonEmptyString(options.rootDir) ? path.resolve(options.rootDir) : process.cwd()
|
||||
|
@ -177,7 +177,7 @@ Object {
|
||||
"routes": Array [],
|
||||
"subFolders": true,
|
||||
},
|
||||
"globalName": "nuxt",
|
||||
"globalName": undefined,
|
||||
"globals": Object {
|
||||
"context": [Function],
|
||||
"id": [Function],
|
||||
@ -531,7 +531,7 @@ Object {
|
||||
"routes": Array [],
|
||||
"subFolders": true,
|
||||
},
|
||||
"globalName": "nuxt",
|
||||
"globalName": undefined,
|
||||
"globals": Object {
|
||||
"context": [Function],
|
||||
"id": [Function],
|
||||
|
@ -4,7 +4,7 @@ import consola from 'consola'
|
||||
|
||||
import Package from './package.js'
|
||||
|
||||
async function main() {
|
||||
async function main () {
|
||||
// Read package at current directory
|
||||
const rootPackage = new Package()
|
||||
const workspacePackages = await rootPackage.getWorkspacePackages()
|
||||
|
Loading…
Reference in New Issue
Block a user