Skip to content

Commit 1681748

Browse files
authored
Merge pull request #25 from aboutbits/upgrade-package
Upgrade dev dependencies, clean up repository, regenerate icons
2 parents 0d0b5d4 + 3d98db3 commit 1681748

33 files changed

+2652
-6351
lines changed

.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Test Package
22

33
on: push
44

5+
concurrency:
6+
group: ${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
test:
711
runs-on: ubuntu-22.04

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
# Project
99
/node_modules
10+
11+
# Build
1012
/dist
13+
*.tsbuildinfo
1114

12-
# ESLint
15+
# Cache
1316
.eslintcache

generator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function generateComponent(icon, family) {
5757

5858
await fs.writeFileSync(
5959
path.join(__dirname, 'src', `${name}.tsx`),
60-
mapSVGToTemplate(name, svg)
60+
mapSVGToTemplate(name, svg),
6161
)
6262
} catch {
6363
process.abort()
@@ -78,7 +78,7 @@ function formatName(string, familyPostfix) {
7878
async function downloadSVG(icon, familyId, version) {
7979
const svg = await axios
8080
.get(
81-
`https://fonts.gstatic.com/s/i/${familyId}/${icon}/v${version}/24px.svg`
81+
`https://fonts.gstatic.com/s/i/${familyId}/${icon}/v${version}/24px.svg`,
8282
)
8383
.catch((err) => console.log(err))
8484

0 commit comments

Comments
 (0)