forked from dequelabs/axe-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core/public): Convert to ES modules (dequelabs#2167)
* webpack lib/public * convert lib/public to modules * test: fix cleanupPlugins * test: fix failing tests in configure * test: fix addRepoter failures * fix runRules tests * skip a bunch of tests which mock * update todo note with issue link * updates based on review
- Loading branch information
Showing
18 changed files
with
1,055 additions
and
1,058 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import cleanup from './cleanup'; | ||
import configure from './configure'; | ||
import getRules from './get-rules'; | ||
import load from './load'; | ||
import registerPlugin from './plugins'; | ||
import { hasReporter, getReporter, addReporter } from './reporter'; | ||
import reset from './reset'; | ||
import runRules from './run-rules'; | ||
import runVirtualRule from './run-virtual-rule'; | ||
import run from './run'; | ||
|
||
axe.cleanup = cleanup; | ||
axe.configure = configure; | ||
axe.getRules = getRules; | ||
axe._load = load; | ||
axe.plugins = {}; | ||
axe.registerPlugin = registerPlugin; | ||
axe.hasReporter = hasReporter; | ||
axe.getReporter = getReporter; | ||
axe.addReporter = addReporter; | ||
axe.reset = reset; | ||
axe._runRules = runRules; | ||
axe.runVirtualRule = runVirtualRule; | ||
axe.run = run; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,4 @@ function runRules(context, options, resolve, reject) { | |
}); | ||
} | ||
|
||
axe._runRules = runRules; | ||
export default runRules; |
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
Oops, something went wrong.