Skip to content

Commit 8f3936b

Browse files
committed
Merge branch 'ts'
2 parents 240c8bd + 05d1231 commit 8f3936b

Some content is hidden

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

53 files changed

+8816
-191
lines changed

.github/workflows/npm-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: NPM publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: "20"
16+
- run: npm ci
17+
- run: npm test
18+
- uses: JS-DevTools/npm-publish@v3
19+
with:
20+
token: ${{ secrets.NPM_TOKEN }}
21+
package: ts/ielib
22+
dry-run: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ docs/_pages
44
docs/.bundle
55
docs/_site
66
docs/vendor
7+
.venv
8+
node_modules/

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Infinity Engine library for [BGforge MLS](https://github.com/BGforgeNet/VScode-B
1313

1414
Essentially, it defines various constants: opcode numbers, icon numbers, etc, so that they could be used instead of magic numbers, improving overall code readability. (Similarly to what WeiDU [does](https://weidu.org/~thebigg/README-WeiDU.html#sec58).)
1515

16-
__Note:__ it's in alpha, so backwards compatibility is not guaranteed for now.
17-
1816
### Usage
1917

2018
1. Init submodule

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "ielib-dev",
3+
"version": "1.0.0",
4+
"type": "module",
5+
"scripts": {
6+
"ts-update": "tsx scripts/ts-update.ts external/iesdp/_data/actions ts/ielib/bg2/actions.d.ts external/iesdp/scripting/triggers/bg2triggers.htm ts/ielib/bg2/triggers.d.ts"
7+
},
8+
"dependencies": {
9+
"js-yaml": "^4.1.0",
10+
"jsdom": "^25.0.1",
11+
"tsx": "^4.19.2",
12+
"yargs": "^17.7.2"
13+
},
14+
"devDependencies": {
15+
"@types/js-yaml": "^4.0.9",
16+
"@types/node": "^22.10.2",
17+
"@types/yargs": "^17.0.33"
18+
}
19+
}

0 commit comments

Comments
 (0)