From: Haoqun Jiang Date: Thu, 14 Sep 2023 07:05:22 +0000 (+0800) Subject: style: format X-Git-Tag: v3.7.4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cafcc92c72fef3013d59040da7fb3f71becabd4;p=thirdparty%2Fvuejs%2Fcreate-vue.git style: format --- diff --git a/scripts/snapshot.mjs b/scripts/snapshot.mjs index 0e13ed57..6c5cfc61 100644 --- a/scripts/snapshot.mjs +++ b/scripts/snapshot.mjs @@ -6,7 +6,16 @@ $.verbose = false if (!/pnpm/.test(process.env.npm_config_user_agent ?? '')) throw new Error("Please use pnpm ('pnpm run snapshot') to generate snapshots!") -const featureFlags = ['typescript', 'jsx', 'router', 'pinia', 'vitest', 'cypress', 'playwright', 'nightwatch'] +const featureFlags = [ + 'typescript', + 'jsx', + 'router', + 'pinia', + 'vitest', + 'cypress', + 'playwright', + 'nightwatch' +] const featureFlagsDenylist = [['cypress', 'playwright', 'nightwatch']] // The following code & comments are generated by GitHub CoPilot. diff --git a/scripts/test.mjs b/scripts/test.mjs index f6dc2fa4..cab7b948 100644 --- a/scripts/test.mjs +++ b/scripts/test.mjs @@ -23,7 +23,7 @@ for (const projectName of projects) { console.log(`Building ${projectName}`) await $`pnpm build` - + if ('@playwright/test' in packageJSON.devDependencies) { await $`pnpm playwright install --with-deps` } diff --git a/template/base/src/assets/base.css b/template/base/src/assets/base.css index d3de42ec..8816868a 100644 --- a/template/base/src/assets/base.css +++ b/template/base/src/assets/base.css @@ -62,10 +62,23 @@ body { min-height: 100vh; color: var(--color-text); background: var(--color-background); - transition: color 0.5s, background-color 0.5s; + transition: + color 0.5s, + background-color 0.5s; line-height: 1.6; - font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + font-family: + Inter, + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + Oxygen, + Ubuntu, + Cantarell, + 'Fira Sans', + 'Droid Sans', + 'Helvetica Neue', + sans-serif; font-size: 15px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; diff --git a/template/base/vite.config.js.data.mjs b/template/base/vite.config.js.data.mjs index 6609dc27..e3814b13 100644 --- a/template/base/vite.config.js.data.mjs +++ b/template/base/vite.config.js.data.mjs @@ -1,9 +1,11 @@ export default function getData() { return { - plugins: [{ - id: 'vue', - importer: "import vue from '@vitejs/plugin-vue'", - initializer: 'vue()' - }] + plugins: [ + { + id: 'vue', + importer: "import vue from '@vitejs/plugin-vue'", + initializer: 'vue()' + } + ] } } diff --git a/template/config/nightwatch-ct/vite.config.js.data.mjs b/template/config/nightwatch-ct/vite.config.js.data.mjs index ff69a37e..61147bb0 100644 --- a/template/config/nightwatch-ct/vite.config.js.data.mjs +++ b/template/config/nightwatch-ct/vite.config.js.data.mjs @@ -2,7 +2,7 @@ export default function getData({ oldData }) { return { ...oldData, - plugins: oldData.plugins.map(plugin => { + plugins: oldData.plugins.map((plugin) => { if (plugin.id !== 'nightwatch') { return plugin }