@vdhewei/xlsx-template-lib 1.3.5 → 1.4.3
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/bin.d.mts +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +1631 -0
- package/dist/bin.js.map +1 -0
- package/dist/bin.mjs +21 -0
- package/dist/bin.mjs.map +1 -0
- package/dist/chunk-2UQSPJKC.mjs +4032 -0
- package/dist/chunk-2UQSPJKC.mjs.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +46 -3979
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -3
package/dist/bin.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ExprResolver
|
|
4
|
+
} from "./chunk-2UQSPJKC.mjs";
|
|
5
|
+
|
|
6
|
+
// src/bin.ts
|
|
7
|
+
import chalk from "chalk";
|
|
8
|
+
import { Command } from "commander";
|
|
9
|
+
var program = new Command();
|
|
10
|
+
program.name("xlsx-cli").version("1.0.0");
|
|
11
|
+
program.command("compile").argument("<string>", "xlsx file path").option("-s,--save <string>", "save compiled xlsx file to user dir").option("-r,--remove", "remove configure rules sheet", false).action((cmd, xlsxFile, options) => {
|
|
12
|
+
const resolver = ExprResolver;
|
|
13
|
+
console.log(chalk.green("xlsxFile %s"), xlsxFile);
|
|
14
|
+
console.log(chalk.red("options %s"), options);
|
|
15
|
+
});
|
|
16
|
+
program.command("render").argument("<string>", "xlsx file path").option("-c,--compile", "auto compile flag", false).option("-s,--save <string>", "save render xlsx file to user dir").action((cmd, xlsxFile, options) => {
|
|
17
|
+
console.log(chalk.green("xlsxFile %s"), xlsxFile);
|
|
18
|
+
console.log(chalk.red("options %s"), options);
|
|
19
|
+
});
|
|
20
|
+
program.parse(process.argv);
|
|
21
|
+
//# sourceMappingURL=bin.mjs.map
|
package/dist/bin.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\nimport chalk from 'chalk';\nimport {Command} from 'commander';\nimport * as engine from './index';\n\nconst program = new Command();\nprogram\n .name('xlsx-cli')\n .version('1.0.0');\n\nprogram.command('compile')\n .argument('<string>', \"xlsx file path\")\n .option('-s,--save <string>', \"save compiled xlsx file to user dir\")\n .option('-r,--remove', 'remove configure rules sheet', false)\n .action((cmd: Command, xlsxFile: string, options: { [key: string]: any }) => {\n const resolver = engine.ExprResolver;\n console.log(chalk.green('xlsxFile %s'),xlsxFile);\n console.log(chalk.red('options %s'), options);\n });\n\nprogram.command(\"render\")\n .argument('<string>', \"xlsx file path\")\n .option('-c,--compile', \"auto compile flag\", false)\n .option('-s,--save <string>', \"save render xlsx file to user dir\")\n .action((cmd: Command, xlsxFile: string, options: { [key: string]: any }) => {\n console.log(chalk.green('xlsxFile %s'),xlsxFile);\n console.log(chalk.red('options %s'), options);\n });\n\nprogram.parse(process.argv);"],"mappings":";;;;;;AACA,OAAO,WAAW;AAClB,SAAQ,eAAc;AAGtB,IAAM,UAAU,IAAI,QAAQ;AAC5B,QACK,KAAK,UAAU,EACf,QAAQ,OAAO;AAEpB,QAAQ,QAAQ,SAAS,EACpB,SAAS,YAAY,gBAAgB,EACrC,OAAO,sBAAsB,qCAAqC,EAClE,OAAO,eAAe,gCAAgC,KAAK,EAC3D,OAAO,CAAC,KAAc,UAAkB,YAAoC;AACzE,QAAM,WAAkB;AACxB,UAAQ,IAAI,MAAM,MAAM,aAAa,GAAE,QAAQ;AAC/C,UAAQ,IAAI,MAAM,IAAI,YAAY,GAAG,OAAO;AAChD,CAAC;AAEL,QAAQ,QAAQ,QAAQ,EACnB,SAAS,YAAY,gBAAgB,EACrC,OAAO,gBAAgB,qBAAqB,KAAK,EACjD,OAAO,sBAAsB,mCAAmC,EAChE,OAAO,CAAC,KAAc,UAAkB,YAAoC;AACzE,UAAQ,IAAI,MAAM,MAAM,aAAa,GAAE,QAAQ;AAC/C,UAAQ,IAAI,MAAM,IAAI,YAAY,GAAG,OAAO;AAChD,CAAC;AAEL,QAAQ,MAAM,QAAQ,IAAI;","names":[]}
|