-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(webfont): bring back all, outlined variant of webfont
#1511
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ | |
| "build": "pnpm run copy && pnpm run build:prepare && pnpm run build:webfont && pnpm run build:css", | ||
| "build:prepare": "mkdir -p icons-outlined dist && rm -fdr dist/*", | ||
| "build:webfont": "rm -fd dist/fonts/* && node .build/build-webfont.mjs", | ||
| "build:css": "pnpm run build:css:outline && pnpm run build:css:filled", | ||
| "build:css": "pnpm run build:css:outline && pnpm run build:css:filled && pnpm run build:css:all", | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added the CSS generation for the all variant, as it was missing (but presented as an independent build script). |
||
| "build:css:filled": "sass dist/tabler-icons-filled.scss dist/tabler-icons-filled.css --style expanded && sass dist/tabler-icons-filled.scss dist/tabler-icons-filled.min.css --style compressed", | ||
| "build:css:outline": "sass dist/tabler-icons.scss dist/tabler-icons.css --style expanded --no-source-map && sass dist/tabler-icons.scss dist/tabler-icons.min.css --style compressed --no-source-map && sass dist/tabler-icons-200.scss dist/tabler-icons-200.css --style expanded --no-source-map && sass dist/tabler-icons-200.scss dist/tabler-icons-200.min.css --style compressed --no-source-map && sass dist/tabler-icons-300.scss dist/tabler-icons-300.css --style expanded --no-source-map && sass dist/tabler-icons-300.scss dist/tabler-icons-300.min.css --style compressed --no-source-map", | ||
| "build:css:all": "sass dist/tabler-icons.scss dist/tabler-icons.css --style expanded --no-source-map && sass dist/tabler-icons.scss dist/tabler-icons.min.css --style compressed --no-source-map && sass dist/tabler-icons-200.scss dist/tabler-icons-200.css --style expanded --no-source-map && sass dist/tabler-icons-200.scss dist/tabler-icons-200.min.css --style compressed --no-source-map && sass dist/tabler-icons-300.scss dist/tabler-icons-300.css --style expanded --no-source-map && sass dist/tabler-icons-300.scss dist/tabler-icons-300.min.css --style compressed --no-source-map", | ||
|
|
@@ -42,23 +42,19 @@ | |
| "front-end", | ||
| "web" | ||
| ], | ||
| "dependencies": { | ||
| "@tabler/icons": "workspace:", | ||
| "svg-path-commander": "^2.1.11", | ||
| "svgtofont": "^6.5.0" | ||
| }, | ||
|
Comment on lines
-45
to
-49
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These dependencies are only needed at build time, so I moved them to devDependencies. |
||
| "devDependencies": { | ||
| "@napi-rs/canvas": "^0.1.88", | ||
| "canvas": "^3.2.0", | ||
| "eta": "^3.4.0", | ||
| "glob": "^13.0.0", | ||
| "paper-jsdom": "^0.12.18", | ||
| "sass": "^1.97.3", | ||
| "svg-path-commander": "^2.1.11", | ||
| "svg-path-outline": "^1.0.1", | ||
| "svg2ttf": "^6.0.3", | ||
| "svgicons2svgfont": "^15.0.1", | ||
| "svgtofont": "^6.5.0", | ||
| "ttf2woff": "^3.0.0", | ||
| "wawoff2": "^2.0.1" | ||
| }, | ||
| "peerDependencies": {}, | ||
| "optionalDependencies": {} | ||
| } | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the
filledvariant is required to generate theallvariant, I've changed the code to build thefilledfirst.