Skip to content

Commit

Permalink
implemented eluna-ts support
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal committed May 8, 2021
1 parent 61d36e9 commit df71ff3
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/docker-compose.override.yml
/scripts/*
!/scripts/.gitkeep
!/scripts/*/
/scripts/*/*
!/scripts/*/.gitkeep
!/scripts/typescript/tsconfig.json
!/scripts/typescript/package.json
/var
npm_modules
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": false
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ the AzerothCore project, you can extend this docker by adding external and share

### How to create a second multirealm environment

Check the /examples folder that contains an override file ready to be used to implement a secondary worldserver
Check the /conf/dist folder that contains an override file ready to be used to implement a secondary worldserver

### Customize your server with the database

Expand Down
File renamed without changes.
21 changes: 15 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ services:
- ${DOCKER_WORLD_EXTERNAL_PORT:-8085}:8085
- ${DOCKER_SOAP_EXTERNAL_PORT:-7878}:7878
volumes:
- ./scripts:/azerothcore/env/dist/bin/lua_scripts/scripts
- ./scripts/lua:/azerothcore/env/dist/bin/lua_scripts/scripts
volumes_from:
- ac-client-data:ro

Expand All @@ -61,18 +61,27 @@ services:
ports:
- ${DOCKER_AUTH_EXTERNAL_PORT:-3724}:3724

ac-db-import:
<<: *ac-shared-conf
image: acore/ac-wotlk-worldserver:${DOCKER_IMAGE_TAG:-master} # name of the generated image after built locally
command: ./acore.sh db-assembler import-all
profiles: [db-import]
ac-eluna-ts-dev:
image: acore/eluna-ts:${DOCKER_IMAGE_TAG:-master} # name of the generated image after built locally
command: sh -c "cd /eluna-ts/src && npm install && cd /eluna-ts && npm run dev"
volumes:
# from typescript
- ./scripts/typescript:/eluna-ts/src/
# to lua
- ./scripts/lua:/eluna-ts/dist/

ac-client-data:
<<: *networks
image: acore/ac-wotlk-client-data:${DOCKER_IMAGE_TAG:-master}
volumes:
- /azerothcore/env/dist/data

ac-db-import:
<<: *ac-shared-conf
image: acore/ac-wotlk-worldserver:${DOCKER_IMAGE_TAG:-master} # name of the generated image after built locally
command: ./acore.sh db-assembler import-all
profiles: [db-import]

ac-dev-server:
<<: *ac-shared-conf
tty: true
Expand Down
File renamed without changes.
Empty file added scripts/typescript/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions scripts/typescript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "acore-docker-ts",
"version": "1.0.0",
"description": "TS scripts for acore-docker",
"dependencies": {
"@azerothcore/eluna-ts-definitions": "^1.2.8",
"@azerothcore/eluna-ts-lib": "^1.0.10"
}
}
24 changes: 24 additions & 0 deletions scripts/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"strict": true,
"target": "esnext",
"lib": [
"esnext"
],
"moduleResolution": "node",
"types": [
"lua-types/5.2",
"@azerothcore/eluna-ts-definitions",
"@azerothcore/eluna-ts-lua"
],
"typeRoots": [
"./node_modules/@types",
"./node_modules/@azerothcore/eluna-ts-definitions",
"./node_modules/@azerothcore/eluna-ts-lua"
],
"rootDir": "."
},
"include": [
"**/*.ts"
]
}

0 comments on commit df71ff3

Please sign in to comment.