@minecraft/core-build-tasks 1.2.1 → 3.0.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/CHANGELOG.json +222 -0
- package/CHANGELOG.md +107 -0
- package/README.md +4 -2
- package/lib/index.js +41892 -22
- package/lib/tasks/helpers/getGameDeploymentRootPaths.d.ts +1 -1
- package/lib/tasks/index.d.ts +2 -1
- package/lib/tasks/publishRelease.d.ts +22 -0
- package/lib/tasks/zip.d.ts +1 -1
- package/lib-cjs/index.js +41919 -0
- package/package.json +19 -18
- package/lib/index.js.map +0 -1
- package/lib/index.test.js +0 -11
- package/lib/index.test.js.map +0 -1
- package/lib/platforms/MinecraftProduct.js +0 -15
- package/lib/platforms/MinecraftProduct.js.map +0 -1
- package/lib/platforms/index.js +0 -20
- package/lib/platforms/index.js.map +0 -1
- package/lib/setupEnvironment.js +0 -18
- package/lib/setupEnvironment.js.map +0 -1
- package/lib/tasks/api-extractor.js +0 -35
- package/lib/tasks/api-extractor.js.map +0 -1
- package/lib/tasks/bundle.js +0 -98
- package/lib/tasks/bundle.js.map +0 -1
- package/lib/tasks/bundle.test.js +0 -344
- package/lib/tasks/bundle.test.js.map +0 -1
- package/lib/tasks/clean.js +0 -26
- package/lib/tasks/clean.js.map +0 -1
- package/lib/tasks/cleanCollateral.js +0 -88
- package/lib/tasks/cleanCollateral.js.map +0 -1
- package/lib/tasks/copy.js +0 -41
- package/lib/tasks/copy.js.map +0 -1
- package/lib/tasks/coreLint.js +0 -64
- package/lib/tasks/coreLint.js.map +0 -1
- package/lib/tasks/helpers/copyFiles.js +0 -31
- package/lib/tasks/helpers/copyFiles.js.map +0 -1
- package/lib/tasks/helpers/getGameDeploymentRootPaths.js +0 -65
- package/lib/tasks/helpers/getGameDeploymentRootPaths.js.map +0 -1
- package/lib/tasks/helpers/getOrThrowFromProcess.js +0 -22
- package/lib/tasks/helpers/getOrThrowFromProcess.js.map +0 -1
- package/lib/tasks/helpers/index.js +0 -22
- package/lib/tasks/helpers/index.js.map +0 -1
- package/lib/tasks/index.js +0 -30
- package/lib/tasks/index.js.map +0 -1
- package/lib/tasks/updateWorld.js +0 -26
- package/lib/tasks/updateWorld.js.map +0 -1
- package/lib/tasks/vitest.js +0 -13
- package/lib/tasks/vitest.js.map +0 -1
- package/lib/tasks/watch.js +0 -62
- package/lib/tasks/watch.js.map +0 -1
- package/lib/tasks/zip.js +0 -82
- package/lib/tasks/zip.js.map +0 -1
package/CHANGELOG.json
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@minecraft/core-build-tasks",
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 09 Jan 2025 19:24:50 GMT",
|
|
6
|
+
"version": "3.0.0",
|
|
7
|
+
"tag": "@minecraft/core-build-tasks_v3.0.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"major": [
|
|
10
|
+
{
|
|
11
|
+
"author": "rlanda@microsoft.com",
|
|
12
|
+
"package": "@minecraft/core-build-tasks",
|
|
13
|
+
"commit": "55a4e19212d882da876f3ed1918198c2ba2868b9",
|
|
14
|
+
"comment": "Export both ESM and CJS, but exclusively use CJS for just task configuration. Pre-bundle most dependencies to deal with ESM exclusive dependencies.\nTo leverage the new tasks, use a `just.config.cts` file to rely on CommonJS imports."
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 25 Dec 2024 16:02:44 GMT",
|
|
21
|
+
"version": "1.2.1",
|
|
22
|
+
"tag": "@minecraft/core-build-tasks_v1.2.1",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "maescool@gmail.com",
|
|
27
|
+
"package": "@minecraft/core-build-tasks",
|
|
28
|
+
"commit": "acd85662a8c51479fef9c02e6a527ad8e1eece88",
|
|
29
|
+
"comment": "Fix: Make cleanTask synchronous This is to prevent it removing files when you 'copyFiles' to the same path directly after. This happens when using 'updateWorldTask' 'cleanCollateralTask' also is synchronous"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Tue, 03 Dec 2024 15:02:46 GMT",
|
|
36
|
+
"version": "1.2.0",
|
|
37
|
+
"tag": "@minecraft/core-build-tasks_v1.2.0",
|
|
38
|
+
"comments": {
|
|
39
|
+
"minor": [
|
|
40
|
+
{
|
|
41
|
+
"author": "rlanda@microsoft.com",
|
|
42
|
+
"package": "@minecraft/core-build-tasks",
|
|
43
|
+
"commit": "29d380a45b7db2e742f3a87002c3671f3e89f9b7",
|
|
44
|
+
"comment": "Tweak tsconfig so it's friendly to commonjs alongside ESM"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Tue, 26 Nov 2024 21:33:22 GMT",
|
|
51
|
+
"version": "1.1.7",
|
|
52
|
+
"tag": "@minecraft/core-build-tasks_v1.1.7",
|
|
53
|
+
"comments": {
|
|
54
|
+
"patch": [
|
|
55
|
+
{
|
|
56
|
+
"author": "rlanda@microsoft.com",
|
|
57
|
+
"package": "@minecraft/core-build-tasks",
|
|
58
|
+
"commit": "9d6cb505cd0dc9faf8ea80ed3660a84c92c914fd",
|
|
59
|
+
"comment": "build(dependabot): bump dotenv from 16.4.1 to 16.4.5"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Mon, 25 Nov 2024 23:28:43 GMT",
|
|
66
|
+
"version": "1.1.6",
|
|
67
|
+
"tag": "@minecraft/core-build-tasks_v1.1.6",
|
|
68
|
+
"comments": {
|
|
69
|
+
"none": [
|
|
70
|
+
{
|
|
71
|
+
"author": "rlanda@microsoft.com",
|
|
72
|
+
"package": "@minecraft/core-build-tasks",
|
|
73
|
+
"commit": "85b9345de0665a5179eea162ec53c219e9ca3bc9",
|
|
74
|
+
"comment": "Sync packages after failed publish"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"patch": [
|
|
78
|
+
{
|
|
79
|
+
"author": "rlanda@microsoft.com",
|
|
80
|
+
"package": "@minecraft/core-build-tasks",
|
|
81
|
+
"commit": "85b9345de0665a5179eea162ec53c219e9ca3bc9",
|
|
82
|
+
"comment": "build(dependabot): bump just-scripts from 2.2.1 to 2.3.2"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"date": "Thu, 09 May 2024 22:54:01 GMT",
|
|
89
|
+
"version": "1.1.4",
|
|
90
|
+
"tag": "@minecraft/core-build-tasks_v1.1.4",
|
|
91
|
+
"comments": {
|
|
92
|
+
"none": [
|
|
93
|
+
{
|
|
94
|
+
"author": "frgarc@microsoft.com",
|
|
95
|
+
"package": "@minecraft/core-build-tasks",
|
|
96
|
+
"commit": "75c0d9f3bc2ab86da6d1e12567303ce664c0758a",
|
|
97
|
+
"comment": "- Adding basic linting to core-build-tasks"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"date": "Mon, 18 Mar 2024 23:32:29 GMT",
|
|
104
|
+
"version": "1.1.4",
|
|
105
|
+
"tag": "@minecraft/core-build-tasks_v1.1.4",
|
|
106
|
+
"comments": {
|
|
107
|
+
"patch": [
|
|
108
|
+
{
|
|
109
|
+
"author": "thomas@gamemodeone.com",
|
|
110
|
+
"package": "@minecraft/core-build-tasks",
|
|
111
|
+
"commit": "5187ed5b3382e15c6362f76fc91142125cf3b345",
|
|
112
|
+
"comment": "Add support for spaces in the path to the eslint config file"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"author": "thomas@gamemodeone.com",
|
|
116
|
+
"package": "@minecraft/core-build-tasks",
|
|
117
|
+
"commit": "5187ed5b3382e15c6362f76fc91142125cf3b345",
|
|
118
|
+
"comment": "Added repo link to package.json"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"date": "Mon, 04 Mar 2024 21:57:32 GMT",
|
|
125
|
+
"version": "1.1.3",
|
|
126
|
+
"tag": "@minecraft/core-build-tasks_v1.1.3",
|
|
127
|
+
"comments": {
|
|
128
|
+
"patch": [
|
|
129
|
+
{
|
|
130
|
+
"author": "frgarc@microsoft.com",
|
|
131
|
+
"package": "@minecraft/core-build-tasks",
|
|
132
|
+
"commit": "32d36cd582a1f6258301b94e24ffa3cfcd1c1350",
|
|
133
|
+
"comment": "- Moving webpack to dev dependencies"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"date": "Fri, 01 Mar 2024 22:57:50 GMT",
|
|
140
|
+
"version": "1.1.2",
|
|
141
|
+
"tag": "@minecraft/core-build-tasks_v1.1.2",
|
|
142
|
+
"comments": {
|
|
143
|
+
"patch": [
|
|
144
|
+
{
|
|
145
|
+
"author": "frgarc@microsoft.com",
|
|
146
|
+
"package": "@minecraft/core-build-tasks",
|
|
147
|
+
"commit": "7ff14879535d14eca032d3dd51df457e9e0b03f2",
|
|
148
|
+
"comment": "Support for source map files creation at different path"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"date": "Thu, 29 Feb 2024 20:11:07 GMT",
|
|
155
|
+
"version": "1.1.1",
|
|
156
|
+
"tag": "@minecraft/core-build-tasks_v1.1.1",
|
|
157
|
+
"comments": {
|
|
158
|
+
"patch": [
|
|
159
|
+
{
|
|
160
|
+
"author": "frgarc@microsoft.com",
|
|
161
|
+
"package": "@minecraft/core-build-tasks",
|
|
162
|
+
"commit": "945df920a7423e35485211c5c9055441e42a1ac0",
|
|
163
|
+
"comment": "Support for ESLint Flat Config"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"date": "Tue, 27 Feb 2024 00:08:06 GMT",
|
|
170
|
+
"version": "1.1.0",
|
|
171
|
+
"tag": "@minecraft/core-build-tasks_v1.1.0",
|
|
172
|
+
"comments": {
|
|
173
|
+
"minor": [
|
|
174
|
+
{
|
|
175
|
+
"author": "frgarc@microsoft.com",
|
|
176
|
+
"package": "@minecraft/core-build-tasks",
|
|
177
|
+
"commit": "c1fb5000f9b01b0a625ff06b48e78672bdfc2aaa",
|
|
178
|
+
"comment": "Adding new tasks: bundle, cleanCollateral, copy, updateWorld, mcaddon, watch"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"date": "Mon, 29 Jan 2024 19:08:51 GMT",
|
|
185
|
+
"version": "1.0.1",
|
|
186
|
+
"tag": "@minecraft/core-build-tasks_v1.0.1",
|
|
187
|
+
"comments": {
|
|
188
|
+
"patch": [
|
|
189
|
+
{
|
|
190
|
+
"author": "rlanda@microsoft.com",
|
|
191
|
+
"package": "@minecraft/core-build-tasks",
|
|
192
|
+
"commit": "4685c0cbe1a9d0c9d84e61f66a6cde577042ec2d",
|
|
193
|
+
"comment": "README fixes"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"date": "Mon, 29 Jan 2024 18:22:45 GMT",
|
|
200
|
+
"version": "1.0.0",
|
|
201
|
+
"tag": "@minecraft/core-build-tasks_v1.0.0",
|
|
202
|
+
"comments": {
|
|
203
|
+
"patch": [
|
|
204
|
+
{
|
|
205
|
+
"author": "rlanda@microsoft.com",
|
|
206
|
+
"package": "@minecraft/core-build-tasks",
|
|
207
|
+
"commit": "019bdc8a1ba57bcdc289a978dd49c959728cbe9e",
|
|
208
|
+
"comment": "Trim down package contents for publish. Ensure right exports. Fixing version specifications."
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"major": [
|
|
212
|
+
{
|
|
213
|
+
"author": "rlanda@microsoft.com",
|
|
214
|
+
"package": "@minecraft/core-build-tasks",
|
|
215
|
+
"commit": "019bdc8a1ba57bcdc289a978dd49c959728cbe9e",
|
|
216
|
+
"comment": "Initial implementation of a @minecraft/math library with support for two paradigms. Added test and lint support, and also migrated lint rule for command suggestions to this repo. Started the creation of shared build tools."
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Change Log - @minecraft/core-build-tasks
|
|
2
|
+
|
|
3
|
+
<!-- This log was last generated on Thu, 09 Jan 2025 19:24:50 GMT and should not be manually modified. -->
|
|
4
|
+
|
|
5
|
+
<!-- Start content -->
|
|
6
|
+
|
|
7
|
+
## 3.0.0
|
|
8
|
+
|
|
9
|
+
Thu, 09 Jan 2025 19:24:50 GMT
|
|
10
|
+
|
|
11
|
+
### Major changes
|
|
12
|
+
|
|
13
|
+
- Export both ESM and CJS, but exclusively use CJS for just task configuration. Pre-bundle most dependencies to deal with ESM exclusive dependencies.
|
|
14
|
+
To leverage the new tasks, use a `just.config.cts` file to rely on CommonJS imports. (rlanda@microsoft.com)
|
|
15
|
+
|
|
16
|
+
## 1.2.1
|
|
17
|
+
|
|
18
|
+
Wed, 25 Dec 2024 16:02:44 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- Fix: Make cleanTask synchronous This is to prevent it removing files when you 'copyFiles' to the same path directly after. This happens when using 'updateWorldTask' 'cleanCollateralTask' also is synchronous (maescool@gmail.com)
|
|
23
|
+
|
|
24
|
+
## 1.2.0
|
|
25
|
+
|
|
26
|
+
Tue, 03 Dec 2024 15:02:46 GMT
|
|
27
|
+
|
|
28
|
+
### Minor changes
|
|
29
|
+
|
|
30
|
+
- Tweak tsconfig so it's friendly to commonjs alongside ESM (rlanda@microsoft.com)
|
|
31
|
+
|
|
32
|
+
## 1.1.7
|
|
33
|
+
|
|
34
|
+
Tue, 26 Nov 2024 21:33:22 GMT
|
|
35
|
+
|
|
36
|
+
### Patches
|
|
37
|
+
|
|
38
|
+
- build(dependabot): bump dotenv from 16.4.1 to 16.4.5 (rlanda@microsoft.com)
|
|
39
|
+
|
|
40
|
+
## 1.1.6
|
|
41
|
+
|
|
42
|
+
Mon, 25 Nov 2024 23:28:43 GMT
|
|
43
|
+
|
|
44
|
+
### Patches
|
|
45
|
+
|
|
46
|
+
- build(dependabot): bump just-scripts from 2.2.1 to 2.3.2 (rlanda@microsoft.com)
|
|
47
|
+
|
|
48
|
+
## 1.1.4
|
|
49
|
+
|
|
50
|
+
Mon, 18 Mar 2024 23:32:29 GMT
|
|
51
|
+
|
|
52
|
+
### Patches
|
|
53
|
+
|
|
54
|
+
- Add support for spaces in the path to the eslint config file (thomas@gamemodeone.com)
|
|
55
|
+
- Added repo link to package.json (thomas@gamemodeone.com)
|
|
56
|
+
|
|
57
|
+
## 1.1.3
|
|
58
|
+
|
|
59
|
+
Mon, 04 Mar 2024 21:57:32 GMT
|
|
60
|
+
|
|
61
|
+
### Patches
|
|
62
|
+
|
|
63
|
+
- - Moving webpack to dev dependencies (frgarc@microsoft.com)
|
|
64
|
+
|
|
65
|
+
## 1.1.2
|
|
66
|
+
|
|
67
|
+
Fri, 01 Mar 2024 22:57:50 GMT
|
|
68
|
+
|
|
69
|
+
### Patches
|
|
70
|
+
|
|
71
|
+
- Support for source map files creation at different path (frgarc@microsoft.com)
|
|
72
|
+
|
|
73
|
+
## 1.1.1
|
|
74
|
+
|
|
75
|
+
Thu, 29 Feb 2024 20:11:07 GMT
|
|
76
|
+
|
|
77
|
+
### Patches
|
|
78
|
+
|
|
79
|
+
- Support for ESLint Flat Config (frgarc@microsoft.com)
|
|
80
|
+
|
|
81
|
+
## 1.1.0
|
|
82
|
+
|
|
83
|
+
Tue, 27 Feb 2024 00:08:06 GMT
|
|
84
|
+
|
|
85
|
+
### Minor changes
|
|
86
|
+
|
|
87
|
+
- Adding new tasks: bundle, cleanCollateral, copy, updateWorld, mcaddon, watch (frgarc@microsoft.com)
|
|
88
|
+
|
|
89
|
+
## 1.0.1
|
|
90
|
+
|
|
91
|
+
Mon, 29 Jan 2024 19:08:51 GMT
|
|
92
|
+
|
|
93
|
+
### Patches
|
|
94
|
+
|
|
95
|
+
- README fixes (rlanda@microsoft.com)
|
|
96
|
+
|
|
97
|
+
## 1.0.0
|
|
98
|
+
|
|
99
|
+
Mon, 29 Jan 2024 18:22:45 GMT
|
|
100
|
+
|
|
101
|
+
### Major changes
|
|
102
|
+
|
|
103
|
+
- Initial implementation of a @minecraft/math library with support for two paradigms. Added test and lint support, and also migrated lint rule for command suggestions to this repo. Started the creation of shared build tools. (rlanda@microsoft.com)
|
|
104
|
+
|
|
105
|
+
### Patches
|
|
106
|
+
|
|
107
|
+
- Trim down package contents for publish. Ensure right exports. Fixing version specifications. (rlanda@microsoft.com)
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Core Build Tasks
|
|
2
2
|
|
|
3
|
-
This package contains common build tasks used within the minecraft-scripting-libraries build, but can be used in other repositories as well. If a task is used by `just` in multiple packages, it is moved into this package to reduce duplication.
|
|
3
|
+
This package contains common build tasks used within the minecraft-scripting-libraries build, but can be used in other repositories as well. The tasks are designed to be used with the [just](https://microsoft.github.io/just/tasks/) task runner, as this is the task runner integrated into all of the minecraft starter kits and libraries. If a task is used by `just` in multiple packages, it is moved into this package to reduce duplication.
|
|
4
4
|
|
|
5
|
-
This subdirectory
|
|
5
|
+
This subdirectory primarily runs the `build` step, and more specifically, only runs `tsc` today since this package itself defines build tasks, so it must be kept lightweight. After build tooling is built, subsequent lint and test can be run on this directory.
|
|
6
|
+
|
|
7
|
+
Note, this package builds using both CommonJS modules and ESM because the just task runner expects imports to support common JS. We support ESM as well in the event these tasks are used in a different environment.
|