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.
@@ -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/sync2';
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
7
  "scripts": {
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,8 +0,0 @@
1
- module.exports = {
2
- overrides: [
3
- {
4
- files: ["**/*.{ts,tsx}"],
5
- customSyntax: "@stylelint/postcss-css-in-js",
6
- },
7
- ],
8
- };
@@ -1,7 +0,0 @@
1
- export const environment = {
2
- gitTag: 'development',
3
- devMode: false,
4
- development: process.env.SEGMENT === 'dev' ? true : false,
5
- } as const;
6
-
7
- export type Environment = typeof environment;
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
-
3
- export const frontendAPISchema = z.object({});
4
- export type FrontendAPI = z.infer<typeof frontendAPISchema>;
@@ -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