]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: note that the current combination algorithm is incorrect
authorHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 23 Aug 2021 11:57:17 +0000 (19:57 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 23 Aug 2021 11:57:17 +0000 (19:57 +0800)
snapshot.js

index f80cff6dff0a37a97ae9a9401a8b14f8503fc2c4..1698d96d2b1aeda4b57a88a8cf208170890c83dd 100644 (file)
@@ -6,17 +6,14 @@ const playgroundDir = new URL('./playground/', import.meta.url).pathname
 function createProjectWithFeatureFlags(flags) {
   const projectName = flags.join('-')
   console.log(`Creating project ${projectName}`)
-  spawnSync(
-    'node',
-    [bin, projectName, ...flags.map((flag) => `--${flag}`), '--force'],
-    {
-      cwd: playgroundDir
-    }
-  )
+  spawnSync('node', [bin, projectName, ...flags.map((flag) => `--${flag}`), '--force'], {
+    cwd: playgroundDir
+  })
 }
 
 const featureFlags = ['typescript', 'jsx', 'router', 'vuex', 'with-tests']
 
+// FIXME: not correct
 function getCombinations(arr) {
   const combinations = []