Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dev dependencies, clean up repository, regenerate icons #25

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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