diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a3940ff..084d1025 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,23 +16,21 @@ commands: description: "Set commonly used environment variables" steps: - run: - name: "Set Theme Slug" - command: | - echo "export THEME_SLUG=$(grep 'textdomain":' /tmp/theme/package.json | awk -F: '{print $2}' | sed -e 's/\s//g' -e 's/[\"\,]//g')" >> ${BASH_ENV} - - run: - name: "Set Theme Version" + name: "Set Theme Variables" command: | + echo "export THEME_SLUG=genesis-sample" >> ${BASH_ENV} echo "export THEME_VERSION=$(grep 'version":' /tmp/theme/package.json | awk -F: '{print $2}' | sed -e 's/\s//g' -e 's/[\"\,]//g')" >> ${BASH_ENV} + echo "export THEME_TEXT_DOMAIN=genesis-sample" >> ${BASH_ENV} - run: name: "Set Artifact Name" command: | - echo "export VERSION_ARTIFACT_FILE=${THEME_SLUG}.${THEME_VERSION}.zip" >> ${BASH_ENV} - echo "export VERSION_DATA_FILE=${THEME_SLUG}.${THEME_VERSION}.json" >> ${BASH_ENV} + echo "export VERSION_ARTIFACT_FILE=${THEME_TEXT_DOMAIN}.${THEME_VERSION}.zip" >> ${BASH_ENV} + echo "export VERSION_DATA_FILE=${THEME_TEXT_DOMAIN}.${THEME_VERSION}.json" >> ${BASH_ENV} - run: name: "Set Latest Artifact Name" command: | - echo "export LATEST_ARTIFACT_FILE=${THEME_SLUG}.latest.zip" >> ${BASH_ENV} - echo "export LATEST_DATA_FILE=${THEME_SLUG}.latest.json" >> ${BASH_ENV} + echo "export LATEST_ARTIFACT_FILE=${THEME_TEXT_DOMAIN}.latest.zip" >> ${BASH_ENV} + echo "export LATEST_DATA_FILE=${THEME_TEXT_DOMAIN}.latest.json" >> ${BASH_ENV} executors: base: @@ -136,7 +134,7 @@ jobs: cp /tmp/artifacts/${VERSION_DATA_FILE} /tmp/artifacts/${LATEST_DATA_FILE} - aws-s3/sync: from: "/tmp/artifacts/" - to: "s3://update.atomicblocks.com/<< parameters.environment >>/${THEME_SLUG}/" + to: "s3://update.atomicblocks.com/<< parameters.environment >>/${THEME_TEXT_DOMAIN}/" workflows: version: 2 diff --git a/.scripts/makePIServiceData.js b/.scripts/makePIServiceData.js index feface7c..3e833b1d 100644 --- a/.scripts/makePIServiceData.js +++ b/.scripts/makePIServiceData.js @@ -4,12 +4,12 @@ * * @TODO Maybe convert "tags" value to an array? */ -const fs = require('fs'); +const fs = require("fs"); /** * Run the script */ -const runScript = function() { +const runScript = function () { // Sanitize the destination path const destPath = sanitizeDestPath(process.argv[2]); @@ -17,22 +17,26 @@ const runScript = function() { let data = {}; // Get array of "theme" keys from process.env.npm_package_theme_* - const keys = Object.keys(process.env).filter(key => key.match(/npm_package_theme_.+/)); + const keys = Object.keys(process.env).filter((key) => + key.match(/npm_package_theme_.+/) + ); // Iterate through keys and populate the data object // Note: this isn't using a map because we want the output to be an object, not an array - keys.forEach(envKey => { + keys.forEach((envKey) => { key = envKey.match(/npm_package_theme_(.+)/)[1]; // strip npm_package_theme_ from key data[key] = process.env[envKey]; // Save to data object }); // Write data object to a JSON file - const themeName = process.env.THEME_SLUG || data.textdomain; + const themeName = process.env.THEME_TEXT_DOMAIN || data.textdomain; const themeVersion = process.env.THEME_VERSION || data.version; - const fileName = process.env.VERSION_DATA_FILE || `${themeName}.${themeVersion}.json`; + const fileName = + process.env.VERSION_DATA_FILE || `${themeName}.${themeVersion}.json`; const filePath = `${destPath}/${fileName}`; + fs.writeFileSync(filePath, JSON.stringify(data)); -} +}; /** * Sanitize destination path @@ -41,11 +45,11 @@ const runScript = function() { * * @return {string} */ -const sanitizeDestPath = function(path) { +const sanitizeDestPath = function (path) { const defaultPath = process.cwd(); // Return default if a path wasn't provided - if( ! path || ! path.length){ + if (!path || !path.length) { return defaultPath; } @@ -55,7 +59,7 @@ const sanitizeDestPath = function(path) { } return path; -} +}; // Run the script runScript(); diff --git a/CHANGELOG.md b/CHANGELOG.md index 55df0f38..f39ef612 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Genesis Sample Theme Changelog +## [3.4.0] - 2020-10-20 +Genesis Sample 3.4.0 requires the Genesis Blocks plugin. + +* Changed: Install Genesis Blocks instead of Atomic Blocks during one-click theme setup. +* Changed: Updated one-click-theme-setup content to use Genesis Blocks. +* Changed: Updated Editor and front-end styles for Genesis Blocks compatibility. + ## [3.3.1] - 2020-08-17 ### Added diff --git a/config/import/content/about.php b/config/import/content/about.php index 840add8c..42134b7b 100644 --- a/config/import/content/about.php +++ b/config/import/content/about.php @@ -20,9 +20,9 @@
- -Grow your audience and build a profitable online business.
Grow your audience and build a profitable online business.
Your course helped me to grow my email list from 500 to over 10,000 subscribers—all within 3 months!
I started using your email marketing technique and it helped me to make $5,000 more a month without any extra work!
I was skeptical but I found that your system had multiplied my revenue by 40% after just the first quarter!
Your course helped me to grow my email list from 500 to over 10,000 subscribers—all within 3 months!
I started using your email marketing technique and it helped me to make $5,000 more a month without any extra work!
I was skeptical but I found that your system had multiplied my revenue by 40% after just the first quarter!
Contact us today
You can reach us on our contact page or by calling us at 1.123.456.7891
Our team has a combined experience of over 60 years.
We offer a 30-day return policy for all unused items. For more information, please view our terms of service.
Grow your audience and build a profitable online business.
Grow your audience and build a profitable online business.
Your course helped me to grow my email list from 500 to over 10,000 subscribers—all within 3 months!
I started using your email marketing technique and it helped me to make $5,000 more a month without any extra work!
I was skeptical but I found that your system had multiplied my revenue by 40% after just the first quarter!
Your course helped me to grow my email list from 500 to over 10,000 subscribers—all within 3 months!
I started using your email marketing technique and it helped me to make $5,000 more a month without any extra work!
I was skeptical but I found that your system had multiplied my revenue by 40% after just the first quarter!
Contact us today
You can reach us on our contact page or by calling us at 1.123.456.7891
Our team has a combined experience of over 60 years.
We offer a 30-day return policy for all unused items. For more information, please view our terms of service.