From e3dde02e6f45d19851286498d23d20c69be6d73b Mon Sep 17 00:00:00 2001 From: ruedap Date: Sat, 24 Oct 2020 12:52:58 +0900 Subject: [PATCH 1/2] build(npm): Add release/* npm-scripts --- package.json | 5 ++++- utils/converters/composite.ts | 10 ++++------ utils/converters/icons_to_json.ts | 4 +++- utils/converters/svg_to_png.ts | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 8e8c9dd5..cac5ca2d 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,10 @@ "utils:json": "ts-node ./utils/converters/icons_to_json.ts", "utils:svg2png": "rimraf ./assets/icons && mkdirp ./assets/icons && ts-node ./utils/converters/svg_to_png.ts", "utils:composite": "ts-node ./utils/converters/composite.ts", - "utils:icons": "npm run utils:svg2png && npm run utils:composite" + "utils:icons": "npm run utils:svg2png && npm run utils:composite", + "release:json": "npm run utils:json", + "release:icons": "npm run utils:svg2png && npm run utils:composite", + "release:build": "npm run build:open" }, "repository": { "type": "git", diff --git a/utils/converters/composite.ts b/utils/converters/composite.ts index 776c4106..a08146d7 100644 --- a/utils/converters/composite.ts +++ b/utils/converters/composite.ts @@ -50,15 +50,13 @@ const EXAMPLES = { const main = async () => { const paths = outputPaths; - console.log("start composite"); + console.log("Compositing is progress..."); await composite(paths); - console.log("end composite"); + console.log("Composited successfully."); - console.log("start minify"); + console.log("Minifying is progress..."); await minify(paths); - console.log("end minify"); - - console.log("composite is complete"); + console.log("Minified successfully."); }; main(); diff --git a/utils/converters/icons_to_json.ts b/utils/converters/icons_to_json.ts index 096d3b96..7b9f661c 100644 --- a/utils/converters/icons_to_json.ts +++ b/utils/converters/icons_to_json.ts @@ -68,7 +68,9 @@ const main = () => { const json = JSON.stringify(obj, null, 2); fs.writeFileSync("./assets/icons.json", json); - console.log(`Output assets/icons.json for ${frontMatters.length} icons`); + console.log( + `Outputted assets/icons.json of ${frontMatters.length} icons successfully.` + ); }; main(); diff --git a/utils/converters/svg_to_png.ts b/utils/converters/svg_to_png.ts index 44ef60dd..c58dbd09 100644 --- a/utils/converters/svg_to_png.ts +++ b/utils/converters/svg_to_png.ts @@ -46,8 +46,8 @@ const EXAMPLES = { }; const main = () => { - console.log("start svg2png"); convert(SVGS); + console.log("SVG2PNG successfully."); }; main(); From 65f05b9151b547c526e4219aae6e490e56b5c7da Mon Sep 17 00:00:00 2001 From: ruedap Date: Sat, 24 Oct 2020 13:28:00 +0900 Subject: [PATCH 2/2] chore(release): Bump version to 1.0.0.2 --- assets/info.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/info.plist b/assets/info.plist index e23ce081..ce1d612b 100644 --- a/assets/info.plist +++ b/assets/info.plist @@ -3,9 +3,9 @@ name - Bootstrap Icons 1.0.0.1 + Bootstrap Icons 1.0.0.2 version - 1.0.0.1 + 1.0.0.2 webaddress https://github.com/ruedap/alfred-bootstrap-icons-workflow readme