From acae7b75626fb864fd26cfcab445a332ae9b3a87 Mon Sep 17 00:00:00 2001 From: Doug Gibson Date: Fri, 17 Feb 2023 15:29:17 -0500 Subject: [PATCH 1/3] Removed font awesome 6 from dependencies and build --- packages/styles/package.json | 1 - packages/styles/vite.config.js | 13 ++----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/styles/package.json b/packages/styles/package.json index 32bbba10..25739f00 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -18,7 +18,6 @@ }, "devDependencies": { "@babel/core": "^7.20.12", - "@fortawesome/fontawesome-free": "^6.3.0", "@storybook/addon-actions": "^6.5.16", "@storybook/addon-essentials": "^6.5.16", "@storybook/addon-interactions": "^6.5.16", diff --git a/packages/styles/vite.config.js b/packages/styles/vite.config.js index 50e5c1f0..4166f141 100644 --- a/packages/styles/vite.config.js +++ b/packages/styles/vite.config.js @@ -1,7 +1,7 @@ // vite.config.js import { resolve } from 'path' import { defineConfig, normalizePath } from 'vite' -import { viteStaticCopy } from 'vite-plugin-static-copy' +//import { viteStaticCopy } from 'vite-plugin-static-copy' export default defineConfig({ server: { @@ -10,16 +10,7 @@ export default defineConfig({ preview: { port: 8080, }, - plugins: [ - viteStaticCopy({ - targets: [ - { - src: '../../node_modules/@fortawesome/fontawesome-free/svgs/*', - dest: 'assets/icons' - } - ] - }) - ], + plugins: [], build: { lib: { // Could also be a dictionary or array of multiple entry points From 3a69cfcd592cd2921296b8948d11de85555efc5f Mon Sep 17 00:00:00 2001 From: Doug Gibson Date: Fri, 17 Feb 2023 15:40:05 -0500 Subject: [PATCH 2/3] Removed vite static plugin from package.json and re-ran npm install to update package-lock.json after removing packages. --- package-lock.json | 18 ------------------ packages/styles/vite.config.js | 1 - 2 files changed, 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8b3eaa93..16755da9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2533,16 +2533,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@fortawesome/fontawesome-free": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.3.0.tgz", - "integrity": "sha512-qVtd5i1Cc7cdrqnTWqTObKQHjPWAiRwjUPaXObaeNPcy7+WKxJumGBx66rfSFgK6LNpIasVKkEgW8oyf0tmPLA==", - "dev": true, - "hasInstallScript": true, - "engines": { - "node": ">=6" - } - }, "node_modules/@gar/promisify": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", @@ -20765,7 +20755,6 @@ "license": "CC0-1.0", "devDependencies": { "@babel/core": "^7.20.12", - "@fortawesome/fontawesome-free": "^6.3.0", "@storybook/addon-actions": "^6.5.16", "@storybook/addon-essentials": "^6.5.16", "@storybook/addon-interactions": "^6.5.16", @@ -22177,7 +22166,6 @@ "version": "file:packages/styles", "requires": { "@babel/core": "^7.20.12", - "@fortawesome/fontawesome-free": "^6.3.0", "@storybook/addon-actions": "^6.5.16", "@storybook/addon-essentials": "^6.5.16", "@storybook/addon-interactions": "^6.5.16", @@ -22484,12 +22472,6 @@ "strip-json-comments": "^3.1.1" } }, - "@fortawesome/fontawesome-free": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.3.0.tgz", - "integrity": "sha512-qVtd5i1Cc7cdrqnTWqTObKQHjPWAiRwjUPaXObaeNPcy7+WKxJumGBx66rfSFgK6LNpIasVKkEgW8oyf0tmPLA==", - "dev": true - }, "@gar/promisify": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", diff --git a/packages/styles/vite.config.js b/packages/styles/vite.config.js index 4166f141..f2b53a93 100644 --- a/packages/styles/vite.config.js +++ b/packages/styles/vite.config.js @@ -1,7 +1,6 @@ // vite.config.js import { resolve } from 'path' import { defineConfig, normalizePath } from 'vite' -//import { viteStaticCopy } from 'vite-plugin-static-copy' export default defineConfig({ server: { From 7a882df4cde0e79b81974d558b6de33b48c87712 Mon Sep 17 00:00:00 2001 From: Doug Gibson Date: Fri, 17 Feb 2023 15:45:54 -0500 Subject: [PATCH 3/3] removed vite static copy and re-ran npm install --- package-lock.json | 63 ++---------------------------------- packages/styles/package.json | 3 +- 2 files changed, 3 insertions(+), 63 deletions(-) diff --git a/package-lock.json b/package-lock.json index 16755da9..4b98f06f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19551,38 +19551,6 @@ } } }, - "node_modules/vite-plugin-static-copy": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-0.13.0.tgz", - "integrity": "sha512-cln+fvKMgwNBjxQ59QVblmExZrc9gGEdRmfqcPOOGpxT5KInfpkGMvmK4L+kCAeHHSSGNU1bM7BA9PQgaAJc6g==", - "dev": true, - "dependencies": { - "chokidar": "^3.5.3", - "fast-glob": "^3.2.11", - "fs-extra": "^11.1.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "peerDependencies": { - "vite": "^3.0.0 || ^4.0.0" - } - }, - "node_modules/vite-plugin-static-copy/node_modules/fs-extra": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz", - "integrity": "sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, "node_modules/vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", @@ -20768,8 +20736,7 @@ "react-syntax-highlighter": "^15.5.0", "sass": "^1.58.0", "style-dictionary": "^3.7.2", - "vite": "^4.0.0", - "vite-plugin-static-copy": "^0.13.0" + "vite": "^4.0.0" } } }, @@ -22179,8 +22146,7 @@ "react-syntax-highlighter": "^15.5.0", "sass": "^1.58.0", "style-dictionary": "^3.7.2", - "vite": "^4.0.0", - "vite-plugin-static-copy": "^0.13.0" + "vite": "^4.0.0" } }, "@cnakazawa/watch": { @@ -35637,31 +35603,6 @@ "rollup": "^3.7.0" } }, - "vite-plugin-static-copy": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-0.13.0.tgz", - "integrity": "sha512-cln+fvKMgwNBjxQ59QVblmExZrc9gGEdRmfqcPOOGpxT5KInfpkGMvmK4L+kCAeHHSSGNU1bM7BA9PQgaAJc6g==", - "dev": true, - "requires": { - "chokidar": "^3.5.3", - "fast-glob": "^3.2.11", - "fs-extra": "^11.1.0", - "picocolors": "^1.0.0" - }, - "dependencies": { - "fs-extra": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz", - "integrity": "sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - } - } - }, "vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", diff --git a/packages/styles/package.json b/packages/styles/package.json index 25739f00..b42d992d 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -31,8 +31,7 @@ "react-syntax-highlighter": "^15.5.0", "sass": "^1.58.0", "style-dictionary": "^3.7.2", - "vite": "^4.0.0", - "vite-plugin-static-copy": "^0.13.0" + "vite": "^4.0.0" }, "dependencies": {} }