@zuplo/cli 1.77.0 → 1.79.0
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/package.json +3 -3
- package/.eslintrc.cjs +0 -48
- package/scripts/post-build.js +0 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "https://github.com/zuplo/cli",
|
|
6
6
|
"description": "The command-line interface for Zuplo",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"@inquirer/prompts": "^3.0.4",
|
|
59
59
|
"@sentry/node": "7.69.0",
|
|
60
60
|
"@swc/core": "1.3.78",
|
|
61
|
-
"@zuplo/core": "5.
|
|
61
|
+
"@zuplo/core": "5.1305.0",
|
|
62
62
|
"@zuplo/pino-pretty-configurations": "^1.4.0",
|
|
63
|
-
"@zuplo/runtime": "5.
|
|
63
|
+
"@zuplo/runtime": "5.1305.0",
|
|
64
64
|
"chalk": "^5.1.2",
|
|
65
65
|
"chokidar": "^3.5.3",
|
|
66
66
|
"deno-bin": "1.31.1",
|
package/.eslintrc.cjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**@type {import('eslint').Linter.Config} */
|
|
2
|
-
// eslint-disable-next-line no-undef
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
parser: "@typescript-eslint/parser",
|
|
6
|
-
parserOptions: {
|
|
7
|
-
project: "./tsconfig.eslint.json",
|
|
8
|
-
},
|
|
9
|
-
plugins: ["@typescript-eslint", "import", "node", "unicorn"],
|
|
10
|
-
extends: [
|
|
11
|
-
"eslint:recommended",
|
|
12
|
-
"plugin:@typescript-eslint/recommended",
|
|
13
|
-
"prettier",
|
|
14
|
-
],
|
|
15
|
-
rules: {
|
|
16
|
-
"no-console": "error",
|
|
17
|
-
"@typescript-eslint/no-unused-vars": [
|
|
18
|
-
"error",
|
|
19
|
-
{
|
|
20
|
-
vars: "all",
|
|
21
|
-
args: "after-used",
|
|
22
|
-
ignoreRestSiblings: false,
|
|
23
|
-
varsIgnorePattern: "^_",
|
|
24
|
-
argsIgnorePattern: "^_",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
"@typescript-eslint/no-explicit-any": "error",
|
|
28
|
-
"node/no-process-env": "error",
|
|
29
|
-
"@typescript-eslint/no-floating-promises": "error",
|
|
30
|
-
"unicorn/prefer-node-protocol": "error",
|
|
31
|
-
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
32
|
-
"@typescript-eslint/naming-convention": [
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
selector: ["class"],
|
|
36
|
-
format: ["PascalCase"],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
selector: "interface",
|
|
40
|
-
format: ["PascalCase"],
|
|
41
|
-
custom: {
|
|
42
|
-
regex: "^I[A-Z]",
|
|
43
|
-
match: false,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
};
|
package/scripts/post-build.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
|
|
4
|
-
const sourceFolder = path.join(".", "src", "editor");
|
|
5
|
-
const destinationFolder = path.join(".", "dist", "editor");
|
|
6
|
-
|
|
7
|
-
// Create the destination folder if it doesn't exist
|
|
8
|
-
if (!fs.existsSync(destinationFolder)) {
|
|
9
|
-
fs.mkdirSync(destinationFolder);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function copyFolderSync(source, target) {
|
|
13
|
-
if (!fs.existsSync(target)) {
|
|
14
|
-
fs.mkdirSync(target);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const files = fs.readdirSync(source);
|
|
18
|
-
files.forEach((file) => {
|
|
19
|
-
const sourceFilePath = path.join(source, file);
|
|
20
|
-
const targetFilePath = path.join(target, file);
|
|
21
|
-
|
|
22
|
-
if (fs.statSync(sourceFilePath).isDirectory()) {
|
|
23
|
-
copyFolderSync(sourceFilePath, targetFilePath);
|
|
24
|
-
} else {
|
|
25
|
-
fs.copyFileSync(sourceFilePath, targetFilePath);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Copy the assets folder
|
|
31
|
-
copyFolderSync(
|
|
32
|
-
path.join(sourceFolder, "assets"),
|
|
33
|
-
path.join(destinationFolder, "assets")
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
// Copy the icons folder
|
|
37
|
-
copyFolderSync(
|
|
38
|
-
path.join(sourceFolder, "icons"),
|
|
39
|
-
path.join(destinationFolder, "icons")
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
// Copy the index.html
|
|
43
|
-
fs.copyFileSync(
|
|
44
|
-
path.join(sourceFolder, "index.html"),
|
|
45
|
-
path.join(destinationFolder, "index.html")
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
// Copy the favicon
|
|
49
|
-
fs.copyFileSync(
|
|
50
|
-
path.join(sourceFolder, "favicon.ico"),
|
|
51
|
-
path.join(destinationFolder, "favicon.ico")
|
|
52
|
-
);
|