Skip to content

Commit

Permalink
react-docgen is set to run against all jsx and js files, as a result …
Browse files Browse the repository at this point in the history
…jest test files will throw warnings. Add example ignore pattern that will prevent this and give users a starting point to setup their own ignore without having to determine the format / escaping
  • Loading branch information
ryanand26 committed Dec 4, 2021
1 parent 75925fb commit afa5f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_shortname}}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"validate-init": "python _validate_init.py",
"prepublishOnly": "npm run validate-init",
"build:js": "webpack --mode production",
"build:backends": "dash-generate-components ./src/lib/components {{ cookiecutter.project_shortname }} -p package-info.json --r-prefix '{{ cookiecutter.r_prefix }}' --jl-prefix '{{ cookiecutter.jl_prefix }}'",
"build:backends": "dash-generate-components ./src/lib/components {{ cookiecutter.project_shortname }} -p package-info.json --r-prefix '{{ cookiecutter.r_prefix }}' --jl-prefix '{{ cookiecutter.jl_prefix }}' --ignore \\.(test|spec)\\.",
"build:backends-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py_and_r)",
"build": "npm run build:js && npm run build:backends",
"build:activated": "npm run build:js && npm run build:backends-activated"
Expand Down

0 comments on commit afa5f96

Please sign in to comment.