diff options
| author | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
| commit | efa89313fa4152252b477aafd88f7cf4a66747d8 (patch) | |
| tree | 5939b251fe1bbc6bea3881a71154cabd3aa538ec /playground/src/admin | |
| parent | f6de8611955bf382612996500efba21a2d64ea1f (diff) | |
| download | strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.tar.xz strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.zip | |
Initial Strapi plugin project
Diffstat (limited to 'playground/src/admin')
| -rw-r--r-- | playground/src/admin/app.example.tsx | 37 | ||||
| -rw-r--r-- | playground/src/admin/tsconfig.json | 20 | ||||
| -rw-r--r-- | playground/src/admin/vite.config.example.ts | 12 |
3 files changed, 69 insertions, 0 deletions
diff --git a/playground/src/admin/app.example.tsx b/playground/src/admin/app.example.tsx new file mode 100644 index 0000000..3ea4d91 --- /dev/null +++ b/playground/src/admin/app.example.tsx @@ -0,0 +1,37 @@ +import type { StrapiApp } from '@strapi/strapi/admin'; + +export default { + config: { + locales: [ + // 'ar', + // 'fr', + // 'cs', + // 'de', + // 'dk', + // 'es', + // 'he', + // 'id', + // 'it', + // 'ja', + // 'ko', + // 'ms', + // 'nl', + // 'no', + // 'pl', + // 'pt-BR', + // 'pt', + // 'ru', + // 'sk', + // 'sv', + // 'th', + // 'tr', + // 'uk', + // 'vi', + // 'zh-Hans', + // 'zh', + ], + }, + bootstrap(app: StrapiApp) { + console.log(app); + }, +}; diff --git a/playground/src/admin/tsconfig.json b/playground/src/admin/tsconfig.json new file mode 100644 index 0000000..083046e --- /dev/null +++ b/playground/src/admin/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "Bundler", + "useDefineForClassFields": true, + "lib": ["DOM", "DOM.Iterable", "ESNext"], + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "noEmit": true, + "jsx": "react-jsx" + }, + "include": ["../plugins/**/admin/src/**/*", "./"], + "exclude": ["node_modules/", "build/", "dist/", "**/*.test.ts"] +} diff --git a/playground/src/admin/vite.config.example.ts b/playground/src/admin/vite.config.example.ts new file mode 100644 index 0000000..85f6982 --- /dev/null +++ b/playground/src/admin/vite.config.example.ts @@ -0,0 +1,12 @@ +import { mergeConfig, type UserConfig } from 'vite'; + +export default (config: UserConfig) => { + // Important: always return the modified config + return mergeConfig(config, { + resolve: { + alias: { + '@': '/src', + }, + }, + }); +}; |
