isaacscript 2.0.11 → 2.0.14-dev.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/README.md +8 -4
- package/package.json +2 -53
- package/src/checkForWindowsTerminalBugs.d.ts +5 -0
- package/src/checkForWindowsTerminalBugs.js +80 -0
- package/src/checkForWindowsTerminalBugs.js.map +1 -0
- package/src/commands/copy/copy.d.ts +3 -0
- package/src/commands/copy/copy.js +33 -0
- package/src/commands/copy/copy.js.map +1 -0
- package/src/commands/init/checkIfProjectPathExists.d.ts +1 -0
- package/src/commands/init/checkIfProjectPathExists.js +30 -0
- package/src/commands/init/checkIfProjectPathExists.js.map +1 -0
- package/src/commands/init/checkModSubdirectory.d.ts +1 -0
- package/src/commands/init/checkModSubdirectory.js +16 -0
- package/src/commands/init/checkModSubdirectory.js.map +1 -0
- package/src/commands/init/checkModTargetDirectory.d.ts +1 -0
- package/src/commands/init/checkModTargetDirectory.js +33 -0
- package/src/commands/init/checkModTargetDirectory.js.map +1 -0
- package/src/commands/init/createMod.d.ts +1 -0
- package/{dist/src → src}/commands/init/createMod.js +137 -162
- package/src/commands/init/createMod.js.map +1 -0
- package/src/commands/init/getModsDir.d.ts +1 -0
- package/src/commands/init/getModsDir.js +58 -0
- package/src/commands/init/getModsDir.js.map +1 -0
- package/src/commands/init/getProjectPath.d.ts +1 -0
- package/src/commands/init/getProjectPath.js +93 -0
- package/src/commands/init/getProjectPath.js.map +1 -0
- package/src/commands/init/git.d.ts +4 -0
- package/{dist/src → src}/commands/init/git.js +152 -175
- package/src/commands/init/git.js.map +1 -0
- package/src/commands/init/init.d.ts +1 -0
- package/src/commands/init/init.js +70 -0
- package/src/commands/init/init.js.map +1 -0
- package/src/commands/init/installVSCodeExtensions.d.ts +1 -0
- package/src/commands/init/installVSCodeExtensions.js +33 -0
- package/src/commands/init/installVSCodeExtensions.js.map +1 -0
- package/src/commands/init/promptSaveSlot.d.ts +1 -0
- package/src/commands/init/promptSaveSlot.js +25 -0
- package/src/commands/init/promptSaveSlot.js.map +1 -0
- package/src/commands/init/promptVSCode.d.ts +1 -0
- package/src/commands/init/promptVSCode.js +27 -0
- package/src/commands/init/promptVSCode.js.map +1 -0
- package/src/commands/monitor/constants.d.ts +1 -0
- package/{dist/src → src}/commands/monitor/constants.js +4 -4
- package/src/commands/monitor/constants.js.map +1 -0
- package/src/commands/monitor/copyWatcherMod.d.ts +2 -0
- package/{dist/src → src}/commands/monitor/copyWatcherMod.js +38 -63
- package/src/commands/monitor/copyWatcherMod.js.map +1 -0
- package/src/commands/monitor/modDirectorySyncer/modDirectorySyncer.d.ts +1 -0
- package/{dist/src → src}/commands/monitor/modDirectorySyncer/modDirectorySyncer.js +49 -51
- package/src/commands/monitor/modDirectorySyncer/modDirectorySyncer.js.map +1 -0
- package/src/commands/monitor/monitor.d.ts +2 -0
- package/{dist/src → src}/commands/monitor/monitor.js +146 -171
- package/src/commands/monitor/monitor.js.map +1 -0
- package/src/commands/monitor/notifyGame.d.ts +3 -0
- package/{dist/src → src}/commands/monitor/notifyGame.js +57 -59
- package/src/commands/monitor/notifyGame.js.map +1 -0
- package/src/commands/monitor/saveDatWriter/saveDatWriter.d.ts +1 -0
- package/{dist/src → src}/commands/monitor/saveDatWriter/saveDatWriter.js +116 -141
- package/src/commands/monitor/saveDatWriter/saveDatWriter.js.map +1 -0
- package/src/commands/monitor/saveDatWriter/types.d.ts +5 -0
- package/{dist/src → src}/commands/monitor/saveDatWriter/types.js +2 -2
- package/src/commands/monitor/saveDatWriter/types.js.map +1 -0
- package/src/commands/monitor/spawnSaveDatWriter.d.ts +4 -0
- package/{dist/src → src}/commands/monitor/spawnSaveDatWriter.js +34 -36
- package/src/commands/monitor/spawnSaveDatWriter.js.map +1 -0
- package/src/commands/monitor/touchWatcherSaveDatFiles.d.ts +2 -0
- package/src/commands/monitor/touchWatcherSaveDatFiles.js +21 -0
- package/src/commands/monitor/touchWatcherSaveDatFiles.js.map +1 -0
- package/src/commands/publish/publish.d.ts +2 -0
- package/{dist/src → src}/commands/publish/publish.js +220 -260
- package/src/commands/publish/publish.js.map +1 -0
- package/src/configFile.d.ts +4 -0
- package/src/configFile.js +66 -0
- package/src/configFile.js.map +1 -0
- package/src/constants.d.ts +34 -0
- package/{dist/src → src}/constants.js +59 -61
- package/src/constants.js.map +1 -0
- package/src/exec.d.ts +4 -0
- package/{dist/src → src}/exec.js +95 -97
- package/src/exec.js.map +1 -0
- package/src/file.d.ts +12 -0
- package/{dist/src → src}/file.js +193 -195
- package/src/file.js.map +1 -0
- package/src/main.d.ts +2 -0
- package/src/main.js +122 -0
- package/src/main.js.map +1 -0
- package/src/parseArgs.d.ts +1 -0
- package/{dist/src → src}/parseArgs.js +106 -108
- package/src/parseArgs.js.map +1 -0
- package/src/prompt.d.ts +5 -0
- package/src/prompt.js +93 -0
- package/src/prompt.js.map +1 -0
- package/src/types/Command.d.ts +2 -0
- package/{dist/src → src}/types/Command.js +4 -4
- package/src/types/Command.js.map +1 -0
- package/src/types/Config.d.ts +18 -0
- package/{dist/src → src}/types/Config.js +12 -12
- package/src/types/Config.js.map +1 -0
- package/src/types/GitHubCLIHostsYAML.d.ts +7 -0
- package/{dist/src → src}/types/GitHubCLIHostsYAML.js +2 -2
- package/src/types/GitHubCLIHostsYAML.js.map +1 -0
- package/src/utils.d.ts +13 -0
- package/{dist/src → src}/utils.js +81 -83
- package/src/utils.js.map +1 -0
- package/src/validateInIsaacScriptProject.d.ts +1 -0
- package/src/validateInIsaacScriptProject.js +27 -0
- package/src/validateInIsaacScriptProject.js.map +1 -0
- package/src/validateNodeVersion.d.ts +5 -0
- package/{dist/src → src}/validateNodeVersion.js +24 -26
- package/src/validateNodeVersion.js.map +1 -0
- package/src/validateOS.d.ts +1 -0
- package/{dist/src → src}/validateOS.js +16 -18
- package/src/validateOS.js.map +1 -0
- package/LICENSE +0 -674
- package/dist/package.json +0 -57
- package/dist/src/checkForWindowsTerminalBugs.js +0 -101
- package/dist/src/commands/copy/copy.js +0 -58
- package/dist/src/commands/init/checkIfProjectPathExists.js +0 -53
- package/dist/src/commands/init/checkModSubdirectory.js +0 -41
- package/dist/src/commands/init/checkModTargetDirectory.js +0 -56
- package/dist/src/commands/init/getModsDir.js +0 -81
- package/dist/src/commands/init/getProjectPath.js +0 -91
- package/dist/src/commands/init/init.js +0 -68
- package/dist/src/commands/init/installVSCodeExtensions.js +0 -58
- package/dist/src/commands/init/promptSaveSlot.js +0 -22
- package/dist/src/commands/init/promptVSCode.js +0 -27
- package/dist/src/commands/monitor/touchWatcherSaveDatFiles.js +0 -46
- package/dist/src/configFile.js +0 -89
- package/dist/src/main.js +0 -136
- package/dist/src/prompt.js +0 -89
- package/dist/src/validateInIsaacScriptProject.js +0 -52
- package/isaacscript-watcher/.luacheckrc +0 -96
- package/isaacscript-watcher/README.md +0 -8
- package/isaacscript-watcher/main.lua +0 -270
- package/isaacscript-watcher/metadata.xml +0 -7
- package/isaacscript-watcher/resources/gfx/logo.anm2 +0 -27
- package/isaacscript-watcher/resources/gfx/logo.png +0 -0
package/{dist/src → src}/file.js
RENAMED
|
@@ -1,196 +1,194 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
exports.writeTry = writeTry;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeTry = exports.write = exports.touch = exports.rename = exports.read = exports.makeDir = exports.isSubDirOf = exports.isDir = exports.getDirList = exports.exists = exports.deleteFileOrDirectory = exports.copy = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
const utils_1 = require("./utils");
|
|
9
|
+
function copy(srcPath, dstPath, verbose) {
|
|
10
|
+
if (verbose) {
|
|
11
|
+
console.log(`Copying: ${srcPath} --> ${dstPath}`);
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
// `copySync` is a `fs-extra` method for copying directories recursively.
|
|
15
|
+
fs_extra_1.default.copySync(srcPath, dstPath, {
|
|
16
|
+
recursive: true,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
(0, utils_1.error)(`Failed to copy directory "${chalk_1.default.green(srcPath)}" to "${chalk_1.default.green(dstPath)}":`, err);
|
|
21
|
+
}
|
|
22
|
+
if (verbose) {
|
|
23
|
+
console.log(`Copied: ${srcPath} --> ${dstPath}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.copy = copy;
|
|
27
|
+
function deleteFileOrDirectory(filePath, verbose) {
|
|
28
|
+
if (verbose) {
|
|
29
|
+
console.log(`Deleting: ${filePath}`);
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
fs_extra_1.default.rmSync(filePath, {
|
|
33
|
+
recursive: true,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
(0, utils_1.error)(`Failed to delete file or directory "${chalk_1.default.green(filePath)}":`, err);
|
|
38
|
+
}
|
|
39
|
+
if (verbose) {
|
|
40
|
+
console.log(`Deleted: ${filePath}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.deleteFileOrDirectory = deleteFileOrDirectory;
|
|
44
|
+
function exists(filePath, verbose) {
|
|
45
|
+
if (verbose) {
|
|
46
|
+
console.log(`Checking to see if the following path exists: ${filePath}`);
|
|
47
|
+
}
|
|
48
|
+
let pathExists;
|
|
49
|
+
try {
|
|
50
|
+
pathExists = fs_extra_1.default.existsSync(filePath);
|
|
51
|
+
}
|
|
52
|
+
catch (err) {
|
|
53
|
+
(0, utils_1.error)(`Failed to check if "${chalk_1.default.green(filePath)}" exists:`, err);
|
|
54
|
+
}
|
|
55
|
+
if (verbose) {
|
|
56
|
+
console.log(`Path exists: ${pathExists}`);
|
|
57
|
+
}
|
|
58
|
+
return pathExists;
|
|
59
|
+
}
|
|
60
|
+
exports.exists = exists;
|
|
61
|
+
function getDirList(dirPath, verbose) {
|
|
62
|
+
if (verbose) {
|
|
63
|
+
console.log(`Getting a directory list from: ${dirPath}`);
|
|
64
|
+
}
|
|
65
|
+
let fileList;
|
|
66
|
+
try {
|
|
67
|
+
fileList = fs_extra_1.default.readdirSync(dirPath);
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
(0, utils_1.error)(`Failed to get the files in the "${chalk_1.default.green(dirPath)}" directory:`, err);
|
|
71
|
+
}
|
|
72
|
+
if (verbose) {
|
|
73
|
+
console.log(`Got a directory list from: ${dirPath}`);
|
|
74
|
+
}
|
|
75
|
+
return fileList;
|
|
76
|
+
}
|
|
77
|
+
exports.getDirList = getDirList;
|
|
78
|
+
function getFileStats(filePath, verbose) {
|
|
79
|
+
if (verbose) {
|
|
80
|
+
console.log(`Getting file stats from: ${filePath}`);
|
|
81
|
+
}
|
|
82
|
+
let fileStats;
|
|
83
|
+
try {
|
|
84
|
+
fileStats = fs_extra_1.default.statSync(filePath);
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
(0, utils_1.error)(`Failed to get the file stats for "${chalk_1.default.green(filePath)}":`, err);
|
|
88
|
+
}
|
|
89
|
+
if (verbose) {
|
|
90
|
+
console.log(`Got file stats from: ${filePath}`);
|
|
91
|
+
}
|
|
92
|
+
return fileStats;
|
|
93
|
+
}
|
|
94
|
+
function isDir(filePath, verbose) {
|
|
95
|
+
const fileStats = getFileStats(filePath, verbose);
|
|
96
|
+
return fileStats.isDirectory();
|
|
97
|
+
}
|
|
98
|
+
exports.isDir = isDir;
|
|
99
|
+
function isSubDirOf(dir, parent) {
|
|
100
|
+
const relative = path_1.default.relative(parent, dir);
|
|
101
|
+
return (relative !== "" && !relative.startsWith("..") && !path_1.default.isAbsolute(relative));
|
|
102
|
+
}
|
|
103
|
+
exports.isSubDirOf = isSubDirOf;
|
|
104
|
+
function makeDir(dirPath, verbose) {
|
|
105
|
+
if (verbose) {
|
|
106
|
+
console.log(`Making a directory: ${dirPath}`);
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
fs_extra_1.default.mkdirSync(dirPath, {
|
|
110
|
+
recursive: true,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
catch (err) {
|
|
114
|
+
(0, utils_1.error)(`Failed to create the "${chalk_1.default.green(dirPath)}" directory:`, err);
|
|
115
|
+
}
|
|
116
|
+
if (verbose) {
|
|
117
|
+
console.log(`Made a directory: ${dirPath}`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.makeDir = makeDir;
|
|
121
|
+
function read(filePath, verbose) {
|
|
122
|
+
if (verbose) {
|
|
123
|
+
console.log(`Reading a file: ${filePath}`);
|
|
124
|
+
}
|
|
125
|
+
let fileContents;
|
|
126
|
+
try {
|
|
127
|
+
fileContents = fs_extra_1.default.readFileSync(filePath, "utf8");
|
|
128
|
+
}
|
|
129
|
+
catch (err) {
|
|
130
|
+
(0, utils_1.error)(`Failed to read the "${chalk_1.default.green(filePath)}" file:`, err);
|
|
131
|
+
}
|
|
132
|
+
if (verbose) {
|
|
133
|
+
console.log(`Read a file: ${filePath}`);
|
|
134
|
+
}
|
|
135
|
+
return fileContents;
|
|
136
|
+
}
|
|
137
|
+
exports.read = read;
|
|
138
|
+
function rename(srcPath, dstPath, verbose) {
|
|
139
|
+
if (verbose) {
|
|
140
|
+
console.log(`Renaming: ${srcPath} --> ${dstPath}`);
|
|
141
|
+
}
|
|
142
|
+
try {
|
|
143
|
+
fs_extra_1.default.renameSync(srcPath, dstPath);
|
|
144
|
+
}
|
|
145
|
+
catch (err) {
|
|
146
|
+
(0, utils_1.error)(`Failed to rename "${chalk_1.default.green(srcPath)}" to "${chalk_1.default.green(dstPath)}":`, err);
|
|
147
|
+
}
|
|
148
|
+
if (verbose) {
|
|
149
|
+
console.log(`Renamed: ${srcPath} --> ${dstPath}`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.rename = rename;
|
|
153
|
+
function touch(filePath, verbose) {
|
|
154
|
+
if (verbose) {
|
|
155
|
+
console.log(`Touching: ${filePath}`);
|
|
156
|
+
}
|
|
157
|
+
try {
|
|
158
|
+
const fileHandle = fs_extra_1.default.openSync(filePath, "w");
|
|
159
|
+
fs_extra_1.default.closeSync(fileHandle);
|
|
160
|
+
}
|
|
161
|
+
catch (err) {
|
|
162
|
+
(0, utils_1.error)(`Failed to touch the "${chalk_1.default.green(filePath)}" file:`, err);
|
|
163
|
+
}
|
|
164
|
+
if (verbose) {
|
|
165
|
+
console.log(`Touched: ${filePath}`);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
exports.touch = touch;
|
|
169
|
+
function write(filePath, data, verbose) {
|
|
170
|
+
if (verbose) {
|
|
171
|
+
console.log(`Writing data to: ${filePath}`);
|
|
172
|
+
}
|
|
173
|
+
try {
|
|
174
|
+
fs_extra_1.default.writeFileSync(filePath, data);
|
|
175
|
+
}
|
|
176
|
+
catch (err) {
|
|
177
|
+
(0, utils_1.error)(`Failed to write to the "${chalk_1.default.green(filePath)}" file:`, err);
|
|
178
|
+
}
|
|
179
|
+
if (verbose) {
|
|
180
|
+
console.log(`Wrote data to: ${filePath}`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
exports.write = write;
|
|
184
|
+
function writeTry(filePath, data, verbose) {
|
|
185
|
+
if (verbose) {
|
|
186
|
+
console.log(`Writing data to: ${filePath}`);
|
|
187
|
+
}
|
|
188
|
+
fs_extra_1.default.writeFileSync(filePath, data);
|
|
189
|
+
if (verbose) {
|
|
190
|
+
console.log(`Wrote data to: ${filePath}`);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.writeTry = writeTry;
|
|
196
194
|
//# sourceMappingURL=file.js.map
|
package/src/file.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/file.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,gEAA0B;AAC1B,wDAAwB;AACxB,mCAAgC;AAEhC,SAAg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eAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;KACpE;IAED,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC;KACrC;AACH,CAAC;AAfD,sBAeC;AAED,SAAgB,KAAK,CAAC,QAAgB,EAAE,IAAY,EAAE,OAAgB;IACpE,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,oBAAoB,QAAQ,EAAE,CAAC,CAAC;KAC7C;IAED,IAAI;QACF,kBAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;KAClC;IAAC,OAAO,GAAG,EAAE;QACZ,IAAA,aAAK,EAAC,2BAA2B,eAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;KACvE;IAED,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,kBAAkB,QAAQ,EAAE,CAAC,CAAC;KAC3C;AACH,CAAC;AAdD,sBAcC;AAED,SAAgB,QAAQ,CACtB,QAAgB,EAChB,IAAY,EACZ,OAAgB;IAEhB,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,oBAAoB,QAAQ,EAAE,CAAC,CAAC;KAC7C;IAED,kBAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAEjC,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,kBAAkB,QAAQ,EAAE,CAAC,CAAC;KAC3C;AACH,CAAC;AAdD,4BAcC"}
|
package/src/main.d.ts
ADDED
package/src/main.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const dotenv = tslib_1.__importStar(require("dotenv"));
|
|
7
|
+
const figlet_1 = tslib_1.__importDefault(require("figlet"));
|
|
8
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
+
const source_map_support_1 = tslib_1.__importDefault(require("source-map-support"));
|
|
10
|
+
const update_notifier_1 = tslib_1.__importDefault(require("update-notifier"));
|
|
11
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
12
|
+
const checkForWindowsTerminalBugs_1 = require("./checkForWindowsTerminalBugs");
|
|
13
|
+
const copy_1 = require("./commands/copy/copy");
|
|
14
|
+
const init_1 = require("./commands/init/init");
|
|
15
|
+
const monitor_1 = require("./commands/monitor/monitor");
|
|
16
|
+
const publish_1 = require("./commands/publish/publish");
|
|
17
|
+
const configFile = tslib_1.__importStar(require("./configFile"));
|
|
18
|
+
const constants_1 = require("./constants");
|
|
19
|
+
const exec_1 = require("./exec");
|
|
20
|
+
const file = tslib_1.__importStar(require("./file"));
|
|
21
|
+
const parseArgs_1 = require("./parseArgs");
|
|
22
|
+
const prompt_1 = require("./prompt");
|
|
23
|
+
const Command_1 = require("./types/Command");
|
|
24
|
+
const Config_1 = require("./types/Config");
|
|
25
|
+
const utils_1 = require("./utils");
|
|
26
|
+
const validateInIsaacScriptProject_1 = require("./validateInIsaacScriptProject");
|
|
27
|
+
const validateNodeVersion_1 = require("./validateNodeVersion");
|
|
28
|
+
const validateOS_1 = require("./validateOS");
|
|
29
|
+
main().catch((err) => {
|
|
30
|
+
(0, utils_1.error)(`${constants_1.PROJECT_NAME} failed:`, err);
|
|
31
|
+
});
|
|
32
|
+
function main() {
|
|
33
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
source_map_support_1.default.install();
|
|
35
|
+
(0, prompt_1.promptInit)();
|
|
36
|
+
(0, validateNodeVersion_1.validateNodeVersion)();
|
|
37
|
+
(0, validateOS_1.validateOS)();
|
|
38
|
+
loadEnvironmentVariables();
|
|
39
|
+
// Get command line arguments.
|
|
40
|
+
const argv = (0, parseArgs_1.parseArgs)();
|
|
41
|
+
const verbose = argv["verbose"] === true;
|
|
42
|
+
printBanner();
|
|
43
|
+
// Check for a new version.
|
|
44
|
+
(0, update_notifier_1.default)({ pkg: package_json_1.default }).notify();
|
|
45
|
+
// Pre-flight checks.
|
|
46
|
+
yield (0, checkForWindowsTerminalBugs_1.checkForWindowsTerminalBugs)(verbose);
|
|
47
|
+
yield handleCommands(argv, verbose);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function loadEnvironmentVariables() {
|
|
51
|
+
const envFile = path_1.default.join(constants_1.CWD, ".env");
|
|
52
|
+
dotenv.config({ path: envFile });
|
|
53
|
+
}
|
|
54
|
+
function printBanner() {
|
|
55
|
+
const banner = figlet_1.default.textSync(constants_1.PROJECT_NAME);
|
|
56
|
+
console.log(chalk_1.default.green(banner));
|
|
57
|
+
const bannerLines = banner.split("\n");
|
|
58
|
+
const firstBannerLine = bannerLines[0];
|
|
59
|
+
if (firstBannerLine === undefined) {
|
|
60
|
+
throw new Error("Failed to get the first line of the banner text.");
|
|
61
|
+
}
|
|
62
|
+
const bannerLineLength = firstBannerLine.length;
|
|
63
|
+
const version = `v${package_json_1.default.version}`;
|
|
64
|
+
const leftPaddingAmount = Math.floor((bannerLineLength + version.length) / 2);
|
|
65
|
+
const versionLine = version.padStart(leftPaddingAmount);
|
|
66
|
+
console.log(versionLine);
|
|
67
|
+
console.log();
|
|
68
|
+
}
|
|
69
|
+
function handleCommands(argv, verbose) {
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const positionalArgs = argv["_"];
|
|
72
|
+
let command;
|
|
73
|
+
if (positionalArgs.length > 0) {
|
|
74
|
+
command = positionalArgs[0];
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
command = Command_1.DEFAULT_COMMAND;
|
|
78
|
+
}
|
|
79
|
+
let config = new Config_1.Config();
|
|
80
|
+
if (command !== "init") {
|
|
81
|
+
(0, validateInIsaacScriptProject_1.validateInIsaacScriptProject)(verbose);
|
|
82
|
+
config = yield configFile.get(argv);
|
|
83
|
+
ensureDepsAreInstalled(verbose);
|
|
84
|
+
}
|
|
85
|
+
switch (command) {
|
|
86
|
+
case "monitor": {
|
|
87
|
+
(0, monitor_1.monitor)(argv, config);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
case "init": {
|
|
91
|
+
yield (0, init_1.init)(argv);
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
case "copy": {
|
|
95
|
+
(0, copy_1.copy)(argv, config);
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
case "publish": {
|
|
99
|
+
(0, publish_1.publish)(argv, config);
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
default: {
|
|
103
|
+
(0, utils_1.ensureAllCases)(command);
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (command !== "monitor") {
|
|
108
|
+
process.exit(0);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function ensureDepsAreInstalled(verbose) {
|
|
113
|
+
if (file.exists(constants_1.YARN_LOCK_PATH, verbose)) {
|
|
114
|
+
console.log('Running "yarn" to ensure that the project\'s dependencies are installed correctly.');
|
|
115
|
+
(0, exec_1.execShell)("yarn");
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
// https://stackoverflow.com/questions/57016579/checking-if-package-json-dependencies-match-the-installed-dependencies
|
|
119
|
+
console.log('Running "npm install" to ensure that the project\'s dependencies are installed correctly.');
|
|
120
|
+
(0, exec_1.execShell)("npm", ["install"], verbose);
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=main.js.map
|
package/src/main.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/main.ts"],"names":[],"mappings":";;;;AAEA,0DA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