Bladeren bron

Remove variations from build step (#6271)

* Remove variations from build step
* Added 'styles' (variations) to variation exclude list
Jason Crist 3 jaren geleden
bovenliggende
commit
edf4995174
2 gewijzigde bestanden met toevoegingen van 1 en 25 verwijderingen
  1. 0 24
      theme-utils.mjs
  2. 1 1
      variations/build-variations.mjs

+ 0 - 24
theme-utils.mjs

@@ -237,30 +237,6 @@ async function pushButtonDeploy() {
 	try {
 		await cleanSandbox();
 
-		//build variations
-		console.log('Building Variations');
-		await executeCommand(`node ./variations/build-variations.mjs git-add-changes`)
-		prompt = await inquirer.prompt([{
-			type: 'confirm',
-			message: 'Are you good with any staged theme variations changes? Make any manual adjustments now if necessary.',
-			name: "continue",
-			default: false
-		}]);
-
-		if (!prompt.continue) {
-			console.log(`Aborted Automated Deploy Process at variations building.`);
-			return;
-		}
-
-		try {
-			await executeCommand(`
-				git commit -m "Building Variations"
-			`);
-		} catch (err) {
-			// Most likely the error is that there are no variation changes to commit.
-			// Just swallowing that error for now
-		}
-
 		let hash = await getLastDeployedHash();
 		let thingsWentBump = await versionBumpThemes();
 

+ 1 - 1
variations/build-variations.mjs

@@ -47,7 +47,7 @@ async function buildVariation(source, variation) {
 		// then empty the old directory.
 		await fs.emptyDir( destDir );
 
-		const exclude = [ 'node_modules', 'sass', 'package.json', 'package-lock.json' ];
+		const exclude = [ 'node_modules', 'styles', 'sass', 'package.json', 'package-lock.json' ];
 
 		// Then copy the source directory.
 		await fs.copy( srcDir, destDir, {