-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* embed the font icons in the application
- Loading branch information
1 parent
86b9b4d
commit d52203e
Showing
11 changed files
with
23 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@playcanvas/pcui", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"author": "PlayCanvas <[email protected]>", | ||
"homepage": "https://playcanvas.github.io/pcui", | ||
"description": "This library enables the creation of reliable and visually pleasing user interfaces by providing fully styled components that you can use directly on your site. The components are useful in a wide range of use cases, from creating simple forms to building graphical user interfaces for complex web tools.", | ||
|
@@ -17,10 +17,10 @@ | |
}, | ||
"scripts": { | ||
"build": "rollup -c && npm run bundle:styles", | ||
"bundle:styles": "scss-bundle -e ./src/Element/style.scss -o ./dist/pcui.scss", | ||
"bundle:styles": "scss-bundle -e ./src/Element/style.scss -o ./dist/pcui.scss && scss-bundle -e ./src/scss/variables.scss -o ./dist/variables.scss && scss-bundle -e ./src/scss/fonts.scss -o ./dist/fonts.scss", | ||
"watch": "rollup -c -w", | ||
"lint": "eslint --ext .js src", | ||
"clean:css": "node clean-scss.js", | ||
"build:font:icons": "cd ./src/scss/fonts && node ./buildFontIcons.js", | ||
"storybook": "jsdoc -r -X src > ./.storybook/utils/jsdoc-ast.json && start-storybook -p 9009 -s public", | ||
"docs:local": "cd docs && bundle exec jekyll build --config _config_local.yml && mkdir _site/storybook && cd .. && ENVIRONMENT=production build-storybook --no-dll -o ./docs/_site/storybook", | ||
"docs:build": "cd docs && bundle exec jekyll build --config _config.yml && mkdir _site/storybook && cd .. && ENVIRONMENT=production build-storybook --no-dll -o ./docs/_site/storybook", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const fs = require('fs'); | ||
|
||
const file = fs.readFileSync('./PlayIcons-Regular.woff'); | ||
const b64FontString = file.toString('base64'); | ||
const style = `$playIconsRegularWoff: url(data:application/font-woff;charset=utf-7;base64,${b64FontString}) format('woff');`; | ||
fs.writeFileSync('./PlayIcons-Regular-woff.scss', style); |
This file was deleted.
Oops, something went wrong.