diff --git a/frontend_addon/{{ cookiecutter.__folder_name }}/Makefile b/frontend_addon/{{ cookiecutter.__folder_name }}/Makefile index ec2f718..0ad1a32 100644 --- a/frontend_addon/{{ cookiecutter.__folder_name }}/Makefile +++ b/frontend_addon/{{ cookiecutter.__folder_name }}/Makefile @@ -48,6 +48,10 @@ build: ## Build a production bundle for distribution of the project with the add i18n: ## Sync i18n pnpm --filter $(ADDON_NAME) i18n +.PHONY: ci-i18n +ci-i18n: ## Check if i18n is not synced + pnpm i18n && git diff -G'^[^\"POT]' --exit-code + .PHONY: format format: ## Format codebase pnpm lint:fix @@ -58,7 +62,7 @@ format: ## Format codebase lint: ## Lint, or catch and remove problems, in code base pnpm lint pnpm prettier - pnpm stylelint + pnpm stylelint --allow-empty-input .PHONY: release release: ## Release the add-on on npmjs.org diff --git a/frontend_addon/{{ cookiecutter.__folder_name }}/package.json b/frontend_addon/{{ cookiecutter.__folder_name }}/package.json index a85d9a2..4fa0896 100644 --- a/frontend_addon/{{ cookiecutter.__folder_name }}/package.json +++ b/frontend_addon/{{ cookiecutter.__folder_name }}/package.json @@ -18,7 +18,7 @@ "build": "pnpm build:deps && VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto build", "build:deps": "pnpm --filter @plone/registry --filter @plone/components build", "i18n": "pnpm --filter {{ cookiecutter.npm_package_name }} i18n", - "test": "RAZZLE_JEST_CONFIG=$(pwd)/jest-addon.config.js pnpm --filter @plone/volto test", + "test": "RAZZLE_JEST_CONFIG=$(pwd)/jest-addon.config.js pnpm --filter @plone/volto test -- --passWithNoTests", "lint": "eslint --max-warnings=0 'packages/**/src/**/*.{js,jsx,ts,tsx}'", "lint:fix": "eslint --fix 'packages/**/src/**/*.{js,jsx,ts,tsx}'", "prettier": "prettier --check 'packages/**/src/**/*.{js,jsx,ts,tsx}'",