Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Load config from a .js file #124

@martincomito

Description

@martincomito

I´m trying to load the config from an external file to get the --tags and some others flags:

package.json:
"axeconfig": "node axe/index.js"
"accessibility:local": "axe npm run axeconfig -- http://localhost:3000"

axe/index.js is a js file that returns a string like "--timeout=120 --save testlog.json --tags (a list of tags)" . I just want to concatenate this string to the script and run it, but it take the string as another URL argument and ends up testing npm, run and axeconfig as URLs.

How can I execute the axeconfig script and add the string to run axe with parameters?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions