@sealcode/sealgen 0.1.2 → 0.1.5
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/.log/tsserver.log +58 -0
- package/lib/templates/form.js +1 -1
- package/lib/templates/form.js.map +1 -1
- package/lib/templates/route-test.js.map +1 -1
- package/lib/utils/import-path.js +2 -2
- package/lib/utils/import-path.js.map +1 -1
- package/package.json +1 -1
- package/src/templates/form.ts +1 -1
- package/src/templates/route-test.ts +6 -2
- package/src/utils/import-path.ts +3 -3
package/.log/tsserver.log
CHANGED
|
@@ -407,3 +407,61 @@ Info 366 [12:26:51.909] Different program with same set of files
|
|
|
407
407
|
Info 367 [12:26:52.242] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
408
408
|
Info 368 [12:26:52.252] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 71 structureChanged: false structureIsReused:: Completely Elapsed: 9.461915999650955ms
|
|
409
409
|
Info 369 [12:26:52.252] Different program with same set of files
|
|
410
|
+
Info 370 [12:30:18.604] Search path: /home/kuba/projects/sealcode/sealgen/src/templates
|
|
411
|
+
Info 371 [12:30:18.605] For info: /home/kuba/projects/sealcode/sealgen/src/templates/collection.ts :: Config file name: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
412
|
+
Info 372 [12:30:27.944] Search path: /home/kuba/projects/sealcode/sealgen/src/templates
|
|
413
|
+
Info 373 [12:30:27.944] For info: /home/kuba/projects/sealcode/sealgen/src/templates/form.ts :: Config file name: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
414
|
+
Info 374 [12:30:34.814] Search path: /home/kuba/projects/sealcode/sealgen/src/utils
|
|
415
|
+
Info 375 [12:30:34.814] For info: /home/kuba/projects/sealcode/sealgen/src/utils/import-path.ts :: Config file name: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
416
|
+
Info 376 [12:30:46.142] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
417
|
+
Info 377 [12:30:46.161] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 72 structureChanged: false structureIsReused:: Completely Elapsed: 19.42666499968618ms
|
|
418
|
+
Info 378 [12:30:46.162] Different program with same set of files
|
|
419
|
+
Info 379 [12:30:47.974] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
420
|
+
Info 380 [12:30:47.988] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 73 structureChanged: false structureIsReused:: Completely Elapsed: 13.06955200061202ms
|
|
421
|
+
Info 381 [12:30:47.988] Different program with same set of files
|
|
422
|
+
Info 382 [12:30:48.332] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
423
|
+
Info 383 [12:30:48.348] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 74 structureChanged: false structureIsReused:: Completely Elapsed: 15.252268000505865ms
|
|
424
|
+
Info 384 [12:30:48.348] Different program with same set of files
|
|
425
|
+
Info 385 [12:30:52.806] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
426
|
+
Info 386 [12:30:52.819] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 75 structureChanged: false structureIsReused:: Completely Elapsed: 12.467449000105262ms
|
|
427
|
+
Info 387 [12:30:52.819] Different program with same set of files
|
|
428
|
+
Info 388 [12:30:52.821] getCompletionData: Get current token: 0.04583599977195263
|
|
429
|
+
Info 389 [12:30:52.821] getCompletionData: Is inside comment: 0.012868999503552914
|
|
430
|
+
Info 390 [12:30:52.822] getCompletionData: Get previous token: 0.13458899967372417
|
|
431
|
+
Info 391 [12:30:52.822] getCompletionsAtPosition: isCompletionListBlocker: 0.023864000104367733
|
|
432
|
+
Info 392 [12:30:52.828] getCompletionData: Semantic work: 5.548026999458671
|
|
433
|
+
Info 393 [12:30:52.842] getCompletionsAtPosition: getCompletionEntriesFromSymbols: 13.004119999706745
|
|
434
|
+
Info 394 [12:30:52.923] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
435
|
+
Info 395 [12:30:52.934] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 76 structureChanged: false structureIsReused:: Completely Elapsed: 10.753587000072002ms
|
|
436
|
+
Info 396 [12:30:52.934] Different program with same set of files
|
|
437
|
+
Info 397 [12:30:53.375] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
438
|
+
Info 398 [12:30:53.382] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 77 structureChanged: false structureIsReused:: Completely Elapsed: 7.159703999757767ms
|
|
439
|
+
Info 399 [12:30:53.382] Different program with same set of files
|
|
440
|
+
Info 400 [12:30:53.448] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
441
|
+
Info 401 [12:30:53.453] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 78 structureChanged: false structureIsReused:: Completely Elapsed: 4.443661999888718ms
|
|
442
|
+
Info 402 [12:30:53.453] Different program with same set of files
|
|
443
|
+
Info 403 [12:31:01.494] Search path: /home/kuba/projects/sealcode/sealgen/src/templates
|
|
444
|
+
Info 404 [12:31:01.494] For info: /home/kuba/projects/sealcode/sealgen/src/templates/page.ts :: Config file name: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
445
|
+
Info 405 [12:31:13.876] Search path: /home/kuba/projects/sealcode/sealgen/src/templates
|
|
446
|
+
Info 406 [12:31:13.876] For info: /home/kuba/projects/sealcode/sealgen/src/templates/route-test.ts :: Config file name: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
447
|
+
Info 407 [12:31:19.740] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
448
|
+
Info 408 [12:31:19.758] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 79 structureChanged: false structureIsReused:: Completely Elapsed: 17.507413000799716ms
|
|
449
|
+
Info 409 [12:31:19.758] Different program with same set of files
|
|
450
|
+
Info 410 [12:31:19.865] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
451
|
+
Info 411 [12:31:19.879] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 80 structureChanged: false structureIsReused:: Completely Elapsed: 14.626085000112653ms
|
|
452
|
+
Info 412 [12:31:19.880] Different program with same set of files
|
|
453
|
+
Info 413 [12:31:48.356] FileWatcher:: Triggered with /home/kuba/projects/sealcode/sealgen/package.json 1:: WatchInfo: /home/kuba/projects/sealcode/sealgen/package.json 250 undefined WatchType: package.json file
|
|
454
|
+
Info 414 [12:31:48.359] Elapsed:: 2.5272159995511174ms FileWatcher:: Triggered with /home/kuba/projects/sealcode/sealgen/package.json 1:: WatchInfo: /home/kuba/projects/sealcode/sealgen/package.json 250 undefined WatchType: package.json file
|
|
455
|
+
Info 415 [12:35:32.823] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
456
|
+
Info 416 [12:35:32.828] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 81 structureChanged: false structureIsReused:: Completely Elapsed: 4.809010999277234ms
|
|
457
|
+
Info 417 [12:35:32.828] Different program with same set of files
|
|
458
|
+
Info 418 [12:35:50.447] FileWatcher:: Triggered with /home/kuba/projects/sealcode/sealgen/package.json 1:: WatchInfo: /home/kuba/projects/sealcode/sealgen/package.json 250 undefined WatchType: package.json file
|
|
459
|
+
Info 419 [12:35:50.448] Elapsed:: 0.5275960005819798ms FileWatcher:: Triggered with /home/kuba/projects/sealcode/sealgen/package.json 1:: WatchInfo: /home/kuba/projects/sealcode/sealgen/package.json 250 undefined WatchType: package.json file
|
|
460
|
+
Info 420 [12:37:45.262] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
461
|
+
Info 421 [12:37:45.272] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 82 structureChanged: false structureIsReused:: Completely Elapsed: 9.895839000120759ms
|
|
462
|
+
Info 422 [12:37:45.272] Different program with same set of files
|
|
463
|
+
Info 423 [12:37:45.613] Starting updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json
|
|
464
|
+
Info 424 [12:37:45.627] Finishing updateGraphWorker: Project: /home/kuba/projects/sealcode/sealgen/src/tsconfig.json Version: 83 structureChanged: false structureIsReused:: Completely Elapsed: 14.655261999927461ms
|
|
465
|
+
Info 425 [12:37:45.628] Different program with same set of files
|
|
466
|
+
Info 426 [12:38:26.491] FileWatcher:: Triggered with /home/kuba/projects/sealcode/sealgen/package.json 1:: WatchInfo: /home/kuba/projects/sealcode/sealgen/package.json 250 undefined WatchType: package.json file
|
|
467
|
+
Info 427 [12:38:26.492] Elapsed:: 0.5766350002959371ms FileWatcher:: Triggered with /home/kuba/projects/sealcode/sealgen/package.json 1:: WatchInfo: /home/kuba/projects/sealcode/sealgen/package.json 250 undefined WatchType: package.json file
|
package/lib/templates/form.js
CHANGED
|
@@ -5,7 +5,7 @@ const import_path_1 = require("../utils/import-path");
|
|
|
5
5
|
const formTemplate = (action_name, newfilefullpath) => {
|
|
6
6
|
const rel = import_path_1.curryImportPath(newfilefullpath);
|
|
7
7
|
return `import { BaseContext } from "koa";
|
|
8
|
-
import Users from "${rel("src/back/collections/
|
|
8
|
+
import {Users} from "${rel("src/back/collections/collections")}";
|
|
9
9
|
import { FormHeader, SimpleInput } from "${rel("src/back/forms/controls")}";
|
|
10
10
|
import { FormField } from "${rel("src/back/forms/field")}";
|
|
11
11
|
import Form, { FormData } from "${rel("src/back/forms/form")}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../src/templates/form.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AAEhD,MAAM,YAAY,GAAG,CAAC,WAAmB,EAAE,eAAuB,EAAE,EAAE;IAC5E,MAAM,GAAG,GAAG,6BAAe,CAAC,eAAe,CAAC,CAAC;IAC7C,OAAO;
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../src/templates/form.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AAEhD,MAAM,YAAY,GAAG,CAAC,WAAmB,EAAE,eAAuB,EAAE,EAAE;IAC5E,MAAM,GAAG,GAAG,6BAAe,CAAC,eAAe,CAAC,CAAC;IAC7C,OAAO;uBACe,GAAG,CAAC,kCAAkC,CAAC;2CACnB,GAAG,CAAC,yBAAyB,CAAC;6BAC5C,GAAG,CAAC,sBAAsB,CAAC;kCACtB,GAAG,CAAC,qBAAqB,CAAC;4CAChB,GAAG,CAAC,0BAA0B,CAAC;oBACvD,GAAG,CAAC,eAAe,CAAC;;6BAEX,WAAW;;2BAEb,WAAW;;;;;;;;;;;;;;;;;;;;;;;sBAuBhB,WAAW;;;CAGhC,CAAC;AACF,CAAC,CAAC;AAvCW,QAAA,YAAY,gBAuCvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-test.js","sourceRoot":"","sources":["../../src/templates/route-test.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AAEvD,SAAgB,YAAY,CAAC,WAAmB,EAAE,iBAAyB;IAC1E,MAAM,GAAG,GAAG,6BAAe,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,gCAAgC,GAAG,
|
|
1
|
+
{"version":3,"file":"route-test.js","sourceRoot":"","sources":["../../src/templates/route-test.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AAEvD,SAAgB,YAAY,CAAC,WAAmB,EAAE,iBAAyB;IAC1E,MAAM,GAAG,GAAG,6BAAe,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,gCAAgC,GAAG,CACzC,mCAAmC,CACnC;iDAC+C,GAAG,CAClD,6BAA6B,CAC7B;WACS,WAAW,eAAe,GAAG,CAAC,wBAAwB,CAAC;;YAEtD,WAAW;;;;wBAIC,WAAW;iCACF,WAAW;;;4CAGA,WAAW;;;;;CAKtD,CAAC;AACF,CAAC;AAxBD,oCAwBC"}
|
package/lib/utils/import-path.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.curryImportPath = exports.importPath = void 0;
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const locreq_1 = __importDefault(require("locreq"));
|
|
9
|
-
const
|
|
9
|
+
const target_locreq = locreq_1.default(process.cwd());
|
|
10
10
|
function importPath(project_module_path, project_target_path) {
|
|
11
|
-
let result = path_1.relative(path_1.dirname(
|
|
11
|
+
let result = path_1.relative(path_1.dirname(target_locreq.resolve(project_module_path)), target_locreq.resolve(project_target_path).replace(/.ts$/, ""));
|
|
12
12
|
if (result[0] != ".") {
|
|
13
13
|
result = "./" + result;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-path.js","sourceRoot":"","sources":["../../src/utils/import-path.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAyC;AACzC,oDAA6B;AAC7B,MAAM,
|
|
1
|
+
{"version":3,"file":"import-path.js","sourceRoot":"","sources":["../../src/utils/import-path.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAyC;AACzC,oDAA6B;AAC7B,MAAM,aAAa,GAAG,gBAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AAE7C,SAAgB,UAAU,CACzB,mBAA2B,EAC3B,mBAA2B;IAE3B,IAAI,MAAM,GAAG,eAAQ,CACpB,cAAO,CAAC,aAAa,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,EACnD,aAAa,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAC9D,CAAC;IACF,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE;QACrB,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;KACvB;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAZD,gCAYC;AAED,SAAgB,eAAe,CAC9B,mBAA2B;IAE3B,OAAO,UAAU,mBAA2B;QAC3C,OAAO,UAAU,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IAC7D,CAAC,CAAC;AACH,CAAC;AAND,0CAMC"}
|
package/package.json
CHANGED
package/src/templates/form.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { curryImportPath } from "../utils/import-path";
|
|
|
3
3
|
export const formTemplate = (action_name: string, newfilefullpath: string) => {
|
|
4
4
|
const rel = curryImportPath(newfilefullpath);
|
|
5
5
|
return `import { BaseContext } from "koa";
|
|
6
|
-
import Users from "${rel("src/back/collections/
|
|
6
|
+
import {Users} from "${rel("src/back/collections/collections")}";
|
|
7
7
|
import { FormHeader, SimpleInput } from "${rel("src/back/forms/controls")}";
|
|
8
8
|
import { FormField } from "${rel("src/back/forms/field")}";
|
|
9
9
|
import Form, { FormData } from "${rel("src/back/forms/form")}";
|
|
@@ -2,8 +2,12 @@ import { curryImportPath } from "../utils/import-path";
|
|
|
2
2
|
|
|
3
3
|
export function testTemplate(action_name: string, new_file_fullpath: string) {
|
|
4
4
|
const rel = curryImportPath(new_file_fullpath);
|
|
5
|
-
return `import { withProdApp } from "${rel(
|
|
6
|
-
|
|
5
|
+
return `import { withProdApp } from "${rel(
|
|
6
|
+
"src/back/test_utils/with-prod-app"
|
|
7
|
+
)}";
|
|
8
|
+
import { LONG_TEST_TIMEOUT, webhintURL } from "${rel(
|
|
9
|
+
"src/back/test_utils/webhint"
|
|
10
|
+
)}";
|
|
7
11
|
import { ${action_name}URL } from "${rel("src/back/routes/routes")}";
|
|
8
12
|
|
|
9
13
|
describe("${action_name}", () => {
|
package/src/utils/import-path.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { relative, dirname } from "path";
|
|
2
2
|
import _locreq from "locreq";
|
|
3
|
-
const
|
|
3
|
+
const target_locreq = _locreq(process.cwd());
|
|
4
4
|
|
|
5
5
|
export function importPath(
|
|
6
6
|
project_module_path: string,
|
|
7
7
|
project_target_path: string
|
|
8
8
|
): string {
|
|
9
9
|
let result = relative(
|
|
10
|
-
dirname(
|
|
11
|
-
|
|
10
|
+
dirname(target_locreq.resolve(project_module_path)),
|
|
11
|
+
target_locreq.resolve(project_target_path).replace(/.ts$/, "")
|
|
12
12
|
);
|
|
13
13
|
if (result[0] != ".") {
|
|
14
14
|
result = "./" + result;
|