lucy-cli 1.2.1 → 1.2.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/settings.json +3 -1
- package/files/typescript/backend/http-functions.ts +1 -1
- package/package.json +1 -1
- package/src/settings.json +3 -1
- package/files/.stylelintrc copy.js +0 -8
- package/files/typescript/backend/constants/env.ts +0 -7
- package/files/typescript/public/models/frontendApi.model.ts +0 -4
- package/files/typescript/templates/render.ts +0 -32
- /package/files/typescript/{types → public}/.gitkeep +0 -0
package/dist/settings.json
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
"@types/node": "^24.0.10",
|
19
19
|
"@types/nodemailer": "^6.4.17",
|
20
20
|
"@types/react": "^19.1.8",
|
21
|
+
"madge": "^8.0.0",
|
21
22
|
"@typescript-eslint/eslint-plugin": "^8.35.1",
|
22
23
|
"@typescript-eslint/parser": "^8.35.1",
|
23
24
|
"@typescript-eslint/utils": "^8.35.1",
|
@@ -60,6 +61,7 @@
|
|
60
61
|
"test": "vitest --ui --coverage",
|
61
62
|
"coverage": "vitest run --coverage",
|
62
63
|
"cypress": "cypress open",
|
63
|
-
"e2e": "cypress-cloud run --parallel --record"
|
64
|
+
"e2e": "cypress-cloud run --parallel --record",
|
65
|
+
"graph": "madge --image graph.svg src"
|
64
66
|
}
|
65
67
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable @typescript-eslint/naming-convention */
|
2
|
-
import { batchCheckUpdateState, clearStale, getImageUploadUrl, insertItemBatch, isAlive, saveItemBatch } from 'backend/lib/http-functions/
|
2
|
+
import { batchCheckUpdateState, clearStale, getImageUploadUrl, insertItemBatch, isAlive, saveItemBatch } from 'backend/lib/http-functions/sync';
|
3
3
|
import { WixHttpFunctionRequest } from 'wix-http-functions';
|
4
4
|
|
5
5
|
/**------------------------------------------------------------------------
|
package/package.json
CHANGED
package/src/settings.json
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
"@types/node": "^24.0.10",
|
19
19
|
"@types/nodemailer": "^6.4.17",
|
20
20
|
"@types/react": "^19.1.8",
|
21
|
+
"madge": "^8.0.0",
|
21
22
|
"@typescript-eslint/eslint-plugin": "^8.35.1",
|
22
23
|
"@typescript-eslint/parser": "^8.35.1",
|
23
24
|
"@typescript-eslint/utils": "^8.35.1",
|
@@ -60,6 +61,7 @@
|
|
60
61
|
"test": "vitest --ui --coverage",
|
61
62
|
"coverage": "vitest run --coverage",
|
62
63
|
"cypress": "cypress open",
|
63
|
-
"e2e": "cypress-cloud run --parallel --record"
|
64
|
+
"e2e": "cypress-cloud run --parallel --record",
|
65
|
+
"graph": "madge --image graph.svg src"
|
64
66
|
}
|
65
67
|
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import * as fs from 'fs';
|
2
|
-
|
3
|
-
|
4
|
-
export interface RenderToFsOPtions {
|
5
|
-
renderer: (arg0: any, arg1: any) => Promise<string>;
|
6
|
-
dataSource: string;
|
7
|
-
destination: string;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* Render E-Mail to file system
|
11
|
-
* @param {RenderToFsOPtions} options Preview Options
|
12
|
-
* @returns {Promise<void>}
|
13
|
-
*/
|
14
|
-
export async function renderToFs(options: RenderToFsOPtions): Promise<void> {
|
15
|
-
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'development') return;
|
16
|
-
console.log('rendered', process.env.NODE_ENV, options);
|
17
|
-
fs.readFile(`typescript/backend/templates/data/${options.dataSource}`, 'utf8', async (err, data) => {
|
18
|
-
if (err){
|
19
|
-
console.error('Template Rendere => ', err);
|
20
|
-
|
21
|
-
return;
|
22
|
-
}
|
23
|
-
const fakeDate = JSON.parse(data) as any;
|
24
|
-
console.log('fakeDate', fakeDate);
|
25
|
-
const html = await options.renderer(fakeDate, 'de');
|
26
|
-
fs.writeFile(`typescript/backend/templates/preview/${options.destination}.html`, html, err => {
|
27
|
-
if (err){
|
28
|
-
console.error(err);
|
29
|
-
}
|
30
|
-
});
|
31
|
-
});
|
32
|
-
}
|
File without changes
|