From 24fc5a21954fb4d51b52f8c902ab794c52794678 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 5 May 2021 17:05:35 -0700 Subject: [PATCH 1/4] Added test icons --- devicon.json | 20 ++++++++++++++++++++ icons/testicon/testicon-original.svg | 1 + icons/testicon/testicon-plain.svg | 1 + 3 files changed, 22 insertions(+) create mode 100644 icons/testicon/testicon-original.svg create mode 100644 icons/testicon/testicon-plain.svg diff --git a/devicon.json b/devicon.json index 69c44c00c..8f045e261 100644 --- a/devicon.json +++ b/devicon.json @@ -84,6 +84,26 @@ "color": "#16358C", "aliases": [] }, + { + "name": "testicon", + "tags": [ + "architecture", + "programming", + "language", + "ARM" + ], + "versions": { + "svg": [ + "original", + "plain" + ], + "font": [ + "plain" + ] + }, + "color": "#16358C", + "aliases": [] + }, { "name": "angularjs", "tags": [ diff --git a/icons/testicon/testicon-original.svg b/icons/testicon/testicon-original.svg new file mode 100644 index 000000000..66009d4d3 --- /dev/null +++ b/icons/testicon/testicon-original.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/testicon/testicon-plain.svg b/icons/testicon/testicon-plain.svg new file mode 100644 index 000000000..10774d41a --- /dev/null +++ b/icons/testicon/testicon-plain.svg @@ -0,0 +1 @@ + \ No newline at end of file From 58032d950448449791e91c97b4d764109bf7be46 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 5 May 2021 17:18:05 -0700 Subject: [PATCH 2/4] Added logging --- gulpfile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index bdb93ef2e..e24cc5e6f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -178,9 +178,14 @@ function optimizeSvg() { * It will only return icons in '/icons' path (see https://github.com/devicons/devicon/issues/505) */ function getAddedModifiedSvg(filesAddedJson, filesModifiedJson) { + console.log(filesAddedJson) + console.log(filesModifiedJson) const filesAdded = JSON.parse(filesAddedJson), filesModified = JSON.parse(filesModifiedJson) + console.log(filesAdded) + console.log(filesModified) + files = filesAdded.concat(filesModified) return files.filter(filename => { if (path.extname(filename) == ".svg" From 9116e3e5a2ed25ad95b29cd5bcb4cb5fe3bc4aff Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 5 May 2021 17:23:18 -0700 Subject: [PATCH 3/4] Change env variable --- .github/workflows/optimize_svg.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/optimize_svg.yml b/.github/workflows/optimize_svg.yml index 07e23b930..6bf50a0e5 100644 --- a/.github/workflows/optimize_svg.yml +++ b/.github/workflows/optimize_svg.yml @@ -25,8 +25,8 @@ jobs: - name: Run the update_id.py env: - ADDED_FILES: ${{ toJSON(steps.get_added_and_modified_files.outputs.added) }} - MODIFIED_FILES: ${{ toJSON(steps.get_added_and_modified_files.outputs.modified) }} + ADDED_FILES: ${{ steps.get_added_and_modified_files.outputs.added }} + MODIFIED_FILES: ${{ steps.get_added_and_modified_files.outputs.modified }} run: npm run optimize-svg -- --filesAddedJson=$ADDED_FILES --filesModifiedJson=$MODIFIED_FILES - name: Commit the changes From 34fbe7bb0e384c813facb9256d416bcda0c17507 Mon Sep 17 00:00:00 2001 From: Thomas-Boi Date: Thu, 6 May 2021 00:24:27 +0000 Subject: [PATCH 4/4] Optimized the SVGs --- icons/testicon/testicon-original.svg | 2 +- icons/testicon/testicon-plain.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icons/testicon/testicon-original.svg b/icons/testicon/testicon-original.svg index 66009d4d3..67b2b712b 100644 --- a/icons/testicon/testicon-original.svg +++ b/icons/testicon/testicon-original.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/icons/testicon/testicon-plain.svg b/icons/testicon/testicon-plain.svg index 10774d41a..d372581b8 100644 --- a/icons/testicon/testicon-plain.svg +++ b/icons/testicon/testicon-plain.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file