diff --git a/nuxt.config.js b/nuxt.config.js index a30dbaa..f505bfc 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -9,7 +9,8 @@ export default { publicRuntimeConfig: { allUpdateSubscribe: process.env.ALL_UPDATE_SUBSCRIBE, testResultStore: process.env.TEST_RESULT_STORE, - siteUrl: process.env.URL + siteUrl: process.env.URL, + ...pkg.config }, /* diff --git a/package.json b/package.json index 930ebd3..f7ce47d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "doesitarm", "version": "1.0.0", - "description": "Find out the latest app support for Apple Silicon and the Apple M1 Pro and M1 Max Processors", + "description": "Find out the latest app support for Apple Silicon and the $npm_package_config_verbiage_processors Processors", "author": "Sam Carlton", "private": true, "ava": { @@ -9,6 +9,12 @@ "esm" ] }, + "config": { + "verbiage": { + "processors": "Apple M2 and M1 Ultra", + "macs": "Apple M2 or M1 Ultra Mac" + } + }, "scripts": { "test-prebuild": "ava ./test/prebuild.js --verbose", "test": "ava --timeout=1m --verbose", diff --git a/pages-eleventy/app.11ty.js b/pages-eleventy/app.11ty.js index 8361a3e..f7cf122 100644 --- a/pages-eleventy/app.11ty.js +++ b/pages-eleventy/app.11ty.js @@ -22,7 +22,7 @@ export const makeTitle = function ( app ) { } export const makeDescription = function ( app ) { - return `Latest reported support status of ${ app.name } on Apple Silicon and Apple M1 Pro and M1 Max Processors.` + return `Latest reported support status of ${ app.name } on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors.` } // https://stackoverflow.com/a/15069646/1397641 diff --git a/pages-eleventy/formula.11ty.js b/pages-eleventy/formula.11ty.js index 88485e1..8423bc5 100644 --- a/pages-eleventy/formula.11ty.js +++ b/pages-eleventy/formula.11ty.js @@ -17,7 +17,7 @@ export const makeTitle = function ( app ) { } export const makeDescription = function ( app ) { - return `Latest reported support status of ${ app.name } on Apple Silicon and Apple M1 Pro and M1 Max Processors when installed via Homebrew. ` + return `Latest reported support status of ${ app.name } on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors when installed via Homebrew. ` } class FormulaTemplate extends AppTemplate { diff --git a/pages/app/_slug/index.vue b/pages/app/_slug/index.vue index 57612e1..9b5197a 100644 --- a/pages/app/_slug/index.vue +++ b/pages/app/_slug/index.vue @@ -116,7 +116,7 @@ export default { { 'hid': 'description', 'name': 'description', - 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M2 and M1 Ultra Processors` + 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors` }, // Twitter Card @@ -128,7 +128,7 @@ export default { { 'hid': 'twitter:description', 'property': 'twitter:description', - 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M2 and M1 Ultra Processors` + 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors` }, { 'property': 'twitter:url', diff --git a/pages/apple-silicon-app-test.vue b/pages/apple-silicon-app-test.vue index 09a2bf7..892f767 100644 --- a/pages/apple-silicon-app-test.vue +++ b/pages/apple-silicon-app-test.vue @@ -16,7 +16,7 @@

- Check for Apple Silicon compatibility for your apps before you buy an M1 Pro or M1 Max Mac. + Check for Apple Silicon compatibility for your apps before you buy an {{ npm_package_config_verbiage_macs }}.

@@ -199,6 +199,9 @@ export default { } }, computed: { + npm_package_config_verbiage_macs () { + return process.env.npm_package_config_verbiage_macs + }, foundFiles () { return this.appsBeingScanned.filter( appScan => { return !appScan.statusMessage.includes('⏭') @@ -261,7 +264,7 @@ export default { return `Apple Silicon Compatibility Test Online` }, description () { - return `Check for Apple Silicon compatibility for any of your apps instantly before you buy an M1 Pro or M1 Max Mac. ` + return `Check for Apple Silicon compatibility for any of your apps instantly before you buy an ${ process.env.npm_package_config_verbiage_macs }. ` } }, mounted () { diff --git a/pages/benchmarks.vue b/pages/benchmarks.vue index 0a5ff19..bfb2f71 100644 --- a/pages/benchmarks.vue +++ b/pages/benchmarks.vue @@ -186,12 +186,12 @@ export default { }, computed: { title () { - return `Benchmarks for Apple M1 Pro and M1 Max Processors and Apple Silicon - Does It ARM` + return `Benchmarks for ${ process.env.npm_package_config_verbiage_processors } Processors and Apple Silicon - Does It ARM` }, description () { // const featuredAppsString = this.featuredApps.slice(0, 5).map(app => app.name).join(', ') - return `Apple Silicon benchmark, performance, and compatibility videos` + return `Apple Silicon benchmark, performance, and compatibility videos for Macs using the ${ process.env.npm_package_config_verbiage_processors } processors.` }, activeVideoId () { return this.video.id diff --git a/pages/formula/_slug.vue b/pages/formula/_slug.vue index 36a8ab4..ce4192a 100644 --- a/pages/formula/_slug.vue +++ b/pages/formula/_slug.vue @@ -59,7 +59,7 @@ export default { { 'hid': 'description', 'name': 'description', - 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Pro and M1 Max Processors when installed via Homebrew. ` + 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors when installed via Homebrew. ` }, // Twitter Card @@ -71,7 +71,7 @@ export default { { 'hid': 'twitter:description', 'property': 'twitter:description', - 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Pro and M1 Max Processors when installed via Homebrew. ` + 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors when installed via Homebrew. ` }, { 'property': 'twitter:url', diff --git a/pages/game/_slug/index.vue b/pages/game/_slug/index.vue index e3577b2..c85b488 100644 --- a/pages/game/_slug/index.vue +++ b/pages/game/_slug/index.vue @@ -153,7 +153,7 @@ export default { { 'hid': 'description', 'name': 'description', - 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Pro and M1 Max Processors for gaming. ` + 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors for gaming. ` }, // Twitter Card @@ -165,7 +165,7 @@ export default { { 'hid': 'twitter:description', 'property': 'twitter:description', - 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Pro and M1 Max Processors for gaming. ` + 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors for gaming. ` }, { 'property': 'twitter:url', diff --git a/pages/index.vue b/pages/index.vue index 7c7fddf..fd8e9c2 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -160,10 +160,10 @@ export default { }, computed: { title () { - return `Apple Silicon and Apple M2 and M1 Ultra app and game compatibility list` + return `Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } app and game compatibility list` }, description () { - return `List of compatibility apps and games for Apple Silicon and the Apple M2 and M1 Ultra Processors including performance reports and benchmarks` + return `List of compatibility apps and games for Apple Silicon and the ${ process.env.npm_package_config_verbiage_processors } Processors including performance reports and benchmarks` }, allList () { return [ diff --git a/pages/kind/_slug.vue b/pages/kind/_slug.vue index f659cc4..8002fca 100644 --- a/pages/kind/_slug.vue +++ b/pages/kind/_slug.vue @@ -127,7 +127,7 @@ export default { return `List of ${this.pluralLabel || this.category.label} that work on Apple Silicon?` }, description () { - return `Check the the latest reported support status of ${this.pluralLabel || this.category.label} on Apple Silicon and Apple M1 Pro and M1 Max Processors. ` + return `Check the the latest reported support status of ${this.pluralLabel || this.category.label} on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Processors. ` }, structuredData () { return { @@ -139,7 +139,7 @@ export default { return { // https://schema.org/Question "@type": "Question", - "name": `Does ${app.name} work on Apple Silicon and Apple M1 Pro and M1 Max Macs?`, + "name": `Does ${app.name} work on Apple Silicon and ${ process.env.npm_package_config_verbiage_processors } Macs?`, "acceptedAnswer": { // https://schema.org/Answer "@type": "Answer",