@konomi-app/k2 1.10.0 → 1.11.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.
Files changed (157) hide show
  1. package/package.json +1 -1
  2. package/dist/commands/build-base.d.ts +0 -6
  3. package/dist/commands/build-base.d.ts.map +0 -1
  4. package/dist/commands/build-base.js +0 -7
  5. package/dist/commands/build-base.js.map +0 -1
  6. package/dist/commands/build-esbuild.d.ts +0 -7
  7. package/dist/commands/build-esbuild.d.ts.map +0 -1
  8. package/dist/commands/build-esbuild.js +0 -63
  9. package/dist/commands/build-esbuild.js.map +0 -1
  10. package/dist/commands/build-tailwind.d.ts +0 -2
  11. package/dist/commands/build-tailwind.d.ts.map +0 -1
  12. package/dist/commands/build-tailwind.js +0 -18
  13. package/dist/commands/build-tailwind.js.map +0 -1
  14. package/dist/commands/build.d.ts +0 -7
  15. package/dist/commands/build.d.ts.map +0 -1
  16. package/dist/commands/build.js +0 -52
  17. package/dist/commands/build.js.map +0 -1
  18. package/dist/commands/dev/index.d.ts +0 -9
  19. package/dist/commands/dev/index.d.ts.map +0 -1
  20. package/dist/commands/dev/index.js +0 -60
  21. package/dist/commands/dev/index.js.map +0 -1
  22. package/dist/commands/dev/tailwind.d.ts +0 -5
  23. package/dist/commands/dev/tailwind.d.ts.map +0 -1
  24. package/dist/commands/dev/tailwind.js +0 -30
  25. package/dist/commands/dev/tailwind.js.map +0 -1
  26. package/dist/commands/dev-base-esbuild.d.ts +0 -8
  27. package/dist/commands/dev-base-esbuild.d.ts.map +0 -1
  28. package/dist/commands/dev-base-esbuild.js +0 -18
  29. package/dist/commands/dev-base-esbuild.js.map +0 -1
  30. package/dist/commands/genkey-base.d.ts +0 -4
  31. package/dist/commands/genkey-base.d.ts.map +0 -1
  32. package/dist/commands/genkey-base.js +0 -19
  33. package/dist/commands/genkey-base.js.map +0 -1
  34. package/dist/commands/genkey.d.ts +0 -5
  35. package/dist/commands/genkey.d.ts.map +0 -1
  36. package/dist/commands/genkey.js +0 -14
  37. package/dist/commands/genkey.js.map +0 -1
  38. package/dist/commands/lint.d.ts +0 -8
  39. package/dist/commands/lint.d.ts.map +0 -1
  40. package/dist/commands/lint.js +0 -20
  41. package/dist/commands/lint.js.map +0 -1
  42. package/dist/commands/manifest/index.d.ts +0 -2
  43. package/dist/commands/manifest/index.d.ts.map +0 -1
  44. package/dist/commands/manifest/index.js +0 -29
  45. package/dist/commands/manifest/index.js.map +0 -1
  46. package/dist/commands/plugin-build.d.ts +0 -3
  47. package/dist/commands/plugin-build.d.ts.map +0 -1
  48. package/dist/commands/plugin-build.js +0 -60
  49. package/dist/commands/plugin-build.js.map +0 -1
  50. package/dist/commands/plugin-dev/create-manifest.d.ts +0 -5
  51. package/dist/commands/plugin-dev/create-manifest.d.ts.map +0 -1
  52. package/dist/commands/plugin-dev/create-manifest.js +0 -30
  53. package/dist/commands/plugin-dev/create-manifest.js.map +0 -1
  54. package/dist/commands/plugin-dev/index.d.ts +0 -5
  55. package/dist/commands/plugin-dev/index.d.ts.map +0 -1
  56. package/dist/commands/plugin-dev/index.js +0 -50
  57. package/dist/commands/plugin-dev/index.js.map +0 -1
  58. package/dist/commands/plugin-dev/tailwind.d.ts +0 -2
  59. package/dist/commands/plugin-dev/tailwind.d.ts.map +0 -1
  60. package/dist/commands/plugin-dev/tailwind.js +0 -42
  61. package/dist/commands/plugin-dev/tailwind.js.map +0 -1
  62. package/dist/commands/plugin-dev/upload.d.ts +0 -5
  63. package/dist/commands/plugin-dev/upload.d.ts.map +0 -1
  64. package/dist/commands/plugin-dev/upload.js +0 -58
  65. package/dist/commands/plugin-dev/upload.js.map +0 -1
  66. package/dist/commands/plugin-esbuild.d.ts +0 -3
  67. package/dist/commands/plugin-esbuild.d.ts.map +0 -1
  68. package/dist/commands/plugin-esbuild.js +0 -66
  69. package/dist/commands/plugin-esbuild.js.map +0 -1
  70. package/dist/commands/plugin-genkey.d.ts +0 -3
  71. package/dist/commands/plugin-genkey.d.ts.map +0 -1
  72. package/dist/commands/plugin-genkey.js +0 -13
  73. package/dist/commands/plugin-genkey.js.map +0 -1
  74. package/dist/commands/plugin-init.d.ts +0 -3
  75. package/dist/commands/plugin-init.d.ts.map +0 -1
  76. package/dist/commands/plugin-init.js +0 -45
  77. package/dist/commands/plugin-init.js.map +0 -1
  78. package/dist/commands/plugin-tsup.d.ts +0 -3
  79. package/dist/commands/plugin-tsup.d.ts.map +0 -1
  80. package/dist/commands/plugin-tsup.js +0 -65
  81. package/dist/commands/plugin-tsup.js.map +0 -1
  82. package/dist/commands/plugin-zip.d.ts +0 -2
  83. package/dist/commands/plugin-zip.d.ts.map +0 -1
  84. package/dist/commands/plugin-zip.js +0 -46
  85. package/dist/commands/plugin-zip.js.map +0 -1
  86. package/dist/commands/test/index.d.ts +0 -3
  87. package/dist/commands/test/index.d.ts.map +0 -1
  88. package/dist/commands/test/index.js +0 -17
  89. package/dist/commands/test/index.js.map +0 -1
  90. package/dist/index.d.ts +0 -3
  91. package/dist/index.d.ts.map +0 -1
  92. package/dist/index.js +0 -15
  93. package/dist/index.js.map +0 -1
  94. package/dist/lib/cert.d.ts +0 -4
  95. package/dist/lib/cert.d.ts.map +0 -1
  96. package/dist/lib/cert.js +0 -16
  97. package/dist/lib/cert.js.map +0 -1
  98. package/dist/lib/constants.d.ts +0 -13
  99. package/dist/lib/constants.d.ts.map +0 -1
  100. package/dist/lib/constants.js +0 -14
  101. package/dist/lib/constants.js.map +0 -1
  102. package/dist/lib/esbuild.d.ts +0 -6
  103. package/dist/lib/esbuild.d.ts.map +0 -1
  104. package/dist/lib/esbuild.js +0 -39
  105. package/dist/lib/esbuild.js.map +0 -1
  106. package/dist/lib/exec.d.ts +0 -3
  107. package/dist/lib/exec.d.ts.map +0 -1
  108. package/dist/lib/exec.js +0 -4
  109. package/dist/lib/exec.js.map +0 -1
  110. package/dist/lib/import.d.ts +0 -4
  111. package/dist/lib/import.d.ts.map +0 -1
  112. package/dist/lib/import.js +0 -18
  113. package/dist/lib/import.js.map +0 -1
  114. package/dist/lib/k2.d.ts +0 -2
  115. package/dist/lib/k2.d.ts.map +0 -1
  116. package/dist/lib/k2.js +0 -9
  117. package/dist/lib/k2.js.map +0 -1
  118. package/dist/lib/kintone-api-client.d.ts +0 -57
  119. package/dist/lib/kintone-api-client.d.ts.map +0 -1
  120. package/dist/lib/kintone-api-client.js +0 -95
  121. package/dist/lib/kintone-api-client.js.map +0 -1
  122. package/dist/lib/lint.d.ts +0 -2
  123. package/dist/lib/lint.d.ts.map +0 -1
  124. package/dist/lib/lint.js +0 -28
  125. package/dist/lib/lint.js.map +0 -1
  126. package/dist/lib/plugin-contents.d.ts +0 -5
  127. package/dist/lib/plugin-contents.d.ts.map +0 -1
  128. package/dist/lib/plugin-contents.js +0 -28
  129. package/dist/lib/plugin-contents.js.map +0 -1
  130. package/dist/lib/plugin-manifest.d.ts +0 -4
  131. package/dist/lib/plugin-manifest.d.ts.map +0 -1
  132. package/dist/lib/plugin-manifest.js +0 -13
  133. package/dist/lib/plugin-manifest.js.map +0 -1
  134. package/dist/lib/tailwind.d.ts +0 -33
  135. package/dist/lib/tailwind.d.ts.map +0 -1
  136. package/dist/lib/tailwind.js +0 -91
  137. package/dist/lib/tailwind.js.map +0 -1
  138. package/dist/lib/tsup.d.ts +0 -3
  139. package/dist/lib/tsup.d.ts.map +0 -1
  140. package/dist/lib/tsup.js +0 -26
  141. package/dist/lib/tsup.js.map +0 -1
  142. package/dist/lib/utils.d.ts +0 -16
  143. package/dist/lib/utils.d.ts.map +0 -1
  144. package/dist/lib/utils.js +0 -66
  145. package/dist/lib/utils.js.map +0 -1
  146. package/dist/lib/webpack.d.ts +0 -6
  147. package/dist/lib/webpack.d.ts.map +0 -1
  148. package/dist/lib/webpack.js +0 -72
  149. package/dist/lib/webpack.js.map +0 -1
  150. package/dist/lib/zip.d.ts +0 -4
  151. package/dist/lib/zip.d.ts.map +0 -1
  152. package/dist/lib/zip.js +0 -65
  153. package/dist/lib/zip.js.map +0 -1
  154. package/dist/plugin.d.ts +0 -3
  155. package/dist/plugin.d.ts.map +0 -1
  156. package/dist/plugin.js +0 -25
  157. package/dist/plugin.js.map +0 -1
package/dist/lib/cert.js DELETED
@@ -1,16 +0,0 @@
1
- import { exec } from './exec.js';
2
- import fs from 'fs-extra';
3
- import path from 'path';
4
- export const generateCert = async (outDir) => {
5
- const { stdout } = await exec(`mkcert localhost 127.0.0.1 ::1`);
6
- [
7
- { input: 'localhost+2.pem', output: 'localhost-cert.pem' },
8
- { input: 'localhost+2-key.pem', output: 'localhost-key.pem' },
9
- ].forEach(({ input, output }) => {
10
- fs.moveSync(`./${input}`, path.join(outDir, output), {
11
- overwrite: true,
12
- });
13
- });
14
- return { stdout };
15
- };
16
- //# sourceMappingURL=cert.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cert.js","sourceRoot":"","sources":["../../src/lib/cert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,MAAc,EAAE,EAAE;IACnD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAChE;QACE,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,oBAAoB,EAAE;QAC1D,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,EAAE,mBAAmB,EAAE;KAC9D,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;QAC9B,EAAE,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;YACnD,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const WORKSPACE_DIRECTORY = ".k2";
2
- export declare const DEVELOPMENT_DIRECTORY: string;
3
- export declare const CONFIG_FILE_NAME = "k2.config.mjs";
4
- export declare const PLUGIN_CONFIG_FILE_NAME = "plugin.config.mjs";
5
- /** kintoneプラグインの一時ファイルを管理するフォルダ */
6
- export declare const PLUGIN_WORKSPACE_DIRECTORY = ".plugin";
7
- /** kintoneプラグインのcontents.zipに格納するファイルを管理するフォルダ */
8
- export declare const PLUGIN_CONTENTS_DIRECTORY: string;
9
- /** kintoneプラグインの開発時、ローカルサーバーに反映するファイルを管理するフォルダ */
10
- export declare const PLUGIN_DEVELOPMENT_DIRECTORY: string;
11
- /** ローカルサーバーのデフォルトポート番号 */
12
- export declare const DEFAULT_PORT = 32767;
13
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AACzC,eAAO,MAAM,qBAAqB,QAAwC,CAAC;AAE3E,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,eAAO,MAAM,0BAA0B,YAAY,CAAC;AACpD,kDAAkD;AAClD,eAAO,MAAM,yBAAyB,QAAoD,CAAC;AAC3F,kDAAkD;AAClD,eAAO,MAAM,4BAA4B,QAA+C,CAAC;AAEzF,0BAA0B;AAC1B,eAAO,MAAM,YAAY,QAAQ,CAAC"}
@@ -1,14 +0,0 @@
1
- import path from 'path';
2
- export const WORKSPACE_DIRECTORY = '.k2';
3
- export const DEVELOPMENT_DIRECTORY = path.join(WORKSPACE_DIRECTORY, 'dev');
4
- export const CONFIG_FILE_NAME = 'k2.config.mjs';
5
- export const PLUGIN_CONFIG_FILE_NAME = 'plugin.config.mjs';
6
- /** kintoneプラグインの一時ファイルを管理するフォルダ */
7
- export const PLUGIN_WORKSPACE_DIRECTORY = '.plugin';
8
- /** kintoneプラグインのcontents.zipに格納するファイルを管理するフォルダ */
9
- export const PLUGIN_CONTENTS_DIRECTORY = path.join(PLUGIN_WORKSPACE_DIRECTORY, 'contents');
10
- /** kintoneプラグインの開発時、ローカルサーバーに反映するファイルを管理するフォルダ */
11
- export const PLUGIN_DEVELOPMENT_DIRECTORY = path.join(PLUGIN_WORKSPACE_DIRECTORY, 'dev');
12
- /** ローカルサーバーのデフォルトポート番号 */
13
- export const DEFAULT_PORT = 32767;
14
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AACzC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAChD,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAE3D,mCAAmC;AACnC,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAS,CAAC;AACpD,kDAAkD;AAClD,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;AAC3F,kDAAkD;AAClD,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC,IAAI,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC;AAEzF,0BAA0B;AAC1B,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC"}
@@ -1,6 +0,0 @@
1
- import esbuild, { type BuildOptions } from 'esbuild';
2
- export declare const getEsbuildContext: (params: BuildOptions) => Promise<esbuild.BuildContext<esbuild.BuildOptions>>;
3
- export declare const buildWithEsbuild: (params: BuildOptions & {
4
- watch?: boolean;
5
- }) => Promise<void>;
6
- //# sourceMappingURL=esbuild.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../src/lib/esbuild.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AA+BrD,eAAO,MAAM,iBAAiB,GAAU,QAAQ,YAAY,wDAE3D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,QAAQ,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,kBAShF,CAAC"}
@@ -1,39 +0,0 @@
1
- import chalk from 'chalk';
2
- import esbuild, {} from 'esbuild';
3
- const completeBuildOptions = (params) => {
4
- return {
5
- bundle: true,
6
- platform: 'browser',
7
- ...params,
8
- plugins: [...(params.plugins ?? [])],
9
- };
10
- };
11
- const completeDevBuildOptions = (params) => {
12
- return completeBuildOptions({
13
- ...params,
14
- plugins: [
15
- ...(params.plugins ?? []),
16
- {
17
- name: 'on-end',
18
- setup: ({ onEnd }) => onEnd(() => console.log(chalk.hex('#e5e7eb')(`${new Date().toLocaleTimeString()} `) +
19
- chalk.cyan(`[js] `) +
20
- `rebuilt`)),
21
- },
22
- ],
23
- });
24
- };
25
- export const getEsbuildContext = async (params) => {
26
- return esbuild.context(completeDevBuildOptions(params));
27
- };
28
- export const buildWithEsbuild = async (params) => {
29
- const { watch = false, ...rest } = params;
30
- if (watch) {
31
- const context = await getEsbuildContext(rest);
32
- context.watch();
33
- }
34
- else {
35
- const options = completeBuildOptions(rest);
36
- await esbuild.build(options);
37
- }
38
- };
39
- //# sourceMappingURL=esbuild.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"esbuild.js","sourceRoot":"","sources":["../../src/lib/esbuild.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OA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,OAAO,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC;SAAM,CAAC;QACN,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { exec as defaultExec } from 'child_process';
2
- export declare const exec: typeof defaultExec.__promisify__;
3
- //# sourceMappingURL=exec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/lib/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAGpD,eAAO,MAAM,IAAI,kCAAyB,CAAC"}
package/dist/lib/exec.js DELETED
@@ -1,4 +0,0 @@
1
- import { exec as defaultExec } from 'child_process';
2
- import { promisify } from 'util';
3
- export const exec = promisify(defaultExec);
4
- //# sourceMappingURL=exec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exec.js","sourceRoot":"","sources":["../../src/lib/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjC,MAAM,CAAC,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const esmImport: (path: string) => Promise<any>;
2
- export declare const importK2Config: (configFileName?: string) => Promise<K2.Config>;
3
- export declare const importK2PluginConfig: (configFileName?: string) => Promise<Plugin.Meta.Config>;
4
- //# sourceMappingURL=import.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../src/lib/import.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,iBAMrC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,iBAAiB,MAAM,KAAG,OAAO,CAAC,EAAE,CAAC,MAAM,CAE/E,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,iBAAiB,MAAM,KACtB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAE5B,CAAC"}
@@ -1,18 +0,0 @@
1
- import { pathToFileURL } from 'url';
2
- import { CONFIG_FILE_NAME, PLUGIN_CONFIG_FILE_NAME } from './constants.js';
3
- import path from 'path';
4
- export const esmImport = (path) => {
5
- if (process.platform === 'win32') {
6
- return import(pathToFileURL(path).toString());
7
- }
8
- else {
9
- return import(path);
10
- }
11
- };
12
- export const importK2Config = async (configFileName) => {
13
- return (await esmImport(path.resolve(configFileName ?? CONFIG_FILE_NAME))).default;
14
- };
15
- export const importK2PluginConfig = async (configFileName) => {
16
- return (await esmImport(path.resolve(configFileName ?? PLUGIN_CONFIG_FILE_NAME))).default;
17
- };
18
- //# sourceMappingURL=import.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import.js","sourceRoot":"","sources":["../../src/lib/import.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE;IACxC,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IAChD,CAAC;SAAM,CAAC;QACN,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,cAAuB,EAAsB,EAAE;IAClF,OAAO,CAAC,MAAM,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AACrF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,cAAuB,EACM,EAAE;IAC/B,OAAO,CAAC,MAAM,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC5F,CAAC,CAAC"}
package/dist/lib/k2.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const getDefaultK2Config: () => K2.Config;
2
- //# sourceMappingURL=k2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"k2.d.ts","sourceRoot":"","sources":["../../src/lib/k2.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,QAAO,EAAE,CAAC,MAOxC,CAAC"}
package/dist/lib/k2.js DELETED
@@ -1,9 +0,0 @@
1
- export const getDefaultK2Config = () => {
2
- return {
3
- version: 1,
4
- server: {
5
- port: 32768,
6
- },
7
- };
8
- };
9
- //# sourceMappingURL=k2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"k2.js","sourceRoot":"","sources":["../../src/lib/k2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAc,EAAE;IAChD,OAAO;QACL,OAAO,EAAE,CAAC;QACV,MAAM,EAAE;YACN,IAAI,EAAE,KAAK;SACZ;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,57 +0,0 @@
1
- type GetPluginsParams = {
2
- offset?: number;
3
- limit?: number;
4
- };
5
- type Plugin = {
6
- id: string;
7
- name: string;
8
- isMarketplace: boolean;
9
- version: string;
10
- };
11
- type GetPluginsSuccessResponse = {
12
- plugins: Plugin[];
13
- };
14
- type GetPluginResponse = GetPluginsSuccessResponse;
15
- type AddPluginSuccessResponse = {
16
- id: string;
17
- revision: string;
18
- };
19
- type AddPluginErrorResponse = {
20
- code: string;
21
- id: string;
22
- message: string;
23
- };
24
- type AddPluginResponse = AddPluginSuccessResponse | AddPluginErrorResponse;
25
- type UpdatePluginSuccessResponse = {
26
- id: string;
27
- revision: string;
28
- };
29
- type UpdatePluginErrorResponse = {
30
- code: string;
31
- id: string;
32
- message: string;
33
- errors?: Record<string, {
34
- messages: string[];
35
- }>;
36
- };
37
- type UpdatePluginResponse = UpdatePluginSuccessResponse | UpdatePluginErrorResponse;
38
- export declare class KintoneApiClient {
39
- #private;
40
- constructor();
41
- private getEndpointUrl;
42
- upload(params: {
43
- blob: Blob;
44
- fileName: string;
45
- }): Promise<string>;
46
- getPlugins(params?: GetPluginsParams): Promise<GetPluginResponse>;
47
- getAllPlugins(): Promise<Plugin[]>;
48
- addPlugin(params: {
49
- fileKey: string;
50
- }): Promise<AddPluginResponse>;
51
- updatePlugin(params: {
52
- id: string;
53
- fileKey: string;
54
- }): Promise<UpdatePluginResponse>;
55
- }
56
- export {};
57
- //# sourceMappingURL=kintone-api-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kintone-api-client.d.ts","sourceRoot":"","sources":["../../src/lib/kintone-api-client.ts"],"names":[],"mappings":"AAEA,KAAK,gBAAgB,GAAG;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,KAAK,MAAM,GAAG;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AACF,KAAK,iBAAiB,GAAG,yBAAyB,CAAC;AAEnD,KAAK,wBAAwB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,KAAK,iBAAiB,GAAG,wBAAwB,GAAG,sBAAsB,CAAC;AAE3E,KAAK,2BAA2B,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CACjD,CAAC;AACF,KAAK,oBAAoB,GAAG,2BAA2B,GAAG,yBAAyB,CAAC;AAEpF,qBAAa,gBAAgB;;;IAoC3B,OAAO,CAAC,cAAc;IAIT,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAiBjE,UAAU,CAAC,MAAM,GAAE,gBAAqB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAgBrE,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAoBlC,SAAS,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAiBlE,YAAY,CAAC,MAAM,EAAE;QAChC,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAYlC"}
@@ -1,95 +0,0 @@
1
- import { config } from 'dotenv';
2
- export class KintoneApiClient {
3
- #baseUrl;
4
- #authHeader;
5
- constructor() {
6
- config();
7
- const { KINTONE_BASE_URL, KINTONE_USERNAME, KINTONE_PASSWORD, KINTONE_BASIC_AUTH_USERNAME = '', KINTONE_BASIC_AUTH_PASSWORD = '', } = process.env;
8
- if (!KINTONE_BASE_URL || !KINTONE_USERNAME || !KINTONE_PASSWORD) {
9
- throw new Error(`.envの設定が不十分です。以下のパラメータは必須です
10
- KINTONE_BASE_URL
11
- KINTONE_USERNAME
12
- KINTONE_PASSWORD`);
13
- }
14
- const authHeader = {
15
- 'X-Cybozu-Authorization': Buffer.from(`${KINTONE_USERNAME}:${KINTONE_PASSWORD}`).toString('base64'),
16
- ...(KINTONE_BASIC_AUTH_USERNAME &&
17
- KINTONE_BASIC_AUTH_PASSWORD && {
18
- Authorization: `Basic ${Buffer.from(`${KINTONE_BASIC_AUTH_USERNAME}:${KINTONE_BASIC_AUTH_PASSWORD}`).toString('base64')}`,
19
- }),
20
- };
21
- this.#baseUrl = KINTONE_BASE_URL;
22
- this.#authHeader = authHeader;
23
- }
24
- getEndpointUrl(path) {
25
- return `${this.#baseUrl}${path}`;
26
- }
27
- async upload(params) {
28
- const { blob, fileName } = params;
29
- const form = new FormData();
30
- form.append('file', blob, fileName);
31
- const uploadResult = await fetch(this.getEndpointUrl('/k/v1/file.json'), {
32
- method: 'POST',
33
- headers: this.#authHeader,
34
- body: form,
35
- });
36
- const { fileKey } = await uploadResult.json();
37
- return fileKey;
38
- }
39
- async getPlugins(params = {}) {
40
- const url = new URL(this.getEndpointUrl('/k/v1/plugins.json'));
41
- if (params.offset) {
42
- url.searchParams.set('offset', String(params.offset));
43
- }
44
- if (params.limit) {
45
- url.searchParams.set('limit', String(params.limit));
46
- }
47
- const pluginResponse = await fetch(url.toString(), {
48
- headers: this.#authHeader,
49
- });
50
- return pluginResponse.json();
51
- }
52
- async getAllPlugins() {
53
- const plugins = [];
54
- let offset = 0;
55
- let limit = 100;
56
- let hasMore = true;
57
- while (hasMore) {
58
- const { plugins: currentPlugins } = await this.getPlugins({ offset, limit });
59
- plugins.push(...currentPlugins);
60
- if (currentPlugins.length < limit) {
61
- hasMore = false;
62
- }
63
- else {
64
- offset += limit;
65
- }
66
- }
67
- return plugins;
68
- }
69
- async addPlugin(params) {
70
- const { fileKey } = params;
71
- const pluginResponse = await fetch(this.getEndpointUrl('/k/v1/plugin.json'), {
72
- method: 'POST',
73
- headers: {
74
- 'Content-Type': 'application/json',
75
- ...this.#authHeader,
76
- },
77
- body: JSON.stringify({
78
- fileKey,
79
- }),
80
- });
81
- return pluginResponse.json();
82
- }
83
- async updatePlugin(params) {
84
- const pluginResponse = await fetch(this.getEndpointUrl('/k/v1/plugin.json'), {
85
- method: 'PUT',
86
- headers: {
87
- 'Content-Type': 'application/json',
88
- ...this.#authHeader,
89
- },
90
- body: JSON.stringify(params),
91
- });
92
- return pluginResponse.json();
93
- }
94
- }
95
- //# sourceMappingURL=kintone-api-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kintone-api-client.js","sourceRoot":"","sources":["../../src/lib/kintone-api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAyChC,MAAM,OAAO,gBAAgB;IAC3B,QAAQ,CAAS;IACjB,WAAW,CAAyB;IAEpC;QACE,MAAM,EAAE,CAAC;QAET,MAAM,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,GAAG,EAAE,EAChC,2BAA2B,GAAG,EAAE,GACjC,GAAG,OAAO,CAAC,GAAG,CAAC;QAChB,IAAI,CAAC,gBAAgB,IAAI,CAAC,gBAAgB,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAChE,MAAM,IAAI,KAAK,CAAC;;;iBAGL,CAAC,CAAC;QACf,CAAC;QAED,MAAM,UAAU,GAAG;YACjB,wBAAwB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,gBAAgB,IAAI,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CACvF,QAAQ,CACT;YACD,GAAG,CAAC,2BAA2B;gBAC7B,2BAA2B,IAAI;gBAC7B,aAAa,EAAE,S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B,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,MAGzB;QACC,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE;YAC3E,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,GAAG,IAAI,CAAC,WAAW;aACpB;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;SAC7B,CAAC,CAAC;QAEH,OAAO,cAAc,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export declare function lint(): Promise<void>;
2
- //# sourceMappingURL=lint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lib/lint.ts"],"names":[],"mappings":"AAMA,wBAAsB,IAAI,kBAyBzB"}
package/dist/lib/lint.js DELETED
@@ -1,28 +0,0 @@
1
- import { ESLint } from 'eslint';
2
- import globals from 'globals';
3
- import pluginJs from '@eslint/js';
4
- import tseslint from 'typescript-eslint';
5
- import pluginReact from 'eslint-plugin-react';
6
- export async function lint() {
7
- const eslint = new ESLint({
8
- baseConfig: [
9
- { files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
10
- { languageOptions: { globals: globals.browser } },
11
- pluginJs.configs.recommended,
12
- // ...tseslint.configs.recommended,
13
- ...(pluginReact.configs.flat?.recommended ? [pluginReact.configs.flat.recommended] : []),
14
- ],
15
- });
16
- const results = await eslint.lintFiles(['src/**/*.{ts,tsx?}']);
17
- const formatter = await eslint.loadFormatter('stylish');
18
- const resultText = formatter.format(results);
19
- console.group('👕 Lint Results');
20
- console.log(resultText);
21
- console.groupEnd();
22
- const hasErrors = results.some((result) => result.errorCount > 0);
23
- if (hasErrors) {
24
- console.error('🚨 Lint errors found');
25
- process.exit(1);
26
- }
27
- }
28
- //# sourceMappingURL=lint.js.map
@@ -1 +0,0 @@
1
- {"version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AC;QACd,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const copyPluginContents: (params?: {
2
- inputDir?: string;
3
- outputDir?: string;
4
- }) => Promise<void>;
5
- //# sourceMappingURL=plugin-contents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-contents.d.ts","sourceRoot":"","sources":["../../src/lib/plugin-contents.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,GAC7B,SAAQ;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,kBA6BvD,CAAC"}
@@ -1,28 +0,0 @@
1
- import fs from 'fs-extra';
2
- import path from 'path';
3
- import { PLUGIN_CONTENTS_DIRECTORY } from './constants.js';
4
- import htmlMinifier from 'html-minifier';
5
- export const copyPluginContents = async (params = {}) => {
6
- const { inputDir = path.join('src', 'contents'), outputDir = PLUGIN_CONTENTS_DIRECTORY } = params;
7
- if (!fs.existsSync(inputDir)) {
8
- await fs.mkdir(inputDir, { recursive: true });
9
- }
10
- await fs.copy(inputDir, outputDir, { overwrite: true });
11
- const configHtmlPath = path.join(outputDir, 'config.html');
12
- if (!fs.existsSync(configHtmlPath)) {
13
- throw new Error(`Plugin HTML file not found. Create "config.html" in ${inputDir}.`);
14
- }
15
- const html = await fs.readFile(configHtmlPath, 'utf8');
16
- const minified = htmlMinifier.minify(html, {
17
- minifyCSS: true,
18
- collapseWhitespace: true,
19
- removeComments: true,
20
- removeOptionalTags: true,
21
- removeRedundantAttributes: true,
22
- removeScriptTypeAttributes: true,
23
- removeTagWhitespace: true,
24
- useShortDoctype: true,
25
- });
26
- await fs.writeFile(configHtmlPath, minified);
27
- };
28
- //# sourceMappingURL=plugin-contents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-contents.js","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AAE,IAAI;QACzB,eAAe,EAAE,IAAI;KACtB,CAAC,CAAC;IAEH,MAAM,EAAE,CAAC,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAC/C,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const outputManifest: (env: "dev" | "prod" | "standalone", options?: {
2
- config?: Plugin.Meta.Config;
3
- }) => Promise<Plugin.Meta.Manifest>;
4
- //# sourceMappingURL=plugin-manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-manifest.d.ts","sourceRoot":"","sources":["../../src/lib/plugin-manifest.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,GACzB,KAAK,KAAK,GAAG,MAAM,GAAG,YAAY,EAClC,UAAU;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAA;CAAE,KACxC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAS9B,CAAC"}
@@ -1,13 +0,0 @@
1
- import { PLUGIN_CONTENTS_DIRECTORY } from './constants.js';
2
- import { importK2PluginConfig } from './import.js';
3
- import fs from 'fs-extra';
4
- import path from 'path';
5
- import merge from 'deepmerge';
6
- export const outputManifest = async (env, options) => {
7
- const config = options?.config || (await importK2PluginConfig());
8
- const merged = merge(config.manifest.base, config.manifest[env] || {});
9
- await fs.mkdirs(PLUGIN_CONTENTS_DIRECTORY);
10
- await fs.writeJson(path.join(PLUGIN_CONTENTS_DIRECTORY, 'manifest.json'), merged);
11
- return merged;
12
- };
13
- //# sourceMappingURL=plugin-manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-manifest.js","sourceRoot":"","sources":["../../src/lib/plugin-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,WAAW,CAAC;AAE9B,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,GAAkC,EAClC,OAAyC,EACV,EAAE;IACjC,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,oBAAoB,EAAE,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,CAAyB,CAAC;IAE/F,MAAM,EAAE,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAC3C,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,yBAAyB,EAAE,eAAe,CAAC,EAAE,MAAM,CAAC,CAAC;IAElF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -1,33 +0,0 @@
1
- import { type Config as TailwindConfig } from 'tailwindcss';
2
- export declare const getTailwindConfigFromK2Config: (k2Config: K2.Config["tailwind"]) => Promise<TailwindConfig>;
3
- export declare const getTailwindInputCss: (config: Plugin.Meta.Config["tailwind"]) => {
4
- desktop: string;
5
- config: string;
6
- };
7
- export declare const getTailwindConfig: (config: Plugin.Meta.Config["tailwind"]) => Promise<{
8
- desktop: TailwindConfig;
9
- config: TailwindConfig;
10
- }>;
11
- export declare const outputCss: (params: {
12
- inputPath: string;
13
- outputPath: string;
14
- config: TailwindConfig;
15
- minify?: boolean;
16
- }) => Promise<void>;
17
- type WatchType = 'init' | 'add' | 'change' | 'unlink';
18
- export declare const watchTailwindCSS: (params: {
19
- /** input path */
20
- input: string;
21
- /** output path */
22
- output: string;
23
- /** tailwindcss config file */
24
- config: TailwindConfig;
25
- /** callback function */
26
- onChanges?: (params: {
27
- input: string;
28
- output: string;
29
- type: WatchType;
30
- }) => void;
31
- }) => Promise<import("chokidar").FSWatcher>;
32
- export {};
33
- //# sour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AE,KAAK,IAAI,CAAC;CAClF,0CAkDA,CAAC"}
@@ -1,91 +0,0 @@
1
- import chokidar from 'chokidar';
2
- import cssnanoPlugin from 'cssnano';
3
- import fs from 'fs-extra';
4
- import { glob } from 'glob';
5
- import path from 'path';
6
- import postcss from 'postcss';
7
- import { debounce } from 'remeda';
8
- import tailwindcss, {} from 'tailwindcss';
9
- import invariant from 'tiny-invariant';
10
- import { esmImport } from './import.js';
11
- export const getTailwindConfigFromK2Config = async (k2Config) => {
12
- invariant(k2Config?.config, 'tailwind.config is required');
13
- const config = (await esmImport(path.resolve(k2Config?.config))).default;
14
- return config;
15
- };
16
- export const getTailwindInputCss = (config) => {
17
- invariant(config?.css, 'tailwind.css is required');
18
- const { css } = config;
19
- if (typeof css === 'string') {
20
- const resolved = path.resolve(css);
21
- return { desktop: resolved, config: resolved };
22
- }
23
- return {
24
- desktop: path.resolve(css.desktop),
25
- config: path.resolve(css.config),
26
- };
27
- };
28
- export const getTailwindConfig = async (config) => {
29
- invariant(config?.config, 'tailwind.config is required');
30
- const { config: configPath } = config;
31
- const configPathForDesktop = typeof configPath === 'string' ? configPath : configPath.desktop;
32
- const configPathForConfig = typeof configPath === 'string' ? configPath : configPath.config;
33
- const desktopConfig = (await esmImport(path.resolve(configPathForDesktop))).default;
34
- const configConfig = (await esmImport(path.resolve(configPathForConfig))).default;
35
- return { desktop: desktopConfig, config: configConfig };
36
- };
37
- export const outputCss = async (params) => {
38
- const { inputPath, outputPath, config, minify = false } = params;
39
- const css = await fs.readFile(inputPath, 'utf8');
40
- const result = await postcss([tailwindcss(config), ...(minify ? [cssnanoPlugin()] : [])]).process(css, {
41
- from: inputPath,
42
- to: outputPath,
43
- });
44
- await fs.writeFile(outputPath, result.css);
45
- if (result.map) {
46
- await fs.writeFile(`${outputPath}.map`, result.map.toString());
47
- }
48
- };
49
- export const watchTailwindCSS = async (params) => {
50
- const { input, output, config } = params;
51
- const content = config.content ?? ['./src/**/*.{ts,tsx}'];
52
- const files = await glob([...content, input], { ignore: ['**/node_modules/**'] });
53
- const watcher = chokidar.watch(files, {
54
- persistent: true,
55
- ignoreInitial: true,
56
- });
57
- let isInitialized = false;
58
- const processChanges = async (type) => {
59
- try {
60
- await outputCss({ inputPath: input, outputPath: output, config });
61
- params.onChanges?.({ input, output, type });
62
- }
63
- catch (error) {
64
- console.error('Error building Tailwind CSS:', error);
65
- }
66
- };
67
- const debouncedProcessChanges = debounce(processChanges, { waitMs: 1000 });
68
- watcher.on('ready', async () => {
69
- if (!isInitialized) {
70
- isInitialized = true;
71
- await processChanges('init');
72
- }
73
- });
74
- watcher.on('error', (error) => {
75
- console.error('Error watching Tailwind CSS:', error);
76
- });
77
- watcher.on('add', (path) => {
78
- debouncedProcessChanges.call('add');
79
- });
80
- watcher.on('change', (path) => {
81
- debouncedProcessChanges.call('change');
82
- });
83
- watcher.on('unlink', (path) => {
84
- debouncedProcessChanges.call('unlink');
85
- });
86
- watcher.on('unlinkDir', (path) => {
87
- debouncedProcessChanges.call('unlink');
88
- });
89
- return watcher;
90
- };
91
- //# sourceMappingURL=tailwind.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwind.js","sourceRoot":"","sources":["../../src/lib/tailwind.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,aAAa,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,WAAW,EAAE,EAAiC,MAAM,aAAa,CAAC;AACzE,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,MAAM,6BAA6B,GAAG,KAAK,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AAC;IACvD,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;QACzB,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QAC5B,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QAC5B,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;QAC/B,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type Options } from 'tsup';
2
- export declare const buildWithTsup: (buildOptions: Options) => Promise<void>;
3
- //# sourceMappingURL=tsup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsup.d.ts","sourceRoot":"","sources":["../../src/lib/tsup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAS,MAAM,MAAM,CAAC;AAuB3C,eAAO,MAAM,aAAa,GAAU,cAAc,OAAO,kBAGxD,CAAC"}