create-fesd-app 1.0.0-bate.99 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fesd-app",
3
- "version": "1.0.0-bate.99",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -22,9 +22,12 @@
22
22
  ".gitignore"
23
23
  ],
24
24
  "dependencies": {
25
+ "@tailwindcss/postcss": "^4.1.10",
26
+ "@tailwindcss/vite": "^4.1.10",
25
27
  "@xwadex/fesd": "0.0.15",
26
28
  "ansi-colors": "^4.1.3",
27
29
  "chalk": "^5.3.0",
30
+ "clsx": "^2.1.1",
28
31
  "colorthief": "^2.4.0",
29
32
  "commander": "^12.1.0",
30
33
  "flatpickr": "^4.6.13",
@@ -35,6 +38,8 @@
35
38
  "overlayscrollbars": "^2.7.3",
36
39
  "swiperv11": "npm:swiper@11.1.3",
37
40
  "swiperv8": "npm:swiper@8.4.7",
41
+ "tailwind-merge": "^3.3.1",
42
+ "tailwindcss": "^4.1.10",
38
43
  "terser": "^5.30.4",
39
44
  "tua-body-scroll-lock": "1.4.0",
40
45
  "validator": "^13.11.0",
@@ -0,0 +1 @@
1
+ @import "tailwindcss";
@@ -21,7 +21,7 @@ import {
21
21
  // flatpickr
22
22
  import { Mandarin } from "flatpickr/dist/l10n/zh.js"
23
23
  // swiper
24
- import { SwiperVer11 } from "@/plugins";
24
+ import { SwiperVer11, cn } from "@/plugins";
25
25
  import { bannerConfig } from "@/configs"
26
26
 
27
27
  // swiper
@@ -38,7 +38,7 @@ swiperHandler.banner = function () {
38
38
  isVideo(swiper);
39
39
  },
40
40
  };
41
- const banner = new SwiperV11('.swiper', bannerEvents );
41
+ const banner = new SwiperV11('.swiper', bannerEvents);
42
42
  };
43
43
 
44
44
  swiperHandler.all = function () {
@@ -163,6 +163,8 @@ const test = () => {
163
163
  methods.toBackend({ test });
164
164
 
165
165
  $(async () => {
166
+
167
+ console.log(cn("px-3 px-5 px-6"));
166
168
  // common Init
167
169
  common.inits()
168
170
  // plugins Init
@@ -1,4 +1,5 @@
1
1
  export * as SwiperVer8 from "./swiperV8.plugin"
2
2
  export * as SwiperVer11 from "./swiperV11.plugin"
3
3
  export { default as gsap } from "./gsap.plugin"
4
- export * from "./lazyLoad.plugin"
4
+ export * from "./lazyLoad.plugin"
5
+ export * from "./tailwind.plugin"
@@ -0,0 +1,6 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+
4
+ export function cn(...inputs) {
5
+ return twMerge(clsx(...inputs));
6
+ }
@@ -19,6 +19,7 @@ html(lang="zh-Hant-TW" data-overlayscrollbars-initialize)
19
19
  // 共用樣式
20
20
  link(rel="stylesheet", href="/assets/fonts/icomoon/style.css")
21
21
  link(rel="stylesheet", href="/src/assets/css/style.sass")
22
+ link(rel="stylesheet", href="/src/assets/css/tailwind.css")
22
23
  // 個別頁面 CSS
23
24
  block stylesheet
24
25
  // 主頁面 CSS
package/vite.config.js CHANGED
@@ -6,6 +6,7 @@ import pug from '@vituum/vite-plugin-pug';
6
6
  import { defineConfig } from 'vite'
7
7
  import inject from '@rollup/plugin-inject';
8
8
  import viteCompression from 'vite-plugin-compression';
9
+ import tailwindcss from '@tailwindcss/vite';
9
10
 
10
11
  export default defineConfig({
11
12
  esbuild: {
@@ -21,6 +22,7 @@ export default defineConfig({
21
22
  },
22
23
  },
23
24
  plugins: [
25
+ tailwindcss(),
24
26
  vituum(),
25
27
  pug(),
26
28
  pages({