- custom generate typed-factorio files
- buildSrc archetype plugins
This commit is contained in:
parent
ec94c68187
commit
877c1cdb98
96 changed files with 24216 additions and 279 deletions
4
modules/mod/src/changelog.txt
Normal file
4
modules/mod/src/changelog.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.1
|
||||
Features:
|
||||
- Factorio Web Map
|
||||
1
modules/mod/src/control.ts
Normal file
1
modules/mod/src/control.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
require("events")
|
||||
19
modules/mod/src/events.ts
Normal file
19
modules/mod/src/events.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
script.on_event(
|
||||
[defines.events.on_pre_build, defines.events.on_player_dropped_item],
|
||||
(e: OnPreBuildEvent | OnPlayerDroppedItemEvent) => {
|
||||
game.print("player " + e.player_index + " dropped item, tick:" + e.tick)
|
||||
}
|
||||
);
|
||||
|
||||
script.on_event(
|
||||
defines.events.on_tick,
|
||||
(e: OnTickEvent) => {
|
||||
if (e.tick % 60 == 0) {
|
||||
game.print("test mod tick: " + e.tick)
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
script.on_load(() => {
|
||||
game.print("loaded Factorio Web Map!")
|
||||
});
|
||||
8
modules/mod/src/info.json
Normal file
8
modules/mod/src/info.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "factorio-web-map",
|
||||
"version": "0.0.1",
|
||||
"title": "Factorio Web Map",
|
||||
"author": "fredthedeadhead",
|
||||
"factorio_version": "1.1",
|
||||
"dependencies": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
script.on_event(
|
||||
[defines.events.on_pre_build, defines.events.on_player_dropped_item],
|
||||
(e: OnPreBuildEvent | OnPlayerDroppedItemEvent) => {
|
||||
log("player " + e.player_index + " dropped item, tick:" + e.tick)
|
||||
}
|
||||
)
|
||||
1329
modules/mod/src/package-lock.json
generated
Normal file
1329
modules/mod/src/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
30
modules/mod/src/package.json
Normal file
30
modules/mod/src/package.json
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"name": "factorio-web-map-mod",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "tstl",
|
||||
"dev": "tstl --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "5.38.1",
|
||||
"webpack-cli": "4.7.1",
|
||||
"format-util": "1.0.5",
|
||||
"source-map-loader": "3.0.0",
|
||||
"css-loader": "5.2.6",
|
||||
"style-loader": "2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "17.0.2",
|
||||
"typescript-to-lua": "1.0.1",
|
||||
"typed-factorio": "0.7.1",
|
||||
"lua-types": "2.11.0",
|
||||
"typescript": "4.4.3"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"optionalDependencies": {},
|
||||
"bundledDependencies": [],
|
||||
"//": {
|
||||
"react-dom": "17.0.2"
|
||||
}
|
||||
}
|
||||
BIN
modules/mod/src/thumbnail.png
Normal file
BIN
modules/mod/src/thumbnail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 702 B |
17
modules/mod/src/tsconfig.json
Normal file
17
modules/mod/src/tsconfig.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"lib": [
|
||||
"esnext"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"types": [
|
||||
"typed-factorio/runtime"
|
||||
],
|
||||
"strict": true
|
||||
},
|
||||
"tstl": {
|
||||
"luaTarget": "JIT",
|
||||
"tstlVerbose": true
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue