Skip to content

Commit de5e320

Browse files
authored
BREAKING CHANGE: simplify the modules (#74)
* BREAKING CHANGE: rework for all modules * chore: update npm ignore * refactor: raise files to upper level * docs: update user readme * test: inject java & resort test * refactor(user): org the user module * refactor: upgrade the test coverage & order * refactor: redesign the prelaunch option * style: clean up docs * refactor: adjust error throw * test: adjust test mock * refactor: remove package * refactor: make the import three shake friendly * docs: remove unused changelog * refactor: flatten the installer * refactor: flatten the structure * refactor: merge the impl * chore: update the packages name * docs: update readme * refactor: sep the setup * chore: update readme builder * refactor: sep the read meta function * chore: update package name * refactor: flatten the packages * docs: add monaco editor to display the code in docs * refactor: unify the api * chore: update script and workflow to gen docs and build * refactor: prototype based nbt * refactor: ensure the faces * chore: setup esm build * refactor: split server info module * chore: update build and dep * refactor: nbt simplify * refactor: cleanup * chore: align the build script * refactor: add readme for server and reorg client module * style: pass the lint * docs: update the class style doc * chore: fix the build readme script * chore: add server-info package * docs: fix the showcase * docs: update web scenarios * refactor: adjust api name * refactor: refactor task creation * chore: build to es2015 module * chore: use root package version as release pivot * docs: add more description and update webdoc * refactor: simplify API * refactor: cancel task for download by returning signal * docs: update to new api * test: correct test name * refactor: adapt to new text-component and update doc * fix: the wrong post porcessing * fix: correct the maven url & naming * fix: correct the usage of got download * chore: bump got version * fix: nbt inspection * chore: add form-data as dep * refactor: adapt to new api * chore: resolve packages dependencies * style: fix the quote style * docs: update the web definition * docs: update the discriptions * chore: reinstal and update script * fix: new export style and bugs * test: add test for coders * test: correct the testing condition
1 parent 51dfdb9 commit de5e320

File tree

249 files changed

+22704
-13346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+22704
-13346
lines changed

.github/actions/prepare-pr/index.js

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,6 @@ function bumpDependenciesPackage(affectedMapping, packages) {
134134

135135
let bumpLevel = 2;
136136
let bumpType = 'patch';
137-
138-
if (affectedPackageJSON.name === "@xmcl/minecraft-launcher-core") {
139-
// if affect the core package
140-
bumpType = package.releaseType;
141-
bumpLevel = package.level;
142-
} else {
143-
// else just do a normal bump
144-
bumpType = 'patch';
145-
bumpLevel = 2;
146-
}
147-
148137
let affected = false;
149138

150139
// if current bumping priority is lower than affected bumped priority
@@ -207,7 +196,7 @@ function info(packages) {
207196
}
208197

209198
function prTitle(version) {
210-
return `Prepare Release @xmcl/minecraft-launcher-core@${version}`
199+
return `Prepare Release ${version}`
211200
}
212201
function prBody(packages) {
213202
let body = `This PR is auto-generated by
@@ -217,7 +206,7 @@ to prepare new releases for changed packages.\n\n### Package Changes\n\n`;
217206
return body;
218207
}
219208
function commitMessage(version) {
220-
return `chore: bump version @xmcl/minecraft-launcher-core@${version}`
209+
return `chore: bump version ${version}`
221210
}
222211

223212
async function main(output) {
@@ -226,8 +215,10 @@ async function main(output) {
226215
bumpDependenciesPackage(affectedMapping, packages);
227216
console.log(info(packages));
228217
writeAllNewVersionsToPackageJson(packages);
229-
const newVersion = packages.find(pack => pack.package.name === '@xmcl/minecraft-launcher-core')
230-
.newVersion
218+
219+
const packageJSON = JSON.parse(fs.readFileSync(`package.json`).toString());
220+
const newVersion = packageJSON.version;
221+
231222
output('title', prTitle(newVersion));
232223
output('body', prBody(packages));
233224
output('message', commitMessage(newVersion));

.github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
paths:
8-
- '.github/pages/**'
8+
- 'docs/**'
99
jobs:
1010
page-deploy:
1111
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)