Skip to content

Commit

Permalink
chore: merge pull request #14 from mindflayer-vtt/feature/13-refactor
Browse files Browse the repository at this point in the history
refactor: split into multiple files and added build-system
  • Loading branch information
749 authored Feb 7, 2022
2 parents 87d8720 + 90327d0 commit 2e6ef76
Show file tree
Hide file tree
Showing 44 changed files with 15,753 additions and 1,290 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

env:
DEBIAN_FRONTEND: noninteractive
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y unzip zip
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run development build
run: npm run build
- run: zip -q -r node_modules.zip node_modules
- uses: actions/upload-artifact@v2
with:
path: node_modules.zip
version:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
- run: sudo apt-get update && sudo apt-get install -y unzip zip
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/checkout@v1
- uses: actions/download-artifact@v2
with:
path: node_modules.zip
- run: unzip -qq node_modules.zip
- run: npm run semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,4 @@ $RECYCLE.BIN/
chrome-overrides/
/dependencies/
foundry.js
.devDomain
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
15 changes: 15 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
branches:
- main
plugins:
- \@semantic-release/commit-analyzer:
- \@semantic-release/release-notes-generator:
- \@semantic-release/npm:
npmPublish: false
- \@semantic-release/git:
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
- \@semantic-release/exec:
prepareCmd: 'npm run prod && cd dist/ && zip -qq -r -o module.zip *'
- \@semantic-release/github:
assets:
- dist/module.zip
- dist/module.json
8 changes: 4 additions & 4 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ This project is made possible by the community surrounding it and especially the

## Contributors

- [749](https://github.com/749)
- [shawly](https://github.com/shawly)
- [/u/obscure_toast](https://www.reddit.com/user/obscure_toast) (for letting us use [his awesome mind flayer logo](https://www.reddit.com/r/DnD/comments/cdjokh/mind_flayer_color_tests/))
- [749](https://github.com/749)
- [shawly](https://github.com/shawly)
- [/u/obscure_toast](https://www.reddit.com/user/obscure_toast) (for letting us use [his awesome mind flayer logo](https://www.reddit.com/r/DnD/comments/cdjokh/mind_flayer_color_tests/))

## Libraries

TBD
- [lib-wrapper](https://github.com/ruipin/fvtt-lib-wrapper)
Loading

0 comments on commit 2e6ef76

Please sign in to comment.