Skip to content

Commit

Permalink
Merge branch 'release/1.0.x' of github.com:softconstruct/gene-ui-icon…
Browse files Browse the repository at this point in the history
…s into release/1.0.x
  • Loading branch information
Emmagevv committed Dec 19, 2024
2 parents a1f9043 + b30497d commit 3528c1b
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 21 deletions.
2 changes: 1 addition & 1 deletion icons/Email Template.json → icons/EmailTemplate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "Email TemplateMajor",
"id": "EmailTemplateMajor",
"name": "Email Template",
"set": "Major",
"keywords": [
Expand Down
File renamed without changes
123 changes: 107 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@geneui/icons",
"version": "1.0.5",
"version": "1.0.6",
"description": "Gene UI icons distributed as SVG React components.",
"author": "SoftConstruct",
"homepage": "https://github.com/softconstruct/gene-ui-icons#readme",
Expand Down
7 changes: 4 additions & 3 deletions scripts/createIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const askQuestions = (sourceSVGsList = []) => {
const createSvg = async ({ name, svgSrcPath }) => {
try {
const svgSrcCode = await readFile(svgSrcPath, 'utf-8');
await appendFile(`./icons/${name}.svg`, svgSrcCode);
await appendFile(`./icons/${name.replace(/ /g, '')}.svg`, svgSrcCode);
} catch (error) {
return {
hasError: true,
Expand All @@ -133,11 +133,12 @@ const createSvg = async ({ name, svgSrcPath }) => {

const createMetadata = async ({ name, set, keywords, aliases, description, sizes }) => {
try {
const fileName = name.replace(/ /g, '');
await appendFile(
`./icons/${name}.json`,
`./icons/${fileName}.json`,
prettier.format(
JSON.stringify({
id: `${name}${set}`,
id: `${fileName}${set}`,
name,
set,
keywords,
Expand Down

0 comments on commit 3528c1b

Please sign in to comment.