@empjs/plugin-tailwindcss2 1.0.0 → 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 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
- var t=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(i,s)=>(typeof require<"u"?require:i)[s]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import r from"autoprefixer";import a from"tailwindcss";var m=(e,i)=>({name:"@empjs/plugin-tailwindcss2",async rsConfig(s){let{chain:o}=s,p={purge:[`${s.appSrc}/**/*.{html,js,ts,jsx,tsx}`],darkMode:!1,theme:{extend:{}},variants:{extend:{}},plugins:[]};e=s.deepAssign(p,e),o.module.rule(s.chainName.rule.css).set("type","css").use("postcss").loader(t.resolve("postcss-loader")).options({postcssOptions:{plugins:[a(e),r(i)]},sourceMap:s.isDev})}});export{m as default};
1
+ import e from"node:module";let s=e.createRequire(import.meta.url);import t from"autoprefixer";import o from"tailwindcss";export default((e,r)=>({name:"@empjs/plugin-tailwindcss2",async rsConfig(p){let{chain:i}=p,a={purge:[`${p.appSrc}/**/*.{html,js,ts,jsx,tsx}`],darkMode:!1,theme:{extend:{}},variants:{extend:{}},plugins:[]},l=p.deepAssign(a,e);i.module.rule(p.chainName.rule.css).set("type","css").use("postcss").loader(s.resolve("postcss-loader")).options({postcssOptions:{plugins:[o(l),t(r)]},sourceMap:p.isDev})}}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empjs/plugin-tailwindcss2",
3
- "version": "1.0.0",
3
+ "version": "4.0.0-alpha.2",
4
4
  "description": "base tailwind 2",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,29 +23,22 @@
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
- "import": {
31
- "types": "./dist/index.d.ts",
32
- "default": "./dist/index.js"
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": ">=16.0.0"
36
+ "node": "^20.19.0 || >=22.12.0"
42
37
  },
43
38
  "author": "Ken",
44
39
  "devDependencies": {
45
- "@types/node": "^22.13.11",
46
40
  "@types/tailwindcss": "^2.2.4",
47
- "tsup": "^8.1.0",
48
- "@empjs/cli": "3.8.3"
41
+ "@empjs/cli": "4.0.0-alpha.2"
49
42
  },
50
43
  "dependencies": {
51
44
  "autoprefixer": "^10.4.21",
@@ -54,7 +47,7 @@
54
47
  "tailwindcss": "2.2.19"
55
48
  },
56
49
  "scripts": {
57
- "build": "tsup",
58
- "dev": "tsup --watch"
50
+ "build": "rslib build --env-mode production",
51
+ "dev": "rslib build --watch --env-mode development"
59
52
  }
60
53
  }
package/dist/index.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";var c=Object.create;var p=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var g=(e,i)=>{for(var s in i)p(e,s,{get:i[s],enumerable:!0})},a=(e,i,s,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let t of m(i))!f.call(e,t)&&t!==s&&p(e,t,{get:()=>i[t],enumerable:!(o=u(i,t))||o.enumerable});return e};var r=(e,i,s)=>(s=e!=null?c(d(e)):{},a(i||!e||!e.__esModule?p(s,"default",{value:e,enumerable:!0}):s,e)),x=e=>a(p({},"__esModule",{value:!0}),e);var y={};g(y,{default:()=>w});module.exports=x(y);var n=r(require("autoprefixer"),1),l=r(require("tailwindcss"),1),w=(e,i)=>({name:"@empjs/plugin-tailwindcss2",async rsConfig(s){let{chain:o}=s,t={purge:[`${s.appSrc}/**/*.{html,js,ts,jsx,tsx}`],darkMode:!1,theme:{extend:{}},variants:{extend:{}},plugins:[]};e=s.deepAssign(t,e),o.module.rule(s.chainName.rule.css).set("type","css").use("postcss").loader(require.resolve("postcss-loader")).options({postcssOptions:{plugins:[(0,l.default)(e),(0,n.default)(i)]},sourceMap:s.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 };