Skip to content

Commit

Permalink
Merge pull request #25 from aboutbits/upgrade-package
Browse files Browse the repository at this point in the history
Upgrade dev dependencies, clean up repository, regenerate icons
  • Loading branch information
alexlanz authored Mar 25, 2024
2 parents 0d0b5d4 + 3d98db3 commit 1681748
Show file tree
Hide file tree
Showing 33 changed files with 2,652 additions and 6,351 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Test Package

on: push

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-22.04
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

# Project
/node_modules

# Build
/dist
*.tsbuildinfo

# ESLint
# Cache
.eslintcache
4 changes: 2 additions & 2 deletions generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function generateComponent(icon, family) {

await fs.writeFileSync(
path.join(__dirname, 'src', `${name}.tsx`),
mapSVGToTemplate(name, svg)
mapSVGToTemplate(name, svg),
)
} catch {
process.abort()
Expand All @@ -78,7 +78,7 @@ function formatName(string, familyPostfix) {
async function downloadSVG(icon, familyId, version) {
const svg = await axios
.get(
`https://fonts.gstatic.com/s/i/${familyId}/${icon}/v${version}/24px.svg`
`https://fonts.gstatic.com/s/i/${familyId}/${icon}/v${version}/24px.svg`,
)
.catch((err) => console.log(err))

Expand Down
Loading

0 comments on commit 1681748

Please sign in to comment.