chore: init commit

This commit is contained in:
Matthieu CAILLEAUX
2021-10-12 23:48:21 +02:00
commit 7dfec9220e
15 changed files with 1668 additions and 0 deletions

21
.gitignore vendored Normal file
View File

@@ -0,0 +1,21 @@
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
#node modules
node_modules
# distribution
dist

76
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,76 @@
image: docker-repository-greenskin.cailleaux.com/greenskin/ci-builder-node14:2.0
variables:
GIT_DEPTH: 0
GIT_STRATEGY: fetch
stages:
- build
- deploy
build:
stage: build
script:
- npm ci
- npm run build
- mkdir -p dist/lang
- mkdir -p dist/styles
- cp lang/* dist/lang/
- cp styles/* dist/styles/
- cp module.json dist
- cd dist
- zip wfrp4e-actor-sheet-print.zip -r *.* lang styles -x ".*"
artifacts:
name: wfrp4e-actor-sheet-print
when: on_success
paths:
- dist/wfrp4e-actor-sheet-print.zip
only:
- tags
- master
build_beta:
stage: build
script:
- npm ci
- npm run build
- mkdir -p dist/lang
- mkdir -p dist/styles
- cp lang/* dist/lang/
- cp styles/* dist/styles/
- cp module-beta.json dist/module.json
- cd dist
- zip wfrp4e-actor-sheet-print.zip -r *.* lang styles -x ".*"
artifacts:
name: wfrp4e-actor-sheet-print
when: on_success
paths:
- dist/wfrp4e-actor-sheet-print.zip
rules:
- if: '$CI_COMMIT_BRANCH =~ /^(dev)\/.*$/'
when: on_success
deploy:
stage: deploy
script:
- git config --global user.email "$GIT_USER_EMAIL"
- git config --global user.name "$GIT_USER_NAME"
- git add -f dist/wfrp4e-actor-sheet-print.zip
- git commit -m "push artifact on dist-v4 branch"
- git remote set-url origin $GIT_SSH_URL
- git push -f origin HEAD:dist-v4
only:
- master
deploy_beta:
stage: deploy
script:
- git config --global user.email "$GIT_USER_EMAIL"
- git config --global user.name "$GIT_USER_NAME"
- git add -f dist/wfrp4e-actor-sheet-print.zip
- git commit -m "push artifact on dist-beta-v4 branch"
- git remote set-url origin $GIT_SSH_URL
- git push -f origin HEAD:dist-beta-v4
rules:
- if: '$CI_COMMIT_BRANCH =~ /^(dev)\/.*$/'
when: on_success

4
.prettierignore Normal file
View File

@@ -0,0 +1,4 @@
# Add files here to ignore them from prettier formatting
/dist
/node_modules

3
.prettierrc Normal file
View File

@@ -0,0 +1,3 @@
{
"singleQuote": true
}

7
CHANGELOG.md Normal file
View File

@@ -0,0 +1,7 @@
## In development
## 1.0.0
### New features
- Print function on actor sheet

30
README.md Normal file
View File

@@ -0,0 +1,30 @@
# WFRP 4 Actor Sheet Print
This module allow to print actor sheet.
# Authors
Skeroujvapluvit
## Supported language
- EN
- FR
## System and dependencies
This module need the Warhammer Fantasy Roleplay 4e system
- System : https://foundryvtt.com/packages/wfrp4e
### Optional dependencies
## Comming soon
## Module link
https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist/module.json
## Module Beta link
https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist-beta/module-beta.json

1
lang/en.json Normal file
View File

@@ -0,0 +1 @@
{}

1
lang/fr.json Normal file
View File

@@ -0,0 +1 @@
{}

29
module-beta.json Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "wfrp4e-actor-sheet-print-beta",
"title": "[WFRP4] Actor Sheet Print BETA version",
"description": "Functions to print actor sheet",
"version": "1.0.0",
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.9",
"author": "Skeroujvapluvit",
"systems": ["wfrp4e"],
"dependencies": [],
"languages": [
{
"lang": "en",
"name": "English",
"path": "lang/en.json"
},
{
"lang": "fr",
"name": "Français",
"path": "lang/fr.json"
}
],
"styles": ["./styles/pj-print.css"],
"url": "https://github.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/tree/dist-beta",
"download": "https://github.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/blob/dist-beta/dist/wfrp4e-actor-sheet-print.zip?raw=true",
"manifest": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist-beta/module-beta.json",
"readme": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist-beta/README.md",
"changelog": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist-beta/CHANGELOG.md"
}

29
module.json Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "wfrp4e-actor-sheet-print",
"title": "[WFRP4] Actor Sheet Print",
"description": "Functions to print actor sheet",
"version": "1.0.0",
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.9",
"author": "Skeroujvapluvit",
"systems": ["wfrp4e"],
"dependencies": [],
"languages": [
{
"lang": "en",
"name": "English",
"path": "lang/en.json"
},
{
"lang": "fr",
"name": "Français",
"path": "lang/fr.json"
}
],
"styles": ["./styles/pj-print.css"],
"url": "https://github.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print",
"download": "https://github.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/blob/dist/dist/wfrp4e-actor-sheet-print.zip?raw=true",
"manifest": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist/module.json",
"readme": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist/README.md",
"changelog": "https://raw.githubusercontent.com/mcailleaux/WFRP4-FoundryVTT-wfrp4e-actor-sheet-print/dist/CHANGELOG.md"
}

1420
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

18
package.json Normal file
View File

@@ -0,0 +1,18 @@
{
"scripts": {
"build": "tsc -p tsconfig.json && cp -r ./src ./dist",
"package": "sh ./package.sh"
},
"devDependencies": {
"@league-of-foundry-developers/foundry-vtt-types": "0.8.8-8",
"husky": "4.3.7",
"prettier": "2.2.1",
"pretty-quick": "3.1.0",
"typescript": "4.3.5"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}

6
package.sh Normal file
View File

@@ -0,0 +1,6 @@
npm run build
mkdir -p ./dist/lang
mkdir -p ./dist/styles
cp ./lang/* ./dist/lang/
cp ./src/styles/* ./dist/styles/
cp module.json ./dist/module.json

0
styles/pj-print.css Normal file
View File

23
tsconfig.json Normal file
View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"baseUrl": "tsconfig",
"lib": ["es2018", "dom"],
"declaration": true,
"moduleResolution": "node",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"rootDir": "src/",
"outDir": "dist",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"sourceMap": true,
"inlineSources": true,
"sourceRoot": "scr",
"strictNullChecks": true,
"target": "es6",
"types": ["@league-of-foundry-developers/foundry-vtt-types"]
},
"include": ["src/**/*"]
}