From 26f03b8ed8f2a6ed4cd5516ecac53c0b2f54d1f3 Mon Sep 17 00:00:00 2001 From: Ramin Farhadi Date: Wed, 17 Apr 2024 16:23:43 -0400 Subject: [PATCH 1/3] FontAwesome v6-pro npm instruction was added. --- .gitignore | 1 + README.md | 11 ++++++----- template.npmrc | 6 ++++++ 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 template.npmrc diff --git a/.gitignore b/.gitignore index 4df462ff..abdc9301 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ src/components/* gulp-config.json typings .sass-cache/ +.npmrc # debug files npm-debug.log diff --git a/README.md b/README.md index 6f58abdc..f19f9eed 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,9 @@ Note that compiled, minified css and js files are included within the repo. Cha To enable BrowserSync, set `sync` to `true` and assign `syncTarget` the base URL of a site on your local WordPress instance that will use this theme, such as `http://localhost/wordpress/my-site/`. Your `syncTarget` value will vary depending on your local host setup. The full list of modifiable config values can be viewed in `gulpfile.js` (see `config` variable). -4. Run `gulp default` to process front-end assets. -5. If you haven't already done so, create a new WordPress site on your development environment, and [install and activate theme dependencies](#installation-requirements). -6. Set Main Site Theme as the active theme. -7. Make sure you've completed [all theme configuration steps](#configuration). -8. Run `gulp watch` to continuously watch changes to scss and js files. If you enabled BrowserSync in `gulp-config.json`, it will also reload your browser when scss or js files change. +4. Optional: If you'd like to enable Font Awesome 6 Pro, you should copy the code from template.npmrc and paste it into the .npmrc file in the root directory. Then run `npm install --save-optional @fortawesome/fontawesome-pro` in the terminal to install the package in the local node_modules. +5. Run `gulp default` to process front-end assets. +6. If you haven't already done so, create a new WordPress site on your development environment, and [install and activate theme dependencies](#installation-requirements). +7. Set Main Site Theme as the active theme. +8. Make sure you've completed [all theme configuration steps](#configuration). +9. Run `gulp watch` to continuously watch changes to scss and js files. If you enabled BrowserSync in `gulp-config.json`, it will also reload your browser when scss or js files change. diff --git a/template.npmrc b/template.npmrc new file mode 100644 index 00000000..dab3c5ca --- /dev/null +++ b/template.npmrc @@ -0,0 +1,6 @@ +# FontAwesome v6-pro setup instruction. +# Copy the following lines into .npmrc in the root directory, then replace the ${FONTAWESOME_PACKAGE_TOKEN} with your token. + +# @awesome.me:registry=https://npm.fontawesome.com/ +# @fortawesome:registry=https://npm.fontawesome.com/ +# //npm.fontawesome.com/:_authToken=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX From 8e9a3fac0a7d70bf6fb1b642e02c57a210617a78 Mon Sep 17 00:00:00 2001 From: Ramin Farhadi Date: Wed, 17 Apr 2024 16:25:24 -0400 Subject: [PATCH 2/3] fontawesome v6-pro was added as an optional package in package.json file. --- package-lock.json | 4 ++++ package.json | 3 +++ 2 files changed, 7 insertions(+) diff --git a/package-lock.json b/package-lock.json index 42eb4cdb..57e104ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "packages": { "": { "dependencies": { + "@fortawesome/fontawesome-pro": "*", "gulp-cli": "^2.3.0" }, "devDependencies": { @@ -36,6 +37,9 @@ "node-fetch": "^2.6.7", "sass": "^1.49.9", "ucf-athena-framework": "^1.3.0" + }, + "optionalDependencies": { + "@fortawesome/fontawesome-pro": "*" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index de93f227..9eb7ec9c 100644 --- a/package.json +++ b/package.json @@ -35,5 +35,8 @@ ], "dependencies": { "gulp-cli": "^2.3.0" + }, + "optionalDependencies": { + "@fortawesome/fontawesome-pro": "*" } } From fb7edf9cc06c67b3ba59c87650e214a02d8bdf86 Mon Sep 17 00:00:00 2001 From: Ramin Farhadi Date: Wed, 17 Apr 2024 16:27:24 -0400 Subject: [PATCH 3/3] fontawesome-pro was added as an optional dependencie into package.json file. --- package-lock.json | 17 ++++++++++++++++- package.json | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 57e104ad..09cda06a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "ucf-athena-framework": "^1.3.0" }, "optionalDependencies": { - "@fortawesome/fontawesome-pro": "*" + "@fortawesome/fontawesome-pro": "^6.5.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1860,6 +1860,15 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@fortawesome/fontawesome-pro": { + "version": "6.5.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/6.5.2/fontawesome-pro-6.5.2.tgz", + "integrity": "sha512-C12SvO3F42wPWEMM/+r75oAdljD3qv3K5MALPZWfK4I7OEkF+teT9UB3XvpNK+FBOtBkg/BxHTDQJ3MYpbfLYg==", + "optional": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@gulp-sourcemaps/identity-map": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-2.0.1.tgz", @@ -16836,6 +16845,12 @@ "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", "dev": true }, + "@fortawesome/fontawesome-pro": { + "version": "6.5.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/6.5.2/fontawesome-pro-6.5.2.tgz", + "integrity": "sha512-C12SvO3F42wPWEMM/+r75oAdljD3qv3K5MALPZWfK4I7OEkF+teT9UB3XvpNK+FBOtBkg/BxHTDQJ3MYpbfLYg==", + "optional": true + }, "@gulp-sourcemaps/identity-map": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-2.0.1.tgz", diff --git a/package.json b/package.json index 9eb7ec9c..c57eac36 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,6 @@ "gulp-cli": "^2.3.0" }, "optionalDependencies": { - "@fortawesome/fontawesome-pro": "*" + "@fortawesome/fontawesome-pro": "^6.5.2" } }