From: Haoqun Jiang Date: Mon, 23 Aug 2021 11:57:17 +0000 (+0800) Subject: chore: note that the current combination algorithm is incorrect X-Git-Tag: v3.0.0-beta.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c890f991f8366a216c883dc4b2d65804e4c8511a;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: note that the current combination algorithm is incorrect --- diff --git a/snapshot.js b/snapshot.js index f80cff6d..1698d96d 100644 --- a/snapshot.js +++ b/snapshot.js @@ -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 = []