diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 331cecf..503f1a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,7 +19,7 @@ build: - cp styles/* dist/styles/ - cp module.json dist - cd dist - - zip wfrp4e-actor-sheet-print.zip -r *.* lang styles -x ".*" + - zip wfrp4e-actor-sheet-print.zip -r *.* src lang styles -x ".*" artifacts: name: wfrp4e-actor-sheet-print when: on_success @@ -40,7 +40,7 @@ build_beta: - cp styles/* dist/styles/ - cp module-beta.json dist/module.json - cd dist - - zip wfrp4e-actor-sheet-print.zip -r *.* lang styles -x ".*" + - zip wfrp4e-actor-sheet-print.zip -r *.* src lang styles -x ".*" artifacts: name: wfrp4e-actor-sheet-print when: on_success diff --git a/module-beta.json b/module-beta.json index c5dac52..4005cd5 100644 --- a/module-beta.json +++ b/module-beta.json @@ -8,6 +8,7 @@ "author": "Skeroujvapluvit", "systems": ["wfrp4e"], "dependencies": [], + "esmodules": ["main.js"], "languages": [ { "lang": "en", diff --git a/module.json b/module.json index f7e1e10..ab78d4d 100644 --- a/module.json +++ b/module.json @@ -8,6 +8,7 @@ "author": "Skeroujvapluvit", "systems": ["wfrp4e"], "dependencies": [], + "esmodules": ["main.js"], "languages": [ { "lang": "en", diff --git a/package.sh b/package.sh index 1758ba8..859e47f 100644 --- a/package.sh +++ b/package.sh @@ -2,5 +2,5 @@ npm run build mkdir -p ./dist/lang mkdir -p ./dist/styles cp ./lang/* ./dist/lang/ -cp ./src/styles/* ./dist/styles/ +cp ./styles/* ./dist/styles/ cp module.json ./dist/module.json \ No newline at end of file diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..44beff9 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,5 @@ +//ActorSheet + +Hooks.on('renderActorSheet', (_app: ActorSheet, _html: JQuery) => { + console.dir(_app); +});