@empjs/plugin-tailwindcss3 1.0.1 → 4.0.0-alpha.2
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/dist/index.d.ts +3 -5
- package/dist/index.js +1 -1
- package/package.json +10 -17
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { GlobalStore } from '@empjs/cli';
|
|
1
|
+
import type { GlobalStore } from '@empjs/cli';
|
|
2
2
|
import autoprefixer from 'autoprefixer';
|
|
3
3
|
import tailwindcss from 'tailwindcss';
|
|
4
|
-
|
|
5
|
-
type TailwindConfig = Parameters<typeof tailwindcss>[0];
|
|
4
|
+
export type TailwindConfig = Parameters<typeof tailwindcss>[0];
|
|
6
5
|
declare const _default: (tailwindConfig?: TailwindConfig, options?: autoprefixer.Options) => {
|
|
7
6
|
name: string;
|
|
8
7
|
rsConfig(store: GlobalStore): Promise<void>;
|
|
9
8
|
};
|
|
10
|
-
|
|
11
|
-
export { type TailwindConfig, _default as default };
|
|
9
|
+
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import s from"node:module";let e=s.createRequire(import.meta.url);import t from"autoprefixer";import o from"tailwindcss";export default((s,r)=>({name:"@empjs/plugin-tailwindcss3",async rsConfig(i){let{chain:p}=i,l=Object.assign({},{content:[`${i.appSrc}/**/*.{html,js,ts,jsx,tsx}`]},s);p.module.rule(i.chainName.rule.css).set("type","css").use("postcss").loader(e.resolve("postcss-loader")).options({postcssOptions:{plugins:[o(l),t(r)]},sourceMap:i.isDev})}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/plugin-tailwindcss3",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.2",
|
|
4
4
|
"description": "base tailwind 3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,28 +23,21 @@
|
|
|
23
23
|
"vue",
|
|
24
24
|
"vue2"
|
|
25
25
|
],
|
|
26
|
-
"main": "dist/index.js",
|
|
27
|
-
"types": "dist/index.d.ts",
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
"require": {
|
|
35
|
-
"types": "./dist/index.d.cts",
|
|
36
|
-
"default": "./dist/index.cjs"
|
|
37
|
-
}
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"default": "./dist/index.js"
|
|
38
33
|
}
|
|
39
34
|
},
|
|
40
35
|
"engines": {
|
|
41
|
-
"node": "
|
|
36
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
42
37
|
},
|
|
43
38
|
"author": "Ken",
|
|
44
39
|
"devDependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"tsup": "^8.1.0",
|
|
47
|
-
"@empjs/cli": "3.7.0"
|
|
40
|
+
"@empjs/cli": "4.0.0-alpha.2"
|
|
48
41
|
},
|
|
49
42
|
"dependencies": {
|
|
50
43
|
"autoprefixer": "^10.4.21",
|
|
@@ -53,7 +46,7 @@
|
|
|
53
46
|
"tailwindcss": "^3"
|
|
54
47
|
},
|
|
55
48
|
"scripts": {
|
|
56
|
-
"build": "
|
|
57
|
-
"dev": "
|
|
49
|
+
"build": "rslib build --env-mode production",
|
|
50
|
+
"dev": "rslib build --watch --env-mode development"
|
|
58
51
|
}
|
|
59
52
|
}
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=Object.create;var r=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var x=(s,e)=>{for(var t in e)r(s,t,{get:e[t],enumerable:!0})},a=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of u(e))!d.call(s,o)&&o!==t&&r(s,o,{get:()=>e[o],enumerable:!(i=m(e,o))||i.enumerable});return s};var p=(s,e,t)=>(t=s!=null?c(f(s)):{},a(e||!s||!s.__esModule?r(t,"default",{value:s,enumerable:!0}):t,s)),g=s=>a(r({},"__esModule",{value:!0}),s);var y={};x(y,{default:()=>j});module.exports=g(y);var n=p(require("autoprefixer"),1),l=p(require("tailwindcss"),1),j=(s,e)=>({name:"@empjs/plugin-tailwindcss",async rsConfig(t){let{chain:i}=t,o={content:[`${t.appSrc}/**/*.{html,js,ts,jsx,tsx}`]};s=Object.assign({},o,s),i.module.rule(t.chainName.rule.css).set("type","css").use("postcss").loader(require.resolve("postcss-loader")).options({postcssOptions:{plugins:[(0,l.default)(s),(0,n.default)(e)]},sourceMap:t.isDev})}});
|
package/dist/index.d.cts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GlobalStore } from '@empjs/cli';
|
|
2
|
-
import autoprefixer from 'autoprefixer';
|
|
3
|
-
import tailwindcss from 'tailwindcss';
|
|
4
|
-
|
|
5
|
-
type TailwindConfig = Parameters<typeof tailwindcss>[0];
|
|
6
|
-
declare const _default: (tailwindConfig?: TailwindConfig, options?: autoprefixer.Options) => {
|
|
7
|
-
name: string;
|
|
8
|
-
rsConfig(store: GlobalStore): Promise<void>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { type TailwindConfig, _default as default };
|