@nxg-org/mineflayer-util-plugin 1.0.0 → 1.0.1
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/.github/workflows/ci.yml +22 -0
- package/.github/workflows/release.yml +37 -0
- package/lib/index.js +5 -0
- package/package-lock.json +1505 -0
- package/package.json +1 -1
- package/src/index.ts +6 -3
- package/lib/WorldFunctions.d.ts +0 -10
- package/lib/WorldFunctions.js +0 -18
- package/lib/calcs/aabb.d.ts +0 -36
- package/lib/calcs/aabb.js +0 -194
- package/lib/commonSense.d.ts +0 -22
- package/lib/commonSense.js +0 -220
- package/lib/customImplementations/inventory.d.ts +0 -10
- package/lib/customImplementations/inventory.js +0 -95
- package/lib/entityFunctions.d.ts +0 -36
- package/lib/entityFunctions.js +0 -78
- package/lib/filterFunctions.d.ts +0 -23
- package/lib/filterFunctions.js +0 -45
- package/lib/index.d.ts +0 -27
- package/lib/inventoryFunctions.d.ts +0 -45
- package/lib/inventoryFunctions.js +0 -208
- package/lib/mathUtil.d.ts +0 -23
- package/lib/mathUtil.js +0 -49
- package/lib/movementFunctions.d.ts +0 -43
- package/lib/movementFunctions.js +0 -109
- package/lib/predictiveFunctions.d.ts +0 -25
- package/lib/predictiveFunctions.js +0 -172
- package/lib/utilFunctions.d.ts +0 -50
- package/lib/utilFunctions.js +0 -140
- package/lib/worldRelated/predictiveWorld.d.ts +0 -41
- package/lib/worldRelated/predictiveWorld.js +0 -108
- package/lib/worldRelated/raycastIterator.d.ts +0 -45
- package/lib/worldRelated/raycastIterator.js +0 -114
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
+
name: Continuous Integration
|
|
3
|
+
|
|
4
|
+
on: [push, pull_request]
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
node-version: [14.x, 16.x]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
17
|
+
uses: actions/setup-node@v2
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node-version }}
|
|
20
|
+
- run: yarn --dev
|
|
21
|
+
- run: yarn build
|
|
22
|
+
# - run: yarn test
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This workflow allows the maintainers to trigger a new release manually
|
|
2
|
+
name: Release
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
inputs:
|
|
7
|
+
version-type:
|
|
8
|
+
description: How major the changes are [ major | minor | patch | prerelease ]
|
|
9
|
+
required: true
|
|
10
|
+
default: patch
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release:
|
|
14
|
+
name: GitHub and NPM Release
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v2
|
|
18
|
+
- uses: actions/setup-node@v2
|
|
19
|
+
with:
|
|
20
|
+
registry-url: https://registry.npmjs.org/
|
|
21
|
+
always-auth: true
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: yarn --dev
|
|
24
|
+
- name: Configure git credentials
|
|
25
|
+
uses: OleksiyRudenko/gha-git-credentials@v2
|
|
26
|
+
with:
|
|
27
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
28
|
+
name: ${{ github.actor }}
|
|
29
|
+
email: ${{ github.actor }}@users.noreply.github.com
|
|
30
|
+
- name: Release new version to NPM
|
|
31
|
+
run: yarn publish --non-interactive --access public --${{ github.event.inputs.version-type }} --preid beta --no-git-tag-version ${{ contains(github.event.inputs.version-type, 'pre') && '--tag beta' || '' }}
|
|
32
|
+
env:
|
|
33
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
34
|
+
- name: Push to GitHub
|
|
35
|
+
run: |
|
|
36
|
+
export VERSION=v$(node -pe "require('./package.json').version") &&
|
|
37
|
+
git add . && git commit -m "Release ${VERSION}" && git tag -m "" ${VERSION} && git push --follow-tags
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AABB = exports.CommonSense = void 0;
|
|
3
4
|
const utilFunctions_1 = require("./utilFunctions");
|
|
4
5
|
function inject(bot) {
|
|
5
6
|
bot.util = new utilFunctions_1.UtilFunctions(bot);
|
|
6
7
|
}
|
|
7
8
|
exports.default = inject;
|
|
9
|
+
var commonSense_1 = require("./commonSense");
|
|
10
|
+
Object.defineProperty(exports, "CommonSense", { enumerable: true, get: function () { return commonSense_1.CommonSense; } });
|
|
11
|
+
var aabb_1 = require("./calcs/aabb");
|
|
12
|
+
Object.defineProperty(exports, "AABB", { enumerable: true, get: function () { return aabb_1.AABB; } });
|