liip / TheA11yMachine

The A11y Machine is an automated accessibility testing tool which crawls and tests pages of any web application to produce detailed reports.
https://www.liip.ch/
621 stars 66 forks source link

Have config file #72

Closed bikasv closed 7 years ago

bikasv commented 7 years ago

Hi, There should be an option for config file and reading form it.

Currently, npm script gets too long with all the parameters. Instead we can do the following, package.json will be quite clean

a11y --config config_file.js(json?)

Hywan commented 7 years ago

Not sure to do this right now, but this is not a bad idea. Putting this issue as ready.

bikasv commented 7 years ago

There can be 2 solutions to this -

  1. Use yargs to read js(on) file and then use those object as config.
  2. Provide node interface so that we can write, say, a11y.js and configure everything from there. Then from script we can call node a11y.js.