-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Just a note: I used the normal commands to install the generator
npm install -g generator-adf-widget
And it seems to default to an older version that has a dependency on the gulp-if version that is buggy and will break builds. Took a while to figure out what exactly was broken. Then I realized you have a git tag #3.3 which points to a very recent version of gulp-if. I typed yo, and went through the process of telling it to upgrade this generator through their menu and it told me it was now at generator-adf-widget@3.3.
So for anyone searching, upgrade this generator if it defaults to an old one and your JS is being put in angular $templateCache.
Also, if anyone downloads copies of the adf-widgets, such as iframe or clock, their package.json files also point to the buggy gulp-if @ ^1.2.5. So if you try to fork those, change the gulp-if dependency to something after 2.x so the build of the widget works correctly.