]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
style: format
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 14 Sep 2023 07:05:22 +0000 (15:05 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 14 Sep 2023 07:05:22 +0000 (15:05 +0800)
scripts/snapshot.mjs
scripts/test.mjs
template/base/src/assets/base.css
template/base/vite.config.js.data.mjs
template/config/nightwatch-ct/vite.config.js.data.mjs

index 0e13ed570b7d15e380aac939e6d72acdc4fd3a4b..6c5cfc612f331c1f934c44ecb0ffed0c30918c86 100644 (file)
@@ -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.
index f6dc2fa4e927430062299770d41685adb9e6413f..cab7b948d2d85c66f25c31a2a2ed7a900634966c 100644 (file)
@@ -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`
   }
index d3de42ec96a1637ebe2e2587a95196c90fbda9e9..8816868a41b651f318dee87c6784ebcd6e29eca1 100644 (file)
@@ -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;
index 6609dc27ba3a4fb03a620cf1b3ef09cf4c2b32fe..e3814b13252697610ade3f889991e87746788e52 100644 (file)
@@ -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()'
+      }
+    ]
   }
 }
index ff69a37e8c266396035249ede84774db804be603..61147bb0badc25c8218d63edefc0f82c64c55670 100644 (file)
@@ -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
       }