Skip to content

Commit

Permalink
Update SVG sprite generator
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptex committed Sep 1, 2022
1 parent 8216520 commit e159bec
Show file tree
Hide file tree
Showing 11 changed files with 166 additions and 954 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: scriptex
issuehunt: scriptex
otechie: # Replace with a single Otechie username
custom: ['paypal.me/scriptex']
custom: ['paypal.me/scriptex', 'revolut.me/scriptex']
29 changes: 13 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build
18 changes: 0 additions & 18 deletions .nowignore

This file was deleted.

2 changes: 1 addition & 1 deletion data/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"name": "scriptex-socials",
"version": "1.5.1",
"version": "1.6.0",
"description": "A native web component: links to various social media with SVG icons support",
"scripts": {
"svgo": "svgo -f static/images/svg",
"svg-sprite": "spritesh -q -i static/images/svg -o static/sprite.svg -p svg-",
"svg-minify": "html-minifier static/sprite.svg --collapse-whitespace -o static/sprite.svg",
"svg": "sh ./scripts/svg.sh",
"svg": "svg-symbol-sprite -i assets -o data/sprite.svg -p svg-",
"template": "ts-node ./scripts/template.ts",
"readme": "ts-node ./scripts/readme.ts",
"prettier": "prettier --write src/index.ts",
Expand Down Expand Up @@ -35,11 +32,9 @@
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@types/node": "16.11.56",
"html-minifier": "4.0.0",
"@types/node": "18.7.14",
"prettier": "2.7.1",
"spritesh": "1.2.1",
"svgo": "2.8.0",
"svg-symbol-sprite": "1.0.5",
"ts-node": "10.9.1",
"typescript": "4.8.2"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/readme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ts-node-script

import { join } from 'path';
import { readFile, readFileSync, writeFile } from 'fs';
import { readFileSync, writeFile } from 'fs';

type Link = {
url: string;
Expand Down
11 changes: 0 additions & 11 deletions scripts/svg.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions svgo.config.js

This file was deleted.

8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"importHelpers": true,
"noEmitHelpers": true,
"jsx": "react",
"lib": ["dom", "es2020"],
"target": "esNext",
"module": "commonjs",
"moduleResolution": "node",
"lib": ["DOM", "ESNext"],
"target": "ESNext",
"module": "CommonJS",
"moduleResolution": "Node",
"noEmit": false,
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
Expand Down
Loading

1 comment on commit e159bec

@vercel
Copy link

@vercel vercel bot commented on e159bec Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

socials – ./

socials-atanas.vercel.app
socials-liard.vercel.app
socials-git-master-atanas.vercel.app

Please sign in to comment.