Skip to content
New issue

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

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

Already on GitHub? # to your account

Based on Bootstrap Icons 1.0.0 #78

Merged
merged 2 commits into from
Oct 24, 2020
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: 2 additions & 2 deletions assets/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>name</key>
<string>Bootstrap Icons 1.0.0.1</string>
<string>Bootstrap Icons 1.0.0.2</string>
<key>version</key>
<string>1.0.0.1</string>
<string>1.0.0.2</string>
<key>webaddress</key>
<string>https://github.com/ruedap/alfred-bootstrap-icons-workflow</string>
<key>readme</key>
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 4 additions & 6 deletions utils/converters/composite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
4 changes: 3 additions & 1 deletion utils/converters/icons_to_json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion utils/converters/svg_to_png.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const EXAMPLES = {
};

const main = () => {
console.log("start svg2png");
convert(SVGS);
console.log("SVG2PNG successfully.");
};

main();