1 | (function (factory) {
|
2 | if (typeof module === "object" && typeof module.exports === "object") {
|
3 | var v = factory(require, exports);
|
4 | if (v !== undefined) module.exports = v;
|
5 | }
|
6 | else if (typeof define === "function" && define.amd) {
|
7 | define(["require", "exports", "path", "@leanup/cli/lib/leanup-cli"], factory);
|
8 | }
|
9 | })(function (require, exports) {
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | exports.SvelteCLI = void 0;
|
13 | const path = require("path");
|
14 | const leanup_cli_1 = require("@leanup/cli/lib/leanup-cli");
|
15 | class SvelteCLI extends leanup_cli_1.LeanupCLI {
|
16 | constructor(name, version) {
|
17 | super(name, version);
|
18 | this.addActionToCommand('create', (options) => {
|
19 | this.copyAndPrint(path.join(__dirname, '../', 'template'), '', options);
|
20 | });
|
21 | }
|
22 | }
|
23 | exports.SvelteCLI = SvelteCLI;
|
24 | });
|
25 |
|
\ | No newline at end of file |