-
Notifications
You must be signed in to change notification settings - Fork 365
Making the npm module requireable #291
Comments
cc @alice and @addyosmani |
@zeke I just cloned the repo and when I run grunt I've similar warning Warning: ./src/js/AuditResults.js:36: ERROR - variable goog is undeclared
goog.exportSymbol('axs.AuditResults', axs.AuditResults);
^
1 error(s), 0 warning(s)
Use --force to continue. Then I rebuild using --force argument and running the tests; which goes wrong: arning: 307/322 assertions failed (432ms) Used --force, continuing.
Warning: Task "qunit:all" failed. Used --force, continuing |
Sorry for taking a while to get back to this (it didn't show up in my GH notifications). The above errors you are getting sound like closure compiler errors. I have a feeling something slipped when the last build in https://github.com/GoogleChrome/accessibility-developer-tools/tree/master/dist/js was generated and that's probably the first place we'll want to take a look at fixing. Are you still actively exploring adding in support for this module? |
@addyosmani yes. We are using it on some Electron projects and would love to be able to require this module instead of vendoring an unversioned ax.js file |
+1 |
👋 Howdy! I ran into this problem as well and created a fix at #298. The Hope that helps! |
Thanks to @philschatz this should now be possible in master. Could folks that wanted this test out the latest version and let us know if you run into any trouble at all require'ing the module? |
Thanks @philschatz and @addyosmani for making this happen! WIP update for Spectron: electron-userland/spectron#126 |
👋
I'm working with @jlord and @kevinsawicki to incorporate accessibility audits into spectron and devtron, two development and testing tools for electron.
I see that this package is published to npm, but when I try to
require
it, I get errors:Is this the expected behavior? What would it take to make the module work with
require
?The text was updated successfully, but these errors were encountered: