From efa89313fa4152252b477aafd88f7cf4a66747d8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Feb 2026 10:19:56 +0000 Subject: Initial Strapi plugin project --- playground/src/admin/app.example.tsx | 37 +++++++++++++++++++++++++++++ playground/src/admin/tsconfig.json | 20 ++++++++++++++++ playground/src/admin/vite.config.example.ts | 12 ++++++++++ 3 files changed, 69 insertions(+) create mode 100644 playground/src/admin/app.example.tsx create mode 100644 playground/src/admin/tsconfig.json create mode 100644 playground/src/admin/vite.config.example.ts (limited to 'playground/src/admin') 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', + }, + }, + }); +}; -- cgit v1.2.3