Skip to content

Commit

Permalink
Merge pull request #8 from Larkinabout/1.0.0
Browse files Browse the repository at this point in the history
1.0.0
  • Loading branch information
Larkinabout authored Jan 26, 2023
2 parents 914acc7 + 23b3347 commit d1b446c
Show file tree
Hide file tree
Showing 11 changed files with 527 additions and 407 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip

# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip module.json readme.md LICENSE languages/ scripts/token-action-hud-dnd5e.min.js
- run: zip -r ./module.zip module.json readme.md LICENSE languages/ scripts/constants.js scripts/defaults.js scripts/token-action-hud-dnd5e.min.js

# Create a release for this specific version
- name: Update Release with Files
Expand Down
6 changes: 0 additions & 6 deletions enums/core-version.js

This file was deleted.

4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"url": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e",
"flags": {},
"version": "0.1.0",
"version": "1.0.0",
"compatibility": {
"minimum": "10",
"verified": "10.291"
Expand Down Expand Up @@ -104,7 +104,7 @@
}
},
"socket": false,
"manifest": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e/releases/download/0.1.0/module.zip",
"manifest": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e/releases/download/1.0.0/module.zip",
"download": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e/releases/latest/download/module.zip",
"readme": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e#readme",
"protected": false,
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export default [
'scripts/*.js',
'scripts/*/*.js'
],
exclude: ['scripts/token-action-hud-dnd5e.min.js']
exclude: [
'scripts/constants.js',
'scripts/defaults.js',
'scripts/token-action-hud-dnd5e.min.js']
},
output: {
format: 'esm',
Expand Down
205 changes: 133 additions & 72 deletions scripts/action-handler.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const CoreCategoryManager = coreModule.CategoryManager
export const CorePreRollHandler = coreModule.PreRollHandler
export const CoreRollHandler = coreModule.RollHandler
export const CoreSystemManager = coreModule.SystemManager
export const CoreUtils = coreModule.Utils
export const Logger = coreModule.Logger

// For development
Expand All @@ -25,4 +26,6 @@ export const CoreCategoryManager = await import(coreCategoryManagerFile).then(mo
export const CorePreRollHandler = await import(corePreRollHandlerFile).then(module => module.PreRollHandler)
export const CoreRollHandler = await import(coreRollHandlerFile).then(module => module.RollHandler)
export const CoreSystemManager = await import(coreSystemManagerFile).then(module => module.SystemManager)
export const Logger = await import(coreUtilsFile).then(module => module.Logger) */
const coreUtilsModule = await import(coreUtilsFile)
export const CoreUtils = coreUtilsModule.Utils
export const Logger = coreUtilsModule.Logger */
54 changes: 54 additions & 0 deletions scripts/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/**
* Module-based constants
*/
export const MODULE = {
ID: 'token-action-hud-dnd5e'
}

/**
* Core module version required by the system module
*/
export const REQUIRED_CORE_MODULE_VERSION = {
full: '1.0.(0+)',
major: '1',
minor: '0'
}

/**
* Activation type icons
*/
export const ACTIVATION_TYPE_ICON = {
bonus: 'fas fa-plus',
crew: 'fas fa-users',
day: 'fas fa-hourglass-end',
hour: 'fas fa-hourglass-half',
lair: 'fas fa-home',
minute: 'fas fa-hourglass-start',
legendary: 'fas fas fa-dragon',
reaction: 'fas fa-bolt',
special: 'fas fa-star'
}

/**
* Concentration icon
*/
export const CONCENTRATION_ICON = 'fas fa-circle-c'

/**
* Prepared icon
*/
export const PREPARED_ICON = 'fas fa-sun'

/**
* Ritual icon
*/
export const RITUAL_ICON = 'fas fa-circle-r'

/**
* Proficiency level icons
*/
export const PROFICIENCY_LEVEL_ICON = {
0.5: 'fas fa-adjust',
1: 'fas fa-check',
2: 'fas fa-check-double'
}
Loading

0 comments on commit d1b446c

Please sign in to comment.