create-windowless-app 11.0.1 → 11.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/cliParser.js +1 -0
- package/package.json +12 -12
- package/templates/typescript/src/index.ts +2 -1
package/dist/cliParser.js
CHANGED
|
@@ -30,6 +30,7 @@ const validateInput = (argv) => {
|
|
|
30
30
|
return argv;
|
|
31
31
|
};
|
|
32
32
|
const parseCommand = (argv) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
34
|
const command = (0, yargs_1.default)((0, helpers_1.hideBin)(argv))
|
|
34
35
|
.command("* [projectName]", "project name", (yargs) => {
|
|
35
36
|
return yargs.positional("projectName", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-windowless-app",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "Create a windowless NodeJS app",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"prepare": "npm run husky-install && npx fix-lockfile-integrity",
|
|
12
|
-
"husky-install": "git config --get core.hookspath || husky
|
|
12
|
+
"husky-install": "git config --get core.hookspath || husky",
|
|
13
13
|
"prebuild": "npm run test",
|
|
14
14
|
"build": "npm run build:no-test",
|
|
15
15
|
"build:no-test": "npm run tsc && npm run add-shebang && npm run package",
|
|
@@ -56,29 +56,29 @@
|
|
|
56
56
|
},
|
|
57
57
|
"homepage": "https://github.com/yoavain/create-windowless-app#readme",
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@tsconfig/node20": "20.1.
|
|
59
|
+
"@tsconfig/node20": "20.1.4",
|
|
60
60
|
"@types/cross-spawn": "6.0.6",
|
|
61
61
|
"@types/fs-extra": "11.0.4",
|
|
62
62
|
"@types/inquirer": "8.2.10",
|
|
63
63
|
"@types/jest": "29.5.12",
|
|
64
64
|
"@types/mock-fs": "4.13.4",
|
|
65
|
-
"@types/node": "20.
|
|
65
|
+
"@types/node": "20.12.8",
|
|
66
66
|
"@types/node-notifier": "8.0.5",
|
|
67
67
|
"@types/validate-npm-package-name": "4.0.2",
|
|
68
68
|
"@types/winston": "2.4.4",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "
|
|
70
|
-
"@typescript-eslint/parser": "
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "7.8.0",
|
|
70
|
+
"@typescript-eslint/parser": "7.8.0",
|
|
71
71
|
"add-shebang": "0.1.0",
|
|
72
72
|
"copy-webpack-plugin": "12.0.2",
|
|
73
73
|
"cross-env": "7.0.3",
|
|
74
74
|
"del": "6.1.1",
|
|
75
75
|
"eslint": "8.57.0",
|
|
76
76
|
"eslint-plugin-import": "2.29.1",
|
|
77
|
-
"eslint-plugin-jest": "
|
|
78
|
-
"eslint-plugin-
|
|
77
|
+
"eslint-plugin-jest": "28.4.0",
|
|
78
|
+
"eslint-plugin-n": "17.4.0",
|
|
79
79
|
"eslint-plugin-security": "1.7.1",
|
|
80
80
|
"global-npm": "0.5.0",
|
|
81
|
-
"husky": "
|
|
81
|
+
"husky": "9.0.11",
|
|
82
82
|
"jest": "29.7.0",
|
|
83
83
|
"lint-staged": "15.2.2",
|
|
84
84
|
"mock-fs": "5.2.0",
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
"ts-jest": "29.1.2",
|
|
93
93
|
"ts-loader": "9.5.1",
|
|
94
94
|
"ts-node": "10.9.2",
|
|
95
|
-
"typescript": "5.4.
|
|
96
|
-
"webpack": "5.
|
|
95
|
+
"typescript": "5.4.5",
|
|
96
|
+
"webpack": "5.91.0",
|
|
97
97
|
"webpack-cli": "5.1.4",
|
|
98
|
-
"winston": "3.
|
|
98
|
+
"winston": "3.13.0"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"chalk": "4.1.2",
|
|
@@ -32,6 +32,7 @@ const logger: winston.Logger = winston.createLogger({
|
|
|
32
32
|
// Notifier init
|
|
33
33
|
const snoreToastPath: string = executable.endsWith(".exe") ? path.resolve(executable, "../", "snoretoast-x64.exe") : null;
|
|
34
34
|
let notifierOptions: Option = { withFallback: false, customPath: snoreToastPath };
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
36
|
const notifier: any = new WindowsToaster(notifierOptions);
|
|
36
37
|
|
|
37
38
|
// Log message
|
|
@@ -39,7 +40,7 @@ logger.log("info", `"${AppName}" started with ${argv ? argv.join("; ") : "no arg
|
|
|
39
40
|
logger.log("info", `Notifier started with options ${JSON.stringify(notifierOptions)}`);
|
|
40
41
|
|
|
41
42
|
// Notify
|
|
42
|
-
const notification
|
|
43
|
+
const notification = { title: `${AppName}`, message: "Hello World", actions: ["Log", "Close"] };
|
|
43
44
|
notifier.notify(notification);
|
|
44
45
|
notifier.on("log", () => {
|
|
45
46
|
const file: string = path.join(__dirname, "..", filename);
|