Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for Tailwind CSS v4.#765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jscarle wants to merge3 commits intovuejs:main
base:main
Choose a base branch
Loading
fromjscarle:feature/add-tailwindcss
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletionsindex.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@ const FEATURE_FLAGS = [
'default',
'ts',
'typescript',
'tailwindcss',
'jsx',
'router',
'vue-router',
Expand All@@ -49,6 +50,10 @@ const FEATURE_OPTIONS = [
value: 'typescript',
label: language.needsTypeScript.message,
},
{
value: 'tailwindcss',
label: language.needsTailwindCss.message,
},
{
value: 'jsx',
label: language.needsJsx.message,
Expand DownExpand Up@@ -170,6 +175,8 @@ Available feature flags:
Create a project with the default configuration without any additional features.
--ts, --typescript
Add TypeScript support.
--tailwindcss
Add Tailwind CSS support.
--jsx
Add JSX support.
--router, --vue-router
Expand DownExpand Up@@ -350,6 +357,7 @@ async function init() {
const { features, experimentFeatures } = result

const needsTypeScript = argv.ts || argv.typescript || features.includes('typescript')
const needsTailwindCss = argv.tailwindcss || features.includes('tailwindcss')
const needsJsx = argv.jsx || features.includes('jsx')
const needsRouter = argv.router || argv['vue-router'] || features.includes('router')
const needsPinia = argv.pinia || features.includes('pinia')
Expand DownExpand Up@@ -400,6 +408,9 @@ async function init() {
if (needsJsx) {
render('config/jsx')
}
if (needsTailwindCss) {
render('config/tailwindcss')
}
if (needsRouter) {
render('config/router')
}
Expand DownExpand Up@@ -519,6 +530,7 @@ async function init() {
// Render code template.
// prettier-ignore
const codeTemplate =
(needsTailwindCss ? 'tailwindcss-' : '') +
(needsTypeScript ? 'typescript-' : '') +
(needsRouter ? 'router' : 'default')
render(`code/${codeTemplate}`)
Expand Down
3 changes: 3 additions & 0 deletionslocales/en-US.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,9 @@
"needsTypeScript": {
"message": "TypeScript"
},
"needsTailwindCss": {
"message": "Tailwind CSS"
},
"needsJsx": {
"message": "JSX Support"
},
Expand Down
3 changes: 3 additions & 0 deletionslocales/fr-FR.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,9 @@
"needsTypeScript": {
"message": "TypeScript"
},
"needsTailwindCss": {
"message": "Tailwind CSS"
},
"needsJsx": {
"message": "Support de JSX"
},
Expand Down
3 changes: 3 additions & 0 deletionslocales/tr-TR.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,9 @@
"needsTypeScript": {
"message": "TypeScript"
},
"needsTailwindCss": {
"message": "Tailwind CSS"
},
"needsJsx": {
"message": "JSX Desteği"
},
Expand Down
3 changes: 3 additions & 0 deletionslocales/zh-Hans.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,9 @@
"needsTypeScript": {
"message": "TypeScript"
},
"needsTailwindCss": {
"message": "Tailwind CSS"
},
"needsJsx": {
"message": "JSX 支持"
},
Expand Down
3 changes: 3 additions & 0 deletionslocales/zh-Hant.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,9 @@
"needsTypeScript": {
"message": "TypeScript"
},
"needsTailwindCss": {
"message": "Tailwind CSS"
},
"needsJsx": {
"message": "JSX 支援"
},
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp