kuzzmi / ember-cli-webfontloader Goto Github PK
View Code? Open in Web Editor NEWWebFontLoader wrapped in Ember CLI addon
License: MIT License
WebFontLoader wrapped in Ember CLI addon
License: MIT License
The current ember-cli-fastboot
releases (1.0.0-rc.1 and above) introduce breaking changes. These will most likely break your current FastBoot implementation.
See ember-fastboot/ember-cli-fastboot#387 for more information and a guide on how to fix your addon. Also you may want to visit the -fastboot
Slack channel to get help from other users.
Note: this issue has been created automatically, by searching for certain patterns in your code. If you think this has been falsely created, feel free to close!
Hi,
not sure if I broke something with FastBoot compatibility, but installing v0.3.0
results in missing index.js
in root directory.
Thanks!
After having installed ember-cli-webfontloader in our app, the CI build breaks on the following line in the addon:
Unexpected token (
.../node_modules/ember-cli-webfontloader/index.js:7
included(app) {
^
I checked that ember-cli-webfontloader
has ember-cli-babel
as a dependency so I'm not sure if this is a problem in ember-cli-webfontloader
itself but after a 5-min research I haven't seen another Ember addon that uses the ES6 syntax in its index.js
so I'm not sure. FWIW, the tests pass locally.
Currently one of the tests is failing:
not ok 8 PhantomJS 2.1 - TestLoader Failures: dummy/tests/unit/initializers/ember-cli-webfontloader-test: could not be loaded
---
actual: >
null
message: >
Died on test #1 moduleLoadFailure@http://localhost:7357/assets/test-support.js:6250:15
require@http://localhost:7357/assets/test-loader.js:31:31
loadModules@http://localhost:7357/assets/test-loader.js:21:25
load@http://localhost:7357/assets/test-loader.js:40:35
http://localhost:7357/assets/test-support.js:6259:20: Could not find module `dummy/initializers/ember-cli-webfontloader` imported from `dummy/tests/unit/initializers/ember-cli-webfontloader-test`
Dependencies must be up-to-date and package.json
reflect supported versions of node.
Currently this addon doesn't work with new Fastboot as it changed the way the loading/detection is working:
https://github.com/ember-fastboot/ember-cli-fastboot/#build-hooks-for-fastboot
https://gist.github.com/kratiahuja/d22de0fb1660cf0ef58f07a6bcbf1a1c
Original webfontloader library is 1.6.26 now and must be updated here.
Roboto Mono is currently loaded by default because ember-cli merges config/environment.js
.
It can only be overwritten if the user is using a Google font.
Hi Kuzzmi,
I tried using your addon today. But I couldn't get events to fire. Eventually I figured out it had to do with a Fonts.com specific issue which has to do with the Web Font Loader version. (typekit/webfontloader#331)
Could you update your Web Font Loader version to v1.6.27?
Best,
Harm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.