Skip to content

Commit

Permalink
Improve tsconfig.json, add Makefile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Jun 17, 2024
1 parent 37aa114 commit ec438f5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
9 changes: 9 additions & 0 deletions frontend_addon/{{ cookiecutter.__folder_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ start: ## Starts Volto, allowing reloading of the add-on during development
build: ## Build a production bundle for distribution of the project with the add-on
pnpm build

core/packages/registry/dist: core/packages/registry/src
pnpm --filter @plone/registry build

core/packages/components/dist: core/packages/components/src
pnpm --filter @plone/components build

.PHONY: build-deps
build-deps: core/packages/registry/dist core/packages/components/dist ## Build dependencies

.PHONY: i18n
i18n: ## Sync i18n
pnpm --filter $(ADDON_NAME) i18n
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "commonjs",
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"strictPropertyInitialization": false,
"moduleResolution": "Node",
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,
"module": "preserve",
"noEmit": true,
"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx",
"paths": {
"@plone/volto/*": ["../../core/packages/volto/src/*"]
}
},
"include": ["src", "src/**/*.js"],
"include": ["**/*.ts", "**/*.tsx"],
"exclude": [
"node_modules",
"build",
"public",
"coverage",
"src/**/*.test.{js,jsx,ts,tsx}",
"src/**/*.spec.{js,jsx,ts,tsx}",
"src/**/*.stories.{js,jsx,ts,tsx}"
"**/*.test.{js,jsx,ts,tsx}",
"**/*.spec.{js,jsx,ts,tsx}",
"**/*.stories.{js,jsx,ts,tsx}"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ start: ## Starts Volto, allowing reloading of the add-on during development
build: ## Build a production bundle for distribution of the project with the add-on
pnpm build

core/packages/registry/dist: core/packages/registry/src
pnpm --filter @plone/registry build

core/packages/components/dist: core/packages/components/src
pnpm --filter @plone/components build

.PHONY: build-deps
build-deps: core/packages/registry/dist core/packages/components/dist ## Build dependencies

.PHONY: format
format: ## Format codebase
pnpm lint:fix
Expand Down

0 comments on commit ec438f5

Please sign in to comment.