{"id":13805863,"url":"https://github.com/vitch/ember-cli-webfont","last_synced_at":"2025-05-01T10:13:05.637Z","repository":{"id":34203885,"uuid":"38060182","full_name":"vitch/ember-cli-webfont","owner":"vitch","description":"Easily generate webfonts from svg files as part of your ember-cli build process","archived":false,"fork":false,"pushed_at":"2021-06-01T06:24:01.000Z","size":117,"stargazers_count":21,"open_issues_count":1,"forks_count":12,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-01T10:12:59.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vitch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-25T16:17:41.000Z","updated_at":"2019-12-21T21:50:10.000Z","dependencies_parsed_at":"2022-08-30T02:10:29.635Z","dependency_job_id":null,"html_url":"https://github.com/vitch/ember-cli-webfont","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitch%2Fember-cli-webfont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitch%2Fember-cli-webfont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitch%2Fember-cli-webfont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitch%2Fember-cli-webfont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitch","download_url":"https://codeload.github.com/vitch/ember-cli-webfont/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251857021,"owners_count":21655121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:01:05.724Z","updated_at":"2025-05-01T10:13:05.607Z","avatar_url":"https://github.com/vitch.png","language":"JavaScript","readme":"# ember-cli-webfont\n\nThis addon wraps [webfonts-generator](https://github.com/sunflowerdeath/webfonts-generator) to allow you to easily generate webfonts as part of your ember build process.\n\n## Installation\n\n```js\nember install ember-cli-webfont\n```\n\n## Usage\n\nBy default the addon expects to find your SVG files in `app/webfont-svg` and will add CSS classes to your generated CSS.\n\nTo use the icons you just need to give an element these classes e.g.\n\n```html\n\u003cspan class=\"iconfont iconfont-ember\"\u003e\u003c/span\u003e\n```\n\nWill display the SVG from `app/webfont-svg/ember.svg` (with the default values for `path`, `classPrefix` and `baseSelector` - see below).\n\n## Configuration\n\nYou can configure the behaviour of the addon by passing a hash of options when initialising your ember app. The names of parameters and default options are shown below:\n\n```js\nvar app = new EmberApp({\n  webfont: {\n    path: 'app/webfont-svg/',\n    options: {\n      files: ['**/*.svg'],\n      dest: 'assets/webfonts/',\n      fontName: 'iconfont',\n      cssDest: 'temp/ember-cli-webfont.css',\n      cssFontsUrl: 'webfonts/',\n      cssTemplate: webfont.templates.css,\n      templateOptions: {\n        classPrefix: 'iconfont-',\n        baseSelector: '.iconfont'\n      }\n    }\n  }\n});\n```\n\nDocumentation on these options can be found on the [webfonts-generator](https://github.com/sunflowerdeath/webfonts-generator#list-of-options) repository.\n\nAdditionally the `cssDest` option can go through some extra processing.\nIf left out, the default value is `temp/ember-cli-webfont.css` and the resulting file will be imported into `vendor.css` automatically.\nOtherwise it has to be imported manually. The latter is useful when using `Sass`, `LESS`, or other CSS preprocessors.\n\n# Developing addon\n\n## Installation\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n## Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n## Running Tests\n\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n","funding_links":[],"categories":["Packages"],"sub_categories":["Fonts"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitch%2Fember-cli-webfont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitch%2Fember-cli-webfont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitch%2Fember-cli-webfont/lists"}