isaacscript 2.9.14 → 2.10.1-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/custom-stage/isaacscript-custom-stage/black.anm2 +27 -0
- package/custom-stage/isaacscript-custom-stage/black.png +0 -0
- package/custom-stage/xml-converter.exe +0 -0
- package/file-templates/static/gitattributes +8 -0
- package/package.json +5 -3
- package/schemas/tsconfig-isaacscript-section-schema.json +105 -136
- package/src/commands/init/init.js +3 -3
- package/src/commands/init/init.js.map +1 -1
- package/src/commands/init/installVSCodeExtensions.js +1 -1
- package/src/commands/init/installVSCodeExtensions.js.map +1 -1
- package/src/commands/init/promptVSCode.js +6 -1
- package/src/commands/init/promptVSCode.js.map +1 -1
- package/src/commands/publish/publish.js +2 -2
- package/src/commands/publish/publish.js.map +1 -1
- package/src/common.js +4 -4
- package/src/common.js.map +1 -1
- package/src/configFile.js +3 -3
- package/src/configFile.js.map +1 -1
- package/src/constants.js +2 -1
- package/src/constants.js.map +1 -1
- package/src/customStage.js +5 -3
- package/src/customStage.js.map +1 -1
- package/src/exec.js +2 -2
- package/src/exec.js.map +1 -1
- package/src/main.js +14 -0
- package/src/main.js.map +1 -1
- package/src/tsconfig.js +16 -16
- package/src/tsconfig.js.map +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<AnimatedActor>
|
|
2
|
+
<Info CreatedBy="Unknown" CreatedOn="2/1/2017 6:09:20 AM" Version="2" Fps="30"/>
|
|
3
|
+
<Content>
|
|
4
|
+
<Spritesheets>
|
|
5
|
+
<Spritesheet Path="black.png" Id="0"/>
|
|
6
|
+
</Spritesheets>
|
|
7
|
+
<Layers>
|
|
8
|
+
<Layer Name="Layer 0" Id="0" SpritesheetId="0"/>
|
|
9
|
+
</Layers>
|
|
10
|
+
<Nulls/>
|
|
11
|
+
<Events/>
|
|
12
|
+
</Content>
|
|
13
|
+
<Animations DefaultAnimation="Default">
|
|
14
|
+
<Animation Name="Default" FrameNum="1" Loop="true">
|
|
15
|
+
<RootAnimation>
|
|
16
|
+
<Frame XPosition="0" YPosition="0" XScale="100" YScale="100" Delay="1" Visible="true" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
17
|
+
</RootAnimation>
|
|
18
|
+
<LayerAnimations>
|
|
19
|
+
<LayerAnimation LayerId="0" Visible="true">
|
|
20
|
+
<Frame XPosition="0" YPosition="0" XPivot="0" YPivot="0" XCrop="0" YCrop="0" Width="100" Height="100" XScale="3000" YScale="3000" Delay="1" Visible="true" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
21
|
+
</LayerAnimation>
|
|
22
|
+
</LayerAnimations>
|
|
23
|
+
<NullAnimations/>
|
|
24
|
+
<Triggers/>
|
|
25
|
+
</Animation>
|
|
26
|
+
</Animations>
|
|
27
|
+
</AnimatedActor>
|
|
Binary file
|
|
Binary file
|
|
@@ -7,3 +7,11 @@ pull.rebase=true
|
|
|
7
7
|
|
|
8
8
|
# Convert all files to use "\n" line endings.
|
|
9
9
|
* text=auto eol=lf
|
|
10
|
+
|
|
11
|
+
# Specify the file type for VSCode/TypeScript files.
|
|
12
|
+
.vscode/extensions.json linguist-language=JSON-with-Comments
|
|
13
|
+
.vscode/settings.json linguist-language=JSON-with-Comments
|
|
14
|
+
api-extractor.json linguist-language=JSON-with-Comments
|
|
15
|
+
tsconfig.*.json linguist-language=JSON-with-Comments
|
|
16
|
+
tsconfig.json linguist-language=JSON-with-Comments
|
|
17
|
+
typedoc.json linguist-language=JSON-with-Comments
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1-dev.0",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -33,16 +33,18 @@
|
|
|
33
33
|
"figlet": "^1.5.2",
|
|
34
34
|
"fs-extra": "^10.1.0",
|
|
35
35
|
"git-dirty": "^1.0.2",
|
|
36
|
+
"glob": "^8.0.3",
|
|
36
37
|
"isaacscript-tsconfig": "^2.0.0",
|
|
37
38
|
"jsonc-parser": "^3.1.0",
|
|
38
39
|
"moment": "^2.29.4",
|
|
39
|
-
"npm-check-updates": "^
|
|
40
|
+
"npm-check-updates": "^16.0.5",
|
|
40
41
|
"prompt": "^1.3.0",
|
|
41
42
|
"source-map-support": "^0.5.21",
|
|
42
43
|
"sync-directory": "^5.1.7",
|
|
43
44
|
"tslib": "^2.4.0",
|
|
44
|
-
"typescript-to-lua": "^1.7.
|
|
45
|
+
"typescript-to-lua": "^1.7.1",
|
|
45
46
|
"update-notifier": "5.1.0",
|
|
47
|
+
"validate-with-xmllint": "^1.2.0",
|
|
46
48
|
"xml2js": "^0.4.23",
|
|
47
49
|
"yaml": "^2.1.1",
|
|
48
50
|
"yargs": "^17.5.1"
|
|
@@ -2,6 +2,62 @@
|
|
|
2
2
|
"$ref": "#/definitions/IsaacScriptTSConfig",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
|
+
"CustomStageBossPoolEntry": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"description": "An object that represents a possible boss for a custom stage.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"description": "The name of the boss. This must correspond to the entry in \"entities2.xml\".\n\nNote that since there is no way to determine the corresponding `EntityType` of the boss during compile-time, you must specify the `EntityType` at run-time when your mod first loads using the `registerCustomBoss` helper function.",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"weight": {
|
|
14
|
+
"description": "The weight of the boss. This is used when randomly selecting which boss to use for the floor. For example, use a value of 1 if you want this boss to be equally likely as any other boss, 0.5 if you want it to be half as likely, 2 if you want it to be twice as likely, and so on.",
|
|
15
|
+
"type": "number"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["name", "weight"],
|
|
19
|
+
"type": "object"
|
|
20
|
+
},
|
|
21
|
+
"CustomStageShadow": {
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
|
|
24
|
+
"properties": {
|
|
25
|
+
"color": {
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
|
|
28
|
+
"properties": {
|
|
29
|
+
"a": {
|
|
30
|
+
"maximum": 1,
|
|
31
|
+
"minimum": 0,
|
|
32
|
+
"type": "number"
|
|
33
|
+
},
|
|
34
|
+
"b": {
|
|
35
|
+
"maximum": 1,
|
|
36
|
+
"minimum": 0,
|
|
37
|
+
"type": "number"
|
|
38
|
+
},
|
|
39
|
+
"g": {
|
|
40
|
+
"maximum": 1,
|
|
41
|
+
"minimum": 0,
|
|
42
|
+
"type": "number"
|
|
43
|
+
},
|
|
44
|
+
"r": {
|
|
45
|
+
"maximum": 1,
|
|
46
|
+
"minimum": 0,
|
|
47
|
+
"type": "number"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": ["r", "g", "b", "a"],
|
|
51
|
+
"type": "object"
|
|
52
|
+
},
|
|
53
|
+
"pngPath": {
|
|
54
|
+
"description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `resources/gfx/overlays/basement/1x1_overlay_1.png`",
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": ["pngPath"],
|
|
59
|
+
"type": "object"
|
|
60
|
+
},
|
|
5
61
|
"CustomStageTSConfig": {
|
|
6
62
|
"additionalProperties": false,
|
|
7
63
|
"description": "This is the format of a custom stage in the \"isaacscript\" section of the \"tsconfig.json\" file.\n\nThe contents of this interface are used to create a \"tsconfig-isaacscript-section-schema.json\" schema with the \"ts-json-schema-generator\" library.\n\nThe contents of this interface are validated at run-time against the schema using the Ajv library.\n\nThe `CustomStageLua` interface extends this, adding room metadata.",
|
|
@@ -44,14 +100,25 @@
|
|
|
44
100
|
},
|
|
45
101
|
"baseStage": {
|
|
46
102
|
"description": "Optional. An integer between 2 and 13, corresponding to the `LevelStage` enum. This is the number of the stage that will be warped to and used as a basis for the stage by the level generation algorithm.\n\n(It is not possible to use Basement 1 as a base stage due to conflicts with the `Game.SetStage` method.)\n\nIf not specified, `LevelStage.BASEMENT_2` (2) will be used.",
|
|
103
|
+
"maximum": 13,
|
|
104
|
+
"minimum": 2,
|
|
47
105
|
"type": "number"
|
|
48
106
|
},
|
|
49
107
|
"baseStageType": {
|
|
50
108
|
"description": "Optional. An integer between 0 and 5, corresponding to the `StageType` enum. This is the number of the stage type that will be warped to and used as a basis for the stage by the level generation algorithm.\n\nIf not specified, `StageType.ORIGINAL` (0) will be used.",
|
|
109
|
+
"maximum": 5,
|
|
110
|
+
"minimum": 0,
|
|
51
111
|
"type": "number"
|
|
52
112
|
},
|
|
113
|
+
"bossPool": {
|
|
114
|
+
"description": "Optional. An array containing the bosses that should be used for the stage.",
|
|
115
|
+
"items": {
|
|
116
|
+
"$ref": "#/definitions/CustomStageBossPoolEntry"
|
|
117
|
+
},
|
|
118
|
+
"type": "array"
|
|
119
|
+
},
|
|
53
120
|
"decorationsPNGPath": {
|
|
54
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the decorations for the floor.\n\nIf not specified, the vanilla Basement decorations spritesheet will be used. For reference, this is located at: `
|
|
121
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the decorations for the floor.\n\nIf not specified, the vanilla Basement decorations spritesheet will be used. For reference, this is located at: `resources/gfx/grid/props_01_basement.png`",
|
|
55
122
|
"type": "string"
|
|
56
123
|
},
|
|
57
124
|
"doorPNGPaths": {
|
|
@@ -59,51 +126,51 @@
|
|
|
59
126
|
"description": "Optional. A collection of paths that contain graphics for the doors of the floor. If not specified, the doors for Basement will be used.",
|
|
60
127
|
"properties": {
|
|
61
128
|
"angelRoom": {
|
|
62
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Angel Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
129
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Angel Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_07_holyroomdoor.png`",
|
|
63
130
|
"type": "string"
|
|
64
131
|
},
|
|
65
132
|
"arcade": {
|
|
66
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the arcade doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
133
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the arcade doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_05_arcaderoomdoor.png`",
|
|
67
134
|
"type": "string"
|
|
68
135
|
},
|
|
69
136
|
"bossChallengeRoom": {
|
|
70
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
137
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_09_bossambushroomdoor.png`",
|
|
71
138
|
"type": "string"
|
|
72
139
|
},
|
|
73
140
|
"bossRoom": {
|
|
74
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
141
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_10_bossroomdoor.png`",
|
|
75
142
|
"type": "string"
|
|
76
143
|
},
|
|
77
144
|
"bossRush": {
|
|
78
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Rush doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
145
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Rush doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_15_bossrushdoor.png`",
|
|
79
146
|
"type": "string"
|
|
80
147
|
},
|
|
81
148
|
"chestRoom": {
|
|
82
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Chest Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
149
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Chest Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_02b_chestroomdoor.png`",
|
|
83
150
|
"type": "string"
|
|
84
151
|
},
|
|
85
152
|
"curseRoom": {
|
|
86
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Curse Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
153
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Curse Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_04_selfsacrificeroomdoor.png`",
|
|
87
154
|
"type": "string"
|
|
88
155
|
},
|
|
89
156
|
"devilRoom": {
|
|
90
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Devil Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
157
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Devil Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_07_devilroomdoor.png`",
|
|
91
158
|
"type": "string"
|
|
92
159
|
},
|
|
93
160
|
"normal": {
|
|
94
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the normal doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
161
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the normal doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_01_normaldoor.png`",
|
|
95
162
|
"type": "string"
|
|
96
163
|
},
|
|
97
164
|
"normalChallengeRoom": {
|
|
98
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the normal Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
165
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the normal Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_03_ambushroomdoor.png`",
|
|
99
166
|
"type": "string"
|
|
100
167
|
},
|
|
101
168
|
"secretRoom": {
|
|
102
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Secret Room and Super Secret Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
169
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Secret Room and Super Secret Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_08_holeinwall.png`",
|
|
103
170
|
"type": "string"
|
|
104
171
|
},
|
|
105
172
|
"treasureRoom": {
|
|
106
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the Treasure Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `
|
|
173
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the Treasure Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_02_treasureroomdoor.png`",
|
|
107
174
|
"type": "string"
|
|
108
175
|
}
|
|
109
176
|
},
|
|
@@ -114,15 +181,17 @@
|
|
|
114
181
|
"type": "string"
|
|
115
182
|
},
|
|
116
183
|
"pitsPNGPath": {
|
|
117
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the pits for the floor.\n\nIf not specified, the vanilla Basement pits spritesheet will be used. For reference, this is located at: `
|
|
184
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the pits for the floor.\n\nIf not specified, the vanilla Basement pits spritesheet will be used. For reference, this is located at: `resources/gfx/grid/grid_pit.png`",
|
|
118
185
|
"type": "string"
|
|
119
186
|
},
|
|
120
187
|
"rocksPNGPath": {
|
|
121
|
-
"description": "Optional. The full path to the spritesheet that contains the graphics of the rocks/blocks/urns for the floor.\n\nIf specified, it is assumed that you have your own custom rock alt type, and all vanilla rewards/enemies that spawn from urns will be automatically removed. Use the `POST_GRID_ENTITY_BROKEN` callback to make your own custom rewards. Or, if you want to emulate a vanilla urn/mushroom/skull/polyp/bucket, use the `spawnRockAltReward` helper function.\n\nIf not specified, the vanilla Basement rocks spritesheet will be used. For reference, this is located at: `
|
|
188
|
+
"description": "Optional. The full path to the spritesheet that contains the graphics of the rocks/blocks/urns for the floor.\n\nIf specified, it is assumed that you have your own custom rock alt type, and all vanilla rewards/enemies that spawn from urns will be automatically removed. Use the `POST_GRID_ENTITY_BROKEN` callback to make your own custom rewards. Or, if you want to emulate a vanilla urn/mushroom/skull/polyp/bucket, use the `spawnRockAltReward` helper function.\n\nIf not specified, the vanilla Basement rocks spritesheet will be used. For reference, this is located at: `resources-dlc3/gfx/grid/rocks_basement.png`",
|
|
122
189
|
"type": "string"
|
|
123
190
|
},
|
|
124
191
|
"roomVariantPrefix": {
|
|
125
|
-
"description": "Mandatory. An arbitrarily chosen prefix in the range of 101-999 that will be unique to this stage.\n\nMake sure the chosen prefix does not conflict with any other mods. You can find a list of registered room variant prefixes on the IsaacScript website.",
|
|
192
|
+
"description": "Mandatory. An arbitrarily chosen prefix in the range of 101-999 that will be unique to this stage.\n\nMake sure the chosen prefix does not conflict with any other mods. You can find a list of registered room variant prefixes on the IsaacScript website: https://isaacscript.github.io/main/custom-stages",
|
|
193
|
+
"maximum": 109,
|
|
194
|
+
"minimum": 101,
|
|
126
195
|
"type": "number"
|
|
127
196
|
},
|
|
128
197
|
"shadows": {
|
|
@@ -132,144 +201,28 @@
|
|
|
132
201
|
"1x1": {
|
|
133
202
|
"description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_1x1` (1), `RoomShape.IH` (2), and `RoomShape.IV` (3).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
|
|
134
203
|
"items": {
|
|
135
|
-
"
|
|
136
|
-
"description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
|
|
137
|
-
"properties": {
|
|
138
|
-
"color": {
|
|
139
|
-
"additionalProperties": false,
|
|
140
|
-
"description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
|
|
141
|
-
"properties": {
|
|
142
|
-
"a": {
|
|
143
|
-
"type": "number"
|
|
144
|
-
},
|
|
145
|
-
"b": {
|
|
146
|
-
"type": "number"
|
|
147
|
-
},
|
|
148
|
-
"g": {
|
|
149
|
-
"type": "number"
|
|
150
|
-
},
|
|
151
|
-
"r": {
|
|
152
|
-
"type": "number"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"required": ["r", "g", "b", "a"],
|
|
156
|
-
"type": "object"
|
|
157
|
-
},
|
|
158
|
-
"pngPath": {
|
|
159
|
-
"description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
|
|
160
|
-
"type": "string"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"required": ["pngPath"],
|
|
164
|
-
"type": "object"
|
|
204
|
+
"$ref": "#/definitions/CustomStageShadow"
|
|
165
205
|
},
|
|
166
206
|
"type": "array"
|
|
167
207
|
},
|
|
168
208
|
"1x2": {
|
|
169
209
|
"description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_1x2` (4) and `RoomShape.IIV` (5).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
|
|
170
210
|
"items": {
|
|
171
|
-
"
|
|
172
|
-
"description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
|
|
173
|
-
"properties": {
|
|
174
|
-
"color": {
|
|
175
|
-
"additionalProperties": false,
|
|
176
|
-
"description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
|
|
177
|
-
"properties": {
|
|
178
|
-
"a": {
|
|
179
|
-
"type": "number"
|
|
180
|
-
},
|
|
181
|
-
"b": {
|
|
182
|
-
"type": "number"
|
|
183
|
-
},
|
|
184
|
-
"g": {
|
|
185
|
-
"type": "number"
|
|
186
|
-
},
|
|
187
|
-
"r": {
|
|
188
|
-
"type": "number"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"required": ["r", "g", "b", "a"],
|
|
192
|
-
"type": "object"
|
|
193
|
-
},
|
|
194
|
-
"pngPath": {
|
|
195
|
-
"description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
|
|
196
|
-
"type": "string"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"required": ["pngPath"],
|
|
200
|
-
"type": "object"
|
|
211
|
+
"$ref": "#/definitions/CustomStageShadow"
|
|
201
212
|
},
|
|
202
213
|
"type": "array"
|
|
203
214
|
},
|
|
204
215
|
"2x1": {
|
|
205
216
|
"description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_2x1` (6) and `RoomShape.IIH` (7).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
|
|
206
217
|
"items": {
|
|
207
|
-
"
|
|
208
|
-
"description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
|
|
209
|
-
"properties": {
|
|
210
|
-
"color": {
|
|
211
|
-
"additionalProperties": false,
|
|
212
|
-
"description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
|
|
213
|
-
"properties": {
|
|
214
|
-
"a": {
|
|
215
|
-
"type": "number"
|
|
216
|
-
},
|
|
217
|
-
"b": {
|
|
218
|
-
"type": "number"
|
|
219
|
-
},
|
|
220
|
-
"g": {
|
|
221
|
-
"type": "number"
|
|
222
|
-
},
|
|
223
|
-
"r": {
|
|
224
|
-
"type": "number"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
"required": ["r", "g", "b", "a"],
|
|
228
|
-
"type": "object"
|
|
229
|
-
},
|
|
230
|
-
"pngPath": {
|
|
231
|
-
"description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
|
|
232
|
-
"type": "string"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"required": ["pngPath"],
|
|
236
|
-
"type": "object"
|
|
218
|
+
"$ref": "#/definitions/CustomStageShadow"
|
|
237
219
|
},
|
|
238
220
|
"type": "array"
|
|
239
221
|
},
|
|
240
222
|
"2x2": {
|
|
241
223
|
"description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_2x2` (8), `RoomShape.LTL` (9), `RoomShape.LTR` (10), `RoomShape.LBL` (11), and `RoomShape.LBR` (12).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
|
|
242
224
|
"items": {
|
|
243
|
-
"
|
|
244
|
-
"description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
|
|
245
|
-
"properties": {
|
|
246
|
-
"color": {
|
|
247
|
-
"additionalProperties": false,
|
|
248
|
-
"description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
|
|
249
|
-
"properties": {
|
|
250
|
-
"a": {
|
|
251
|
-
"type": "number"
|
|
252
|
-
},
|
|
253
|
-
"b": {
|
|
254
|
-
"type": "number"
|
|
255
|
-
},
|
|
256
|
-
"g": {
|
|
257
|
-
"type": "number"
|
|
258
|
-
},
|
|
259
|
-
"r": {
|
|
260
|
-
"type": "number"
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
"required": ["r", "g", "b", "a"],
|
|
264
|
-
"type": "object"
|
|
265
|
-
},
|
|
266
|
-
"pngPath": {
|
|
267
|
-
"description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
|
|
268
|
-
"type": "string"
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
"required": ["pngPath"],
|
|
272
|
-
"type": "object"
|
|
225
|
+
"$ref": "#/definitions/CustomStageShadow"
|
|
273
226
|
},
|
|
274
227
|
"type": "array"
|
|
275
228
|
}
|
|
@@ -285,15 +238,23 @@
|
|
|
285
238
|
"description": "Optional. An object representing the color to use for the background of the boss \"versus\" screen. If not specified, the color for Basement 1 will be used.\n\nFor a list of the colors that correspond to the vanilla stages, see `versusScreenBackgroundColors.ts`.",
|
|
286
239
|
"properties": {
|
|
287
240
|
"a": {
|
|
241
|
+
"maximum": 1,
|
|
242
|
+
"minimum": 0,
|
|
288
243
|
"type": "number"
|
|
289
244
|
},
|
|
290
245
|
"b": {
|
|
246
|
+
"maximum": 1,
|
|
247
|
+
"minimum": 0,
|
|
291
248
|
"type": "number"
|
|
292
249
|
},
|
|
293
250
|
"g": {
|
|
251
|
+
"maximum": 1,
|
|
252
|
+
"minimum": 0,
|
|
294
253
|
"type": "number"
|
|
295
254
|
},
|
|
296
255
|
"r": {
|
|
256
|
+
"maximum": 1,
|
|
257
|
+
"minimum": 0,
|
|
297
258
|
"type": "number"
|
|
298
259
|
}
|
|
299
260
|
},
|
|
@@ -305,15 +266,23 @@
|
|
|
305
266
|
"description": "Optional. An object representing the color to use for the dirt spots in the boss \"versus\" screen. (There are two dirt spots; one for the player and one for the boss.) If not specified, the color for Basement 1 will be used.\n\nFor a list of the colors that correspond to the vanilla stages, see `versusScreenDirtSpotColors.ts`.",
|
|
306
267
|
"properties": {
|
|
307
268
|
"a": {
|
|
269
|
+
"maximum": 1,
|
|
270
|
+
"minimum": 0,
|
|
308
271
|
"type": "number"
|
|
309
272
|
},
|
|
310
273
|
"b": {
|
|
274
|
+
"maximum": 1,
|
|
275
|
+
"minimum": 0,
|
|
311
276
|
"type": "number"
|
|
312
277
|
},
|
|
313
278
|
"g": {
|
|
279
|
+
"maximum": 1,
|
|
280
|
+
"minimum": 0,
|
|
314
281
|
"type": "number"
|
|
315
282
|
},
|
|
316
283
|
"r": {
|
|
284
|
+
"maximum": 1,
|
|
285
|
+
"minimum": 0,
|
|
317
286
|
"type": "number"
|
|
318
287
|
}
|
|
319
288
|
},
|
|
@@ -37,18 +37,18 @@ async function init(args) {
|
|
|
37
37
|
const gitRemoteURL = await (0, git_1.promptGitHubRepoOrGitRemoteURL)(projectName, noGit, yes, verbose);
|
|
38
38
|
// Now that we have asked the user all of the questions we need, we can create the project.
|
|
39
39
|
(0, createMod_1.createMod)(projectName, projectPath, createNewDir, modsDirectory, saveSlot, gitRemoteURL, skipInstall, packageManager, verbose);
|
|
40
|
-
await openVSCode(projectPath, vscode, verbose);
|
|
40
|
+
await openVSCode(projectPath, vscode, yes, verbose);
|
|
41
41
|
printFinishMessage(projectPath, projectName);
|
|
42
42
|
}
|
|
43
43
|
exports.init = init;
|
|
44
|
-
async function openVSCode(projectPath, vscode, verbose) {
|
|
44
|
+
async function openVSCode(projectPath, vscode, yes, verbose) {
|
|
45
45
|
const VSCodeCommand = getVSCodeCommand();
|
|
46
46
|
if (VSCodeCommand === null) {
|
|
47
47
|
console.log('VSCode does not seem to be installed. (The "code" command is not in the path.) Skipping VSCode-related things.');
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
(0, installVSCodeExtensions_1.installVSCodeExtensions)(projectPath, VSCodeCommand, verbose);
|
|
51
|
-
await (0, promptVSCode_1.promptVSCode)(projectPath, VSCodeCommand, vscode, verbose);
|
|
51
|
+
await (0, promptVSCode_1.promptVSCode)(projectPath, VSCodeCommand, vscode, yes, verbose);
|
|
52
52
|
}
|
|
53
53
|
function getVSCodeCommand() {
|
|
54
54
|
for (const VSCodeCommand of ["code", "codium", "code-oss", "code-insiders"]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/init.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,4EAA2C;AAC3C,wDAAwB;AACxB,+CAAoD;AACpD,yDAA0E;AAE1E,yEAAsE;AACtE,iEAA8D;AAC9D,uEAAoE;AACpE,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AM,IAAA,oCAA8B,EACvD,WAAW,EACX,KAAK,EACL,GAAG,EACH,OAAO,CACR,CAAC;IAEF,2FAA2F;IAC3F,IAAA,qBAAS,EACP,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,cAAc,EACd,OAAO,CACR,CAAC;IAEF,MAAM,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/init.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,4EAA2C;AAC3C,wDAAwB;AACxB,+CAAoD;AACpD,yDAA0E;AAE1E,yEAAsE;AACtE,iEAA8D;AAC9D,uEAAoE;AACpE,2CAAwC;AACxC,6CAA0C;AAC1C,qDAAkD;AAClD,+BAAuD;AACvD,uEAAoE;AACpE,qDAAkD;AAClD,iDAA8C;AAEvC,KAAK,UAAU,IAAI,CAAC,IAAU;IACnC,MAAM,cAAc,GAAG,IAAA,mDAAkC,EAAC,IAAI,CAAC,CAAC;IAChE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC;IAClC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC;IAC9C,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,CAAC;IAClD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IACtC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACpC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC;IAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC;IAE1C,uEAAuE;IACvE,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,MAAM,IAAA,+BAAc,EACtD,IAAI,EACJ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E,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,gBAAgB;IACvB,KAAK,MAAM,aAAa,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,CAAC,EAAE;QAC3E,IAAI,wBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;YACrC,OAAO,aAAa,CAAC;SACtB;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,kBAAkB,CAAC,WAAmB,EAAE,WAAmB;IAClE,IAAI,cAAc,GAAG,EAAE,CAAC;IACxB,IAAI,WAAW,KAAK,eAAG,EAAE;QACvB,cAAc,IAAI,IAAI,eAAK,CAAC,KAAK,CAAC,MAAM,WAAW,EAAE,CAAC,QAAQ,CAAC;KAChE;IACD,cAAc,IAAI,IAAI,eAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,cAAc,wBAAY,cAAc,cAAc,GAAG,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -22,7 +22,7 @@ function getExtensionsFromJSON(projectPath, verbose) {
|
|
|
22
22
|
const extensionsJSON = (0, json_1.getJSONC)(extensionsJSONPath, verbose);
|
|
23
23
|
const { recommendations } = extensionsJSON;
|
|
24
24
|
if (!Array.isArray(recommendations)) {
|
|
25
|
-
(0, utils_1.error)('The "recommendations"
|
|
25
|
+
(0, utils_1.error)('The "recommendations" field in the "extensions.json" file is not an array.');
|
|
26
26
|
}
|
|
27
27
|
return recommendations;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installVSCodeExtensions.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/installVSCodeExtensions.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,qCAAuC;AACvC,yDAAmC;AACnC,qCAAsC;AACtC,uCAAoC;AAEpC,SAAgB,uBAAuB,CACrC,WAAmB,EACnB,aAAqB,EACrB,OAAgB;IAEhB,MAAM,UAAU,GAAG,qBAAqB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/D,KAAK,MAAM,aAAa,IAAI,UAAU,EAAE;QACtC,IAAA,gBAAS,EAAC,aAAa,EAAE,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC;KAC3E;AACH,CAAC;AATD,0DASC;AAED,SAAS,qBAAqB,CAC5B,WAAmB,EACnB,OAAgB;IAEhB,MAAM,kBAAkB,GAAG,cAAI,CAAC,IAAI,CAClC,WAAW,EACX,SAAS,EACT,iBAAiB,CAClB,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE;QAC7C,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAG,IAAA,eAAQ,EAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAE7D,MAAM,EAAE,eAAe,EAAE,GAAG,cAAc,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;QACnC,IAAA,aAAK,EACH
|
|
1
|
+
{"version":3,"file":"installVSCodeExtensions.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/installVSCodeExtensions.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,qCAAuC;AACvC,yDAAmC;AACnC,qCAAsC;AACtC,uCAAoC;AAEpC,SAAgB,uBAAuB,CACrC,WAAmB,EACnB,aAAqB,EACrB,OAAgB;IAEhB,MAAM,UAAU,GAAG,qBAAqB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/D,KAAK,MAAM,aAAa,IAAI,UAAU,EAAE;QACtC,IAAA,gBAAS,EAAC,aAAa,EAAE,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC;KAC3E;AACH,CAAC;AATD,0DASC;AAED,SAAS,qBAAqB,CAC5B,WAAmB,EACnB,OAAgB;IAEhB,MAAM,kBAAkB,GAAG,cAAI,CAAC,IAAI,CAClC,WAAW,EACX,SAAS,EACT,iBAAiB,CAClB,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE;QAC7C,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAG,IAAA,eAAQ,EAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAE7D,MAAM,EAAE,eAAe,EAAE,GAAG,cAAc,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;QACnC,IAAA,aAAK,EACH,4EAA4E,CAC7E,CAAC;KACH;IAED,OAAO,eAA2B,CAAC;AACrC,CAAC"}
|
|
@@ -6,12 +6,17 @@ const path_1 = tslib_1.__importDefault(require("path"));
|
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
const exec_1 = require("../../exec");
|
|
8
8
|
const prompt_1 = require("../../prompt");
|
|
9
|
-
async function promptVSCode(projectPath, VSCodeCommand, vscode, verbose) {
|
|
9
|
+
async function promptVSCode(projectPath, VSCodeCommand, vscode, yes, verbose) {
|
|
10
10
|
if (vscode) {
|
|
11
11
|
// They supplied the "--vscode" command-line flag, so there is no need to prompt the user.
|
|
12
12
|
openVSCode(projectPath, VSCodeCommand, verbose);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
+
if (yes) {
|
|
16
|
+
// They supplied the "--yes" command-line flag, which implies that they want a silent install,
|
|
17
|
+
// so skip opening VSCode.
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
15
20
|
const shouldOpenVSCode = await (0, prompt_1.getInputYesNo)("Do you want to open your new project in VSCode now?");
|
|
16
21
|
if (shouldOpenVSCode) {
|
|
17
22
|
openVSCode(projectPath, VSCodeCommand, verbose);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptVSCode.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/promptVSCode.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+CAA0C;AAC1C,qCAAuC;AACvC,yCAA6C;AAEtC,KAAK,UAAU,YAAY,CAChC,WAAmB,EACnB,aAAqB,EACrB,MAAe,EACf,OAAgB;IAEhB,IAAI,MAAM,EAAE;QACV,0FAA0F;QAC1F,UAAU,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;KACR;IAED,MAAM,gBAAgB,GAAG,MAAM,IAAA,sBAAa,EAC1C,qDAAqD,CACtD,CAAC;IACF,IAAI,gBAAgB,EAAE;QACpB,UAAU,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;KACjD;AACH,CAAC;
|
|
1
|
+
{"version":3,"file":"promptVSCode.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/promptVSCode.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+CAA0C;AAC1C,qCAAuC;AACvC,yCAA6C;AAEtC,KAAK,UAAU,YAAY,CAChC,WAAmB,EACnB,aAAqB,EACrB,MAAe,EACf,GAAY,EACZ,OAAgB;IAEhB,IAAI,MAAM,EAAE;QACV,0FAA0F;QAC1F,UAAU,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;KACR;IAED,IAAI,GAAG,EAAE;QACP,8FAA8F;QAC9F,0BAA0B;QAC1B,OAAO;KACR;IAED,MAAM,gBAAgB,GAAG,MAAM,IAAA,sBAAa,EAC1C,qDAAqD,CACtD,CAAC;IACF,IAAI,gBAAgB,EAAE;QACpB,UAAU,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;KACjD;AACH,CAAC;AAzBD,oCAyBC;AAED,SAAS,UAAU,CACjB,WAAmB,EACnB,aAAqB,EACrB,OAAgB;IAEhB,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,mBAAO,CAAC,CAAC;IAC5D,IAAA,gBAAS,EAAC,aAAa,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -181,8 +181,8 @@ function purgeRoomXMLs(modTargetPath, verbose) {
|
|
|
181
181
|
}
|
|
182
182
|
function uploadMod(modTargetPath, steamCmdPath, verbose) {
|
|
183
183
|
if (steamCmdPath === undefined) {
|
|
184
|
-
console.log(`The "steamCmdPath"
|
|
185
|
-
(0, exec_1.execExe)(constants_1.MOD_UPLOADER_PATH, verbose, modTargetPath);
|
|
184
|
+
console.log(`The "steamCmdPath" field was not found in the "${chalk_1.default.green(constants_1.CONFIG_FILE_NAME)}" file; assuming that we want to use the ModUploader tool.`);
|
|
185
|
+
(0, exec_1.execExe)(constants_1.MOD_UPLOADER_PATH, [], verbose, modTargetPath);
|
|
186
186
|
}
|
|
187
187
|
else {
|
|
188
188
|
runSteamCmd(modTargetPath, steamCmdPath, verbose);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/publish/publish.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AAExB,+CAWyB;AAEzB,qCAAgE;AAChE,yDAAmC;AACnC,yDAA+E;AAE/E,uCAA4E;AAC5E,uCAA8C;AAC9C,qCAA6D;AAE7D,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAEhC,KAAK,UAAU,OAAO,CAAC,IAAU,EAAE,MAAc;IACtD,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;IAChD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C,MAAM,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Aa,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACjE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE;QACvE,OAAO;KACR;IAED,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACzD,YAAY,CAAC,OAAO,CAAC,CAAC,QAAgB,EAAE,EAAE;QACxC,IAAI,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,MAAM,EAAE;YACrC,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YACpD,IAAI,CAAC,qBAAqB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;SACnD;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,SAAS,CAChB,aAAqB,EACrB,YAAgC,EAChC,OAAgB;IAEhB,IAAI,YAAY,KAAK,SAAS,EAAE;QAC9B,OAAO,CAAC,GAAG,CACT,
|
|
1
|
+
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/publish/publish.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AAExB,+CAWyB;AAEzB,qCAAgE;AAChE,yDAAmC;AACnC,yDAA+E;AAE/E,uCAA4E;AAC5E,uCAA8C;AAC9C,qCAA6D;AAE7D,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAEhC,KAAK,UAAU,OAAO,CAAC,IAAU,EAAE,MAAc;IACtD,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;IAChD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,CAAC,U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C7E,CAAC;AACJ,CAAC"}
|
package/src/common.js
CHANGED
|
@@ -9,14 +9,14 @@ function getJSONRoomDoorSlotFlags(jsonRoom) {
|
|
|
9
9
|
const roomShapeString = jsonRoom.$.shape;
|
|
10
10
|
const roomShapeNumber = (0, utils_1.parseIntSafe)(roomShapeString);
|
|
11
11
|
if (Number.isNaN(roomShapeNumber)) {
|
|
12
|
-
(0, utils_1.error)(`Failed to parse the "shape"
|
|
12
|
+
(0, utils_1.error)(`Failed to parse the "shape" field of a custom stage room: ${roomShapeString}`);
|
|
13
13
|
}
|
|
14
14
|
const roomShape = roomShapeNumber;
|
|
15
15
|
let doorSlotFlags = 0;
|
|
16
16
|
for (const door of jsonRoom.door) {
|
|
17
17
|
const existsString = door.$.exists;
|
|
18
18
|
if (existsString !== "True" && existsString !== "False") {
|
|
19
|
-
(0, utils_1.error)(`Failed to parse the "exists"
|
|
19
|
+
(0, utils_1.error)(`Failed to parse the "exists" field of a custom stage room door: ${existsString}`);
|
|
20
20
|
}
|
|
21
21
|
if (existsString === "False") {
|
|
22
22
|
continue;
|
|
@@ -24,12 +24,12 @@ function getJSONRoomDoorSlotFlags(jsonRoom) {
|
|
|
24
24
|
const xString = door.$.x;
|
|
25
25
|
const x = (0, utils_1.parseIntSafe)(xString);
|
|
26
26
|
if (Number.isNaN(x)) {
|
|
27
|
-
(0, utils_1.error)(`Failed to parse the "x"
|
|
27
|
+
(0, utils_1.error)(`Failed to parse the "x" field of a custom stage room door: ${xString}`);
|
|
28
28
|
}
|
|
29
29
|
const yString = door.$.y;
|
|
30
30
|
const y = (0, utils_1.parseIntSafe)(yString);
|
|
31
31
|
if (Number.isNaN(y)) {
|
|
32
|
-
(0, utils_1.error)(`Failed to parse the "y"
|
|
32
|
+
(0, utils_1.error)(`Failed to parse the "y" field of a custom stage room door: ${yString}`);
|
|
33
33
|
}
|
|
34
34
|
const doorSlot = getRoomShapeDoorSlot(roomShape, x, y);
|
|
35
35
|
if (doorSlot === undefined) {
|
package/src/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/common.ts"],"names":[],"mappings":";AAAA,wDAAwD;;;AAMxD,6EAA+E;AAC/E,yFAA6F;AAC7F,mCAA8C;AAE9C,SAAgB,wBAAwB,CAAC,QAAkB;IACzD,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IACzC,MAAM,eAAe,GAAG,IAAA,oBAAY,EAAC,eAAe,CAAC,CAAC;IACtD,IAAI,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE;QACjC,IAAA,aAAK,EACH,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/common.ts"],"names":[],"mappings":";AAAA,wDAAwD;;;AAMxD,6EAA+E;AAC/E,yFAA6F;AAC7F,mCAA8C;AAE9C,SAAgB,wBAAwB,CAAC,QAAkB;IACzD,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IACzC,MAAM,eAAe,GAAG,IAAA,oBAAY,EAAC,eAAe,CAAC,CAAC;IACtD,IAAI,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE;QACjC,IAAA,aAAK,EACH,6DAA6D,eAAe,EAAE,CAC/E,CAAC;KACH;IACD,MAAM,SAAS,GAAG,eAA4B,CAAC;IAE/C,IAAI,aAAa,GAAG,CAAC,CAAC;IAEtB,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE;QAChC,MAAM,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;QACnC,IAAI,YAAY,KAAK,MAAM,IAAI,YAAY,KAAK,OAAO,EAAE;YACvD,IAAA,aAAK,EACH,mEAAmE,YAAY,EAAE,CAClF,CAAC;SACH;QAED,IAAI,YAAY,KAAK,OAAO,EAAE;YAC5B,SAAS;SACV;QAED,MAAM,OAAO,GAAG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CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,OAAO,CAAC,KAAa,EAAE,GAAG,UAAoB;IACrD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;QAClC,KAAK,IAAI,SAAS,CAAC,CAAC,mDAAmD;KACxE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/src/configFile.js
CHANGED
|
@@ -30,13 +30,13 @@ function getExistingConfig(verbose) {
|
|
|
30
30
|
return undefined;
|
|
31
31
|
}
|
|
32
32
|
const config = (0, json_1.getJSONC)(constants_1.CONFIG_FILE_PATH, verbose);
|
|
33
|
-
// Even though the "modsDirectory"
|
|
33
|
+
// Even though the "modsDirectory" field is always initialized in the class, it may not be
|
|
34
34
|
// necessarily exist in the JSON file.
|
|
35
35
|
if (config["modsDirectory"] === undefined) {
|
|
36
36
|
errorMissing("modsDirectory", "This should be equal to the directory where Isaac mods live on your system.");
|
|
37
37
|
}
|
|
38
|
-
// Even though the "saveSlot"
|
|
39
|
-
//
|
|
38
|
+
// Even though the "saveSlot" field is always initialized in the class, it may not be necessarily
|
|
39
|
+
// exist in the JSON file.
|
|
40
40
|
if (config["saveSlot"] === undefined) {
|
|
41
41
|
errorMissing("saveSlot", "This should be equal to the save slot that you test your mods on.");
|
|
42
42
|
}
|
package/src/configFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configFile.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/configFile.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AAExB,2DAAwD;AACxD,mEAAgE;AAChE,2CAAsE;AACtE,qDAA+B;AAC/B,iCAAkC;AAElC,mCAAgC;AAEhC,MAAM,UAAU,GAAG,CAAC,CAAC;AAEd,KAAK,UAAU,GAAG,CAAC,IAAU;IAClC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IACtC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC;IAE9B,MA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AAC,CAAC;IAEhE,gDAAgD;IAChD,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE7E,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAXD,gCAWC"}
|
package/src/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PUBLISH_POST_COPY_PY_PATH = exports.PUBLISH_PRE_COPY_PY_PATH = exports.VERSION_TXT_PATH = exports.METADATA_XML_PATH = exports.MAIN_LUA = exports.MOD_SOURCE_PATH = exports.CONSTANTS_TS_PATH = exports.PACKAGE_JSON_PATH = exports.TSCONFIG_JSON_PATH = exports.TSCONFIG_JSON = exports.CONFIG_FILE_PATH = exports.CONFIG_FILE_NAME = exports.ISAACSCRIPT_SCHEMA_PATH = exports.README_MD_TEMPLATES_PATH = exports.README_MD = exports.PACKAGE_JSON_TEMPLATE_PATH = exports.PACKAGE_JSON = exports.METADATA_XML_TEMPLATE_PATH = exports.METADATA_XML = exports.MAIN_TS_TEMPLATE_PATH = exports.MAIN_TS = exports.GITIGNORE_TEMPLATE_PATH = exports.GITIGNORE = exports.CI_YML_TEMPLATE_PATH = exports.CI_YML = exports.TEMPLATES_STATIC_DIR = exports.WATCHER_MOD_SOURCE_PATH = exports.WATCHER_MOD_NAME = exports.DISABLE_IT_FILE = exports.SHADERS_XML_PATH = exports.CUSTOM_STAGE_FILES_DIR = exports.PROJECT_NAME = exports.MOD_UPLOADER_PATH = exports.FILE_SYNCED_MESSAGE = exports.HOME_DIR = exports.CWD = exports.CURRENT_DIRECTORY_NAME = void 0;
|
|
3
|
+
exports.PUBLISH_POST_COPY_PY_PATH = exports.PUBLISH_PRE_COPY_PY_PATH = exports.VERSION_TXT_PATH = exports.METADATA_XML_PATH = exports.MAIN_LUA = exports.MOD_SOURCE_PATH = exports.CONSTANTS_TS_PATH = exports.PACKAGE_JSON_PATH = exports.TSCONFIG_JSON_PATH = exports.TSCONFIG_JSON = exports.CONFIG_FILE_PATH = exports.CONFIG_FILE_NAME = exports.ISAACSCRIPT_SCHEMA_PATH = exports.README_MD_TEMPLATES_PATH = exports.README_MD = exports.PACKAGE_JSON_TEMPLATE_PATH = exports.PACKAGE_JSON = exports.METADATA_XML_TEMPLATE_PATH = exports.METADATA_XML = exports.MAIN_TS_TEMPLATE_PATH = exports.MAIN_TS = exports.GITIGNORE_TEMPLATE_PATH = exports.GITIGNORE = exports.CI_YML_TEMPLATE_PATH = exports.CI_YML = exports.TEMPLATES_STATIC_DIR = exports.WATCHER_MOD_SOURCE_PATH = exports.WATCHER_MOD_NAME = exports.DISABLE_IT_FILE = exports.XML_CONVERTER_PATH = exports.SHADERS_XML_PATH = exports.CUSTOM_STAGE_FILES_DIR = exports.PROJECT_NAME = exports.MOD_UPLOADER_PATH = exports.FILE_SYNCED_MESSAGE = exports.HOME_DIR = exports.CWD = exports.CURRENT_DIRECTORY_NAME = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const os_1 = tslib_1.__importDefault(require("os"));
|
|
6
6
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -23,6 +23,7 @@ const REPO_ROOT = path_1.default.join(__dirname, "..");
|
|
|
23
23
|
const CUSTOM_STAGE_PATH = path_1.default.join(REPO_ROOT, "custom-stage");
|
|
24
24
|
exports.CUSTOM_STAGE_FILES_DIR = path_1.default.join(CUSTOM_STAGE_PATH, "isaacscript-custom-stage");
|
|
25
25
|
exports.SHADERS_XML_PATH = path_1.default.join(CUSTOM_STAGE_PATH, "shaders.xml");
|
|
26
|
+
exports.XML_CONVERTER_PATH = path_1.default.join(CUSTOM_STAGE_PATH, "xml-converter.exe");
|
|
26
27
|
// `isaacscript/isaacscript-watcher`
|
|
27
28
|
exports.DISABLE_IT_FILE = "disable.it";
|
|
28
29
|
exports.WATCHER_MOD_NAME = "isaacscript-watcher";
|
package/src/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/constants.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AACpB,wDAAwB;AAExB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;AAE1B;;;GAGG;AACH,MAAM,OAAO,GAAG,YAAE,CAAC,OAAO,EAAE,CAAC;AAE7B,gBAAgB;AACH,QAAA,sBAAsB,GAAG,cAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC5C,QAAA,GAAG,GAAG,GAAG,CAAC;AACV,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,mBAAmB,GAAG,cAAc,CAAC;AACrC,QAAA,iBAAiB,GAC5B,sHAAsH,CAAC;AAC5G,QAAA,YAAY,GAAG,aAAa,CAAC;AAE1C,gBAAgB;AAChB,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAE7C,6BAA6B;AAC7B,MAAM,iBAAiB,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;AAClD,QAAA,sBAAsB,GAAG,cAAI,CAAC,IAAI,CAC7C,iBAAiB,EACjB,0BAA0B,CAC3B,CAAC;AACW,QAAA,gBAAgB,GAAG,cAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/constants.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AACpB,wDAAwB;AAExB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;AAE1B;;;GAGG;AACH,MAAM,OAAO,GAAG,YAAE,CAAC,OAA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EAAE,cAAc,CAAC,CAAC;AACnD,QAAA,iBAAiB,GAAG,cAAI,CAAC,IAAI,CAAC,WAAG,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;AAEvE,gBAAgB;AACH,QAAA,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,WAAG,EAAE,KAAK,CAAC,CAAC;AACxC,QAAA,QAAQ,GAAG,UAAU,CAAC;AACtB,QAAA,iBAAiB,GAAG,cAAI,CAAC,IAAI,CAAC,uBAAe,EAAE,cAAc,CAAC,CAAC;AAC/D,QAAA,gBAAgB,GAAG,cAAI,CAAC,IAAI,CAAC,uBAAe,EAAE,aAAa,CAAC,CAAC;AAE1E,oBAAoB;AACpB,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,WAAG,EAAE,SAAS,CAAC,CAAC;AAClC,QAAA,wBAAwB,GAAG,cAAI,CAAC,IAAI,CAC/C,YAAY,EACZ,qBAAqB,CACtB,CAAC;AACW,QAAA,yBAAyB,GAAG,cAAI,CAAC,IAAI,CAChD,YAAY,EACZ,sBAAsB,CACvB,CAAC"}
|
package/src/customStage.js
CHANGED
|
@@ -8,6 +8,7 @@ const tstl = tslib_1.__importStar(require("typescript-to-lua"));
|
|
|
8
8
|
const xml2js_1 = tslib_1.__importDefault(require("xml2js"));
|
|
9
9
|
const common_1 = require("./common");
|
|
10
10
|
const constants_1 = require("./constants");
|
|
11
|
+
const exec_1 = require("./exec");
|
|
11
12
|
const file = tslib_1.__importStar(require("./file"));
|
|
12
13
|
const packageManager_1 = require("./packageManager");
|
|
13
14
|
const tsconfig_1 = require("./tsconfig");
|
|
@@ -232,9 +233,10 @@ function combineCustomStageXMLs(customStagesTSConfig, verbose) {
|
|
|
232
233
|
${allRooms}
|
|
233
234
|
</rooms>
|
|
234
235
|
`.trim();
|
|
235
|
-
const
|
|
236
|
+
const contentRoomsDir = path_1.default.join(constants_1.MOD_SOURCE_PATH, "content", "rooms");
|
|
237
|
+
const specialRoomsXMLPath = path_1.default.join(contentRoomsDir, "00.special rooms.xml");
|
|
236
238
|
file.write(specialRoomsXMLPath, combinedXMLFile, verbose);
|
|
237
|
-
//
|
|
238
|
-
|
|
239
|
+
// Convert the XML file to an STB file, which is the format actually read by the game.
|
|
240
|
+
(0, exec_1.execExe)(constants_1.XML_CONVERTER_PATH, [specialRoomsXMLPath], verbose, contentRoomsDir);
|
|
239
241
|
}
|
|
240
242
|
//# sourceMappingURL=customStage.js.map
|
package/src/customStage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customStage.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/customStage.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AACxB,gEAA0C;AAC1C,4DAA4B;AAC5B,qCAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"customStage.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/customStage.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AACxB,gEAA0C;AAC1C,4DAA4B;AAC5B,qCAAoD;AACpD,2CAMqB;AAErB,iCAAiC;AACjC,qDAA+B;AAQ/B,qDAA+D;AAC/D,yCAAyD;AACzD,mCAA8C;AAE9C,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AAChD,MAAM,uBAAuB,GAAG,cAAI,CAAC,IAAI,CACvC,eAAG,EACH,cAAc,EACd,kBAAkB,EAClB,MAAM,CACP,CAAC;AAEF,MAAM,iBAAiB,GAAG,cAAI,CAAC,IAAI,CACjC,uBAAuB,EACvB,UAAU,EACV,aAAa,EACb,cAAc,CACf,CAAC;AAEF,MAAM,uBAAuB,GAAG,KAAK,CAAC;AACtC,MAAM,aAAa,GAAG,kBAAkB,CAAC;AACzC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAEvC,MAAM,iBAAiB,GAAG,4BAA4B,CAAC;AAEhD,KAAK,UAAU,mBAAmB,CACvC,cAA8B,EAC9B,OAAgB;IAEhB,MAA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;iBAC/C,OAAO,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;YAC1C,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;SACpB;QAED,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,QAAQ,IAAI,aAAa,CAAC;KAC3B;IAED,MAAM,eAAe,GAAG;;;EAGxB,QAAQ;;GAEP,CAAC,IAAI,EAAE,CAAC;IACT,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,2BAAe,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,mBAAmB,GAAG,cAAI,CAAC,IAAI,CACnC,eAAe,EACf,sBAAsB,CACvB,CAAC;IACF,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IAE1D,sFAAsF;IACtF,IAAA,cAAO,EAAC,8BAAkB,EAAE,CAAC,mBAAmB,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;AAC/E,CAAC"}
|
package/src/exec.js
CHANGED
|
@@ -6,13 +6,13 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
|
6
6
|
const child_process_1 = require("child_process");
|
|
7
7
|
const constants_1 = require("./constants");
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
|
-
function execExe(path, verbose, cwd = constants_1.CWD) {
|
|
9
|
+
function execExe(path, args, verbose, cwd = constants_1.CWD) {
|
|
10
10
|
if (verbose) {
|
|
11
11
|
console.log(`Executing binary: ${path}`);
|
|
12
12
|
}
|
|
13
13
|
let stdout;
|
|
14
14
|
try {
|
|
15
|
-
const buffer = (0, child_process_1.
|
|
15
|
+
const buffer = (0, child_process_1.execFileSync)(path, args, {
|
|
16
16
|
cwd,
|
|
17
17
|
});
|
|
18
18
|
stdout = buffer.toString().trim();
|
package/src/exec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/exec.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/exec.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,iDAKuB;AACvB,2CAAkC;AAClC,mCAAgC;AAEhC,SAAgB,OAAO,CACrB,IAAY,EACZ,IAAc,EACd,OAAgB,EAChB,GAAG,GAAG,eAAG;IAET,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;KAC1C;IAED,IAAI,MAAc,CAAC;IACnB,IAAI;QACF,MAAM,MAAM,GAAG,IAAA,4BAAY,EAAC,IAAI,EAAE,IAAI,EAAE;YACtC,GAAG;SACJ,CAAC,CAAC;QACH,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC;KACnC;IAAC,OAAO,GAAG,EAAE;QACZ,IAAA,aAAK,EAAC,kBAAkB,eAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KACrD;IAED,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;KACzC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAzBD,0BAyBC;AAED,SAAgB,cAAc,CAC5B,OAAe,EACf,OAAO,GAAG,KAAK,EACf,GAAG,GAAG,eAAG;IAET,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,iCAAiC,OAAO,EAAE,CAAC,CAAC;KACzD;IAED,IAAI,MAAc,CAAC;IACnB,IAAI;QACF,MAAM,MAAM,GAAG,IAAA,wBAAQ,EAAC,OAAO,EAAE;YAC/B,KAAK,EAAE,gBAAgB;YACvB,GAAG;SACJ,CAAC,CAAC;QACH,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CA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AK,EAAE,IAAI;YACX,GAAG;SACJ,CAAC,CAAC;KACJ;IAAC,OAAO,GAAG,EAAE;QACZ,IAAA,aAAK,EACH,sBAAsB,eAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,YAAY,EACjE,GAAG,CACJ,CAAC;KACH;IAED,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,qBAAqB,kBAAkB,EAAE,CAAC,CAAC;KACxD;IAED,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAC3C,IAAI,UAAU,KAAK,IAAI,EAAE;QACvB,IAAA,aAAK,EAAC,+CAA+C,kBAAkB,EAAE,CAAC,CAAC;KAC5E;IAED,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;IAEzD,IAAI,UAAU,KAAK,CAAC,EAAE;QACpB,IAAI,YAAY,EAAE;YAChB,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;SAC7B;QAED,OAAO,CAAC,KAAK,CACX,sBAAsB,eAAK,CAAC,KAAK,CAC/B,kBAAkB,CACnB,kCAAkC,UAAU,GAAG,CACjD,CAAC;QACF,OAAO,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAC5C,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AArED,8BAqEC"}
|
package/src/main.js
CHANGED
|
@@ -5,9 +5,11 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const dotenv = tslib_1.__importStar(require("dotenv"));
|
|
7
7
|
const figlet_1 = tslib_1.__importDefault(require("figlet"));
|
|
8
|
+
const glob_1 = tslib_1.__importDefault(require("glob"));
|
|
8
9
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
10
|
const source_map_support_1 = tslib_1.__importDefault(require("source-map-support"));
|
|
10
11
|
const update_notifier_1 = tslib_1.__importDefault(require("update-notifier"));
|
|
12
|
+
const validate_with_xmllint_1 = require("validate-with-xmllint");
|
|
11
13
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
12
14
|
const checkForWindowsTerminalBugs_1 = require("./checkForWindowsTerminalBugs");
|
|
13
15
|
const Config_1 = require("./classes/Config");
|
|
@@ -18,6 +20,7 @@ const publish_1 = require("./commands/publish/publish");
|
|
|
18
20
|
const configFile = tslib_1.__importStar(require("./configFile"));
|
|
19
21
|
const constants_1 = require("./constants");
|
|
20
22
|
const exec_1 = require("./exec");
|
|
23
|
+
const file = tslib_1.__importStar(require("./file"));
|
|
21
24
|
const packageManager_1 = require("./packageManager");
|
|
22
25
|
const parseArgs_1 = require("./parseArgs");
|
|
23
26
|
const prompt_1 = require("./prompt");
|
|
@@ -76,6 +79,7 @@ async function handleCommands(args) {
|
|
|
76
79
|
(0, validateInIsaacScriptProject_1.validateInIsaacScriptProject)(verbose);
|
|
77
80
|
config = await configFile.get(args);
|
|
78
81
|
ensureDepsAreInstalled(args, verbose);
|
|
82
|
+
await validateXMLFiles();
|
|
79
83
|
}
|
|
80
84
|
switch (command) {
|
|
81
85
|
case "monitor": {
|
|
@@ -110,4 +114,14 @@ function ensureDepsAreInstalled(args, verbose) {
|
|
|
110
114
|
console.log(`Running "${commandString}" to ensure that the project's dependencies are installed correctly.`);
|
|
111
115
|
(0, exec_1.execShell)(command, commandArgs, verbose);
|
|
112
116
|
}
|
|
117
|
+
async function validateXMLFiles() {
|
|
118
|
+
const xmlFilePaths = glob_1.default.sync("**/*.md");
|
|
119
|
+
const promises = [];
|
|
120
|
+
for (const filePath of xmlFilePaths) {
|
|
121
|
+
const fileContents = file.read(filePath, false);
|
|
122
|
+
const promise = (0, validate_with_xmllint_1.validateXML)(fileContents);
|
|
123
|
+
promises.push(promise);
|
|
124
|
+
}
|
|
125
|
+
await Promise.all(promises);
|
|
126
|
+
}
|
|
113
127
|
//# sourceMappingURL=main.js.map
|
package/src/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/main.ts"],"names":[],"mappings":";;;;AAEA,0DAA0B;AAC1B,uDAAiC;AACjC,4DAA4B;AAC5B,wDAAwB;AACxB,oFAAkD;AAClD,8EAA6C;AAC7C,2EAAkC;AAClC,+EAA4E;AAC5E,6CAA0C;AAC1C,+CAA4C;AAC5C,+CAA4C;AAC5C,wDAAqD;AACrD,wDAAqD;AACrD,iEAA2C;AAC3C,2CAAgD;AAChD,iCAAmC;AACnC,qDAG0B;AAC1B,2CAA8C;AAC9C,qCAAsC;AACtC,6CAA2D;AAC3D,mCAAgC;AAChC,iFAA8E;AAC9E,+DAA4D;AAC5D,6CAA0C;AAE1C,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,IAAA,aAAK,EAAC,GAAG,wBAAY,UAAU,EAAE,GAAG,CAAC,CAAC;AACxC,CAAC,CAAC,CAAC;AAEH,KAAK,UAAU,IAAI;IACjB,4BAAgB,CAAC,OAAO,EAAE,CAAC;IAC3B,IAAA,mBAAU,GAAE,CAAC;IACb,IAAA,yCAAmB,GAAE,CAAC;IACtB,IAAA,uBAAU,GAAE,CAAC;IACb,wBAAwB,EAAE,CAAC;IAE3B,8BAA8B;IAC9B,MAAM,IAAI,GAAG,IAAA,qBAAS,GAAE,CAAC;IACzB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IAEtC,WAAW,EAAE,CAAC;IAEd,2BAA2B;IAC3B,IAAA,yBAAc,EAAC,EAAE,GAAG,EAAH,sBAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAEjC,oBAAoB;IACpB,MAAM,IAAA,yDAA2B,EAAC,OAAO,CAAC,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,CAAC;AAED;;GAEG;AACH,SAAS,sBAAsB,CAAC,IAAU,EAAE,OAAgB;IAC1D,MAAM,cAAc,GAAG,IAAA,wDAAuC,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC9E,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,GAC1B,IAAA,gDAA+B,EAAC,cAAc,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzC,MAAM,aAAa,GAAG,GAAG,OAAO,IAAI,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC;IACxD,OAAO,CAAC,GAAG,CACT,YAAY,aAAa,sEAAsE,CAChG,CAAC;IACF,IAAA,gBAAS,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED,KAAK,UAAU,gBAAgB;IAC7B,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAE1C,MAAM,QAAQ,GAAyB,EAAE,CAAC;IAC1C,KAAK,MAAM,QAAQ,IAAI,YAAY,EAAE;QACnC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,IAAA,mCAAW,EAAC,YAAY,CAAC,CAAC;QAC1C,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxB;IAED,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
package/src/tsconfig.js
CHANGED
|
@@ -18,14 +18,14 @@ function getTSConfigJSON(verbose) {
|
|
|
18
18
|
}
|
|
19
19
|
function getIsaacScriptSection(verbose) {
|
|
20
20
|
const tsConfig = getTSConfigJSON(verbose);
|
|
21
|
-
// We allow different kinds of casing for the
|
|
22
|
-
for (const
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
if (!(0, utils_1.isRecord)(
|
|
26
|
-
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has a non-object value for the "${
|
|
21
|
+
// We allow different kinds of casing for the field name.
|
|
22
|
+
for (const fieldName of ["isaacscript", "isaacScript", "IsaacScript"]) {
|
|
23
|
+
const field = tsConfig[fieldName];
|
|
24
|
+
if (field !== undefined) {
|
|
25
|
+
if (!(0, utils_1.isRecord)(field)) {
|
|
26
|
+
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has a non-object value for the "${fieldName}" field, which is surely a mistake. ${ADVICE}`);
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return field;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
return undefined;
|
|
@@ -34,14 +34,14 @@ function getFirstTSConfigIncludePath(verbose) {
|
|
|
34
34
|
const tsConfig = getTSConfigJSON(verbose);
|
|
35
35
|
const { include } = tsConfig;
|
|
36
36
|
if (include === undefined) {
|
|
37
|
-
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file does not have an "include"
|
|
37
|
+
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file does not have an "include" field, which is surely a mistake. ${ADVICE}`);
|
|
38
38
|
}
|
|
39
39
|
if (!Array.isArray(include)) {
|
|
40
|
-
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an "include"
|
|
40
|
+
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an "include" field that is not an array, which is surely a mistake. ${ADVICE}`);
|
|
41
41
|
}
|
|
42
42
|
const firstInclude = include[0];
|
|
43
43
|
if (firstInclude === undefined) {
|
|
44
|
-
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an empty "include"
|
|
44
|
+
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an empty "include" field, which is surely a mistake. ${ADVICE}`);
|
|
45
45
|
}
|
|
46
46
|
if (typeof firstInclude !== "string") {
|
|
47
47
|
(0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has a non-string "include" value, which is surely a mistake. ${ADVICE}`);
|
|
@@ -66,14 +66,14 @@ function getCustomStagesFromTSConfig(verbose) {
|
|
|
66
66
|
console.error(schemaValidate.errors);
|
|
67
67
|
(0, utils_1.error)("For more information, see the custom stages documentation on the website.");
|
|
68
68
|
}
|
|
69
|
-
// "customStages" is an optional
|
|
69
|
+
// "customStages" is an optional field.
|
|
70
70
|
const { customStages } = isaacScriptSection;
|
|
71
71
|
if (customStages === undefined) {
|
|
72
72
|
return [];
|
|
73
73
|
}
|
|
74
74
|
// The type of "customStages" should be validated by Ajv, but check again just in case.
|
|
75
75
|
if (!Array.isArray(customStages)) {
|
|
76
|
-
(0, utils_1.error)(`Failed to parse the "customStages"
|
|
76
|
+
(0, utils_1.error)(`Failed to parse the "customStages" field, since it was not an array. ${ADVICE}.`);
|
|
77
77
|
}
|
|
78
78
|
// Perform some extra validation that can't be automatically done by Ajv.
|
|
79
79
|
for (const customStageTSConfig of customStages) {
|
|
@@ -83,20 +83,20 @@ function getCustomStagesFromTSConfig(verbose) {
|
|
|
83
83
|
}
|
|
84
84
|
const { xmlPath } = customStageTSConfig;
|
|
85
85
|
if (xmlPath === "") {
|
|
86
|
-
(0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has a blank "xmlPath"
|
|
86
|
+
(0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has a blank "xmlPath" field, which is not allowed.`));
|
|
87
87
|
}
|
|
88
88
|
const { roomVariantPrefix } = customStageTSConfig;
|
|
89
89
|
if (roomVariantPrefix < 101 || roomVariantPrefix > 999) {
|
|
90
|
-
(0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has an invalid value for the "roomVariantPrefix"
|
|
90
|
+
(0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has an invalid value for the "roomVariantPrefix" field: ${roomVariantPrefix}`));
|
|
91
91
|
}
|
|
92
92
|
const { baseStage } = customStageTSConfig;
|
|
93
93
|
if (baseStage !== undefined && (baseStage < 2 || baseStage > 13)) {
|
|
94
|
-
(0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStage"
|
|
94
|
+
(0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStage" field: ${baseStage}`);
|
|
95
95
|
}
|
|
96
96
|
const { baseStageType } = customStageTSConfig;
|
|
97
97
|
if (baseStageType !== undefined &&
|
|
98
98
|
(baseStageType < 0 || baseStageType > 5)) {
|
|
99
|
-
(0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStageType"
|
|
99
|
+
(0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStageType" field: ${baseStageType}`);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
return customStages;
|
package/src/tsconfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsconfig.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/tsconfig.ts"],"names":[],"mappings":";;;;AAAA,sDAAkC;AAClC,0DAA0B;AAC1B,2CAKqB;AACrB,qDAA+B;AAE/B,iCAAkC;AAClC,mCAA0C;AAE1C,MAAM,MAAM,GAAG,oBAAoB,yBAAa,sBAAsB,wBAAY,WAAW,CAAC;AAC9F,MAAM,sBAAsB,GAAG,IAAI,CAAC,IAAI,CAAC,mCAAuB,EAAE,KAAK,CAAC,CAAC;AACzE,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAW,CAAC;AACxE,MAAM,GAAG,GAAG,IAAI,aAAG,EAAE,CAAC;AACtB,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAEvD,SAAS,eAAe,CAAC,OAAgB;IACvC,OAAO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