From 04ee80f5219e27bcba73bc4b28cb25eb7b78b2ff Mon Sep 17 00:00:00 2001 From: Dmitry Nischeta Date: Tue, 3 Dec 2024 20:27:39 +0700 Subject: [PATCH 1/2] Add vue.js template into create-mini-app --- apps/docs/packages/telegram-apps-create-mini-app.md | 2 +- packages/create-mini-app/src/prompts/promptTemplate/sections.ts | 1 + packages/create-mini-app/src/templates.ts | 1 + packages/create-mini-app/src/types.ts | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/docs/packages/telegram-apps-create-mini-app.md b/apps/docs/packages/telegram-apps-create-mini-app.md index 5f55688d4..9de2cdf0c 100644 --- a/apps/docs/packages/telegram-apps-create-mini-app.md +++ b/apps/docs/packages/telegram-apps-create-mini-app.md @@ -49,7 +49,7 @@ your application by sequentially prompting for the following information: |----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **Language** | Choose between **TypeScript** or **JavaScript**. | | **SDK** | **• tma.js** [@telegram-apps/sdk](https://www.npmjs.com/package/@telegram-apps/sdk)
A TypeScript library for seamless communication with Telegram Mini Apps functionality.
**• Telegram SDK** [@twa-dev/sdk](https://www.npmjs.com/package/@twa-dev/sdk)
This package allows you to work with the SDK as an npm package. | -| **Frameworks** | **• React.js** [template](https://github.com/Telegram-Mini-Apps/reactjs-template)
**• Next.js** [template](https://github.com/Telegram-Mini-Apps/nextjs-template)
**• Solid.js** [template](https://github.com/Telegram-Mini-Apps/solidjs-js-template)
| +| **Frameworks** | **• React.js** [template](https://github.com/Telegram-Mini-Apps/reactjs-template)
**• Next.js** [template](https://github.com/Telegram-Mini-Apps/nextjs-template)
**• Solid.js** [template](https://github.com/Telegram-Mini-Apps/solidjs-js-template)
**• Vue.js** [template](https://github.com/Telegram-Mini-Apps/vuejs-template)
| ### 3. Git Remote Repository URL (Optional) diff --git a/packages/create-mini-app/src/prompts/promptTemplate/sections.ts b/packages/create-mini-app/src/prompts/promptTemplate/sections.ts index f3e9df9fd..678fa38e2 100644 --- a/packages/create-mini-app/src/prompts/promptTemplate/sections.ts +++ b/packages/create-mini-app/src/prompts/promptTemplate/sections.ts @@ -26,6 +26,7 @@ export const sections: Section[] = [ { title: 'Solid.js', value: 'solid' }, { title: 'Next.js', value: 'next' }, { title: 'jQuery', value: 'jquery' }, + { title: 'Vue.js', value: 'vue' }, { title: 'None', value: 'none' }, ], }, diff --git a/packages/create-mini-app/src/templates.ts b/packages/create-mini-app/src/templates.ts index cd83b280a..fb08cb44b 100644 --- a/packages/create-mini-app/src/templates.ts +++ b/packages/create-mini-app/src/templates.ts @@ -33,6 +33,7 @@ const settings = { solid: 'solidjs-template', next: 'nextjs-template', jquery: 'typescript-template', + vue: 'vuejs-template', }, tsdk: { react: 'reactjs-tsdk-template', diff --git a/packages/create-mini-app/src/types.ts b/packages/create-mini-app/src/types.ts index af205cdd4..4dac95c2f 100644 --- a/packages/create-mini-app/src/types.ts +++ b/packages/create-mini-app/src/types.ts @@ -15,4 +15,4 @@ export interface Template { export type Language = 'js' | 'ts'; export type SDK = 'tsdk' | 'telegramApps'; -export type Framework = 'solid' | 'react' | 'next' | 'jquery' | 'none'; +export type Framework = 'solid' | 'react' | 'next' | 'jquery' | 'vue' | 'none'; From b73bccff84b02c7b1a0ef0ee028b61861a4ed698 Mon Sep 17 00:00:00 2001 From: Vladislav Kibenko <34907325+heyqbnk@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:21:13 +0500 Subject: [PATCH 2/2] Create rare-eels-shave.md --- .changeset/rare-eels-shave.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/rare-eels-shave.md diff --git a/.changeset/rare-eels-shave.md b/.changeset/rare-eels-shave.md new file mode 100644 index 000000000..27e107c90 --- /dev/null +++ b/.changeset/rare-eels-shave.md @@ -0,0 +1,5 @@ +--- +"@telegram-apps/create-mini-app": minor +--- + +Add vue.js template.