diff --git a/tox.ini b/tox.ini index 92f26b55d9ebd6f5b3db425cab8d151bde0c0c69..7bccb6bf67559b0150b61d36c83f5035ff7856a7 100644 --- a/tox.ini +++ b/tox.ini @@ -24,12 +24,13 @@ setenv = [testenv:lint] commands_pre = - poetry install --only=dev + poetry install yarnpkg --cwd=.dev-js commands = poetry run ruff check {posargs} aleksis/ yarnpkg --cwd=.dev-js run prettier --ignore-path={toxinidir}/.prettierignore {posargs} --check .. - yarnpkg --cwd=.dev-js run eslint ../aleksis/**/*/frontend/**/*.{js,vue} --config={toxinidir}/.eslintrc.js --resolve-plugins-relative-to=. + poetry run aleksis-admin graphql_schema --schema aleksis.core.schema.schema --out .dev-js/schema.json + yarnpkg --cwd=.dev-js run eslint ../aleksis/**/*/frontend/**/*.{js,vue,graphql} --config={toxinidir}/.dev-js/.eslintrc.js [testenv:security] commands_pre = @@ -42,6 +43,8 @@ commands = commands_pre = poetry install poetry run sh -c "cd aleksis; aleksis-admin compilemessages" + poetry run aleksis-admin yarn install + poetry run aleksis-admin compile_scss commands = poetry build [testenv:docs]