@applica-software-guru/sdd 1.0.1 → 1.0.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.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/dist/commands/build.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA2BpD"}
|
package/dist/commands/build.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.registerBuild = registerBuild;
|
|
7
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
-
const clipboardy_1 = __importDefault(require("clipboardy"));
|
|
9
|
-
const ora_1 = __importDefault(require("ora"));
|
|
10
|
-
const core_1 = require("@sdd/core");
|
|
11
|
-
const format_js_1 = require("../ui/format.js");
|
|
12
|
-
function registerBuild(program) {
|
|
13
|
-
program
|
|
14
|
-
.command('build')
|
|
15
|
-
.description('Generate prompt from ALL documentation files')
|
|
16
|
-
.option('--no-copy', 'Do not copy to clipboard')
|
|
17
|
-
.action(async (options) => {
|
|
18
|
-
const spinner = (0, ora_1.default)({ text: 'Building prompt...', color: 'cyan' }).start();
|
|
19
|
-
const sdd = new core_1.SDD({ root: process.cwd() });
|
|
20
|
-
const prompt = await sdd.build();
|
|
21
|
-
spinner.stop();
|
|
22
|
-
console.log((0, format_js_1.heading)('Build'));
|
|
23
|
-
console.log(chalk_1.default.dim(' ' + '─'.repeat(56)));
|
|
24
|
-
console.log(prompt);
|
|
25
|
-
console.log(chalk_1.default.dim(' ' + '─'.repeat(56)));
|
|
26
|
-
if (options.copy !== false) {
|
|
27
|
-
try {
|
|
28
|
-
await clipboardy_1.default.write(prompt);
|
|
29
|
-
console.log('\n' + (0, format_js_1.success)('Prompt copied to clipboard.\n'));
|
|
30
|
-
}
|
|
31
|
-
catch {
|
|
32
|
-
console.log('\n' + (0, format_js_1.warning)('Could not copy to clipboard.\n'));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=build.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":";;;;;AAOA,sCA2BC;AAjCD,kDAA0B;AAC1B,4DAAoC;AACpC,8CAAsB;AACtB,oCAAgC;AAChC,+CAA4D;AAE5D,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO;SACJ,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,8CAA8C,CAAC;SAC3D,MAAM,CAAC,WAAW,EAAE,0BAA0B,CAAC;SAC/C,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACxB,MAAM,OAAO,GAAG,IAAA,aAAG,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;QAE3E,MAAM,GAAG,GAAG,IAAI,UAAG,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAEjC,OAAO,CAAC,IAAI,EAAE,CAAC;QAEf,OAAO,CAAC,GAAG,CAAC,IAAA,mBAAO,EAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,IAAI,G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