Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Support #137

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
*.log
.vscode
.vscode
dist
50 changes: 25 additions & 25 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
module.exports = {
abilities: require(__dirname + "/build/abilities.json"),
ability_ids: require(__dirname + "/build/ability_ids.json"),
aghs_desc: require(__dirname + "/build/aghs_desc.json"),
ancients: require(__dirname + "/build/ancients.json"),
chat_wheel: require(__dirname + "/build/chat_wheel.json"),
cluster: require(__dirname + "/build/cluster.json"),
countries: require(__dirname + "/build/countries.json"),
game_mode: require(__dirname + "/build/game_mode.json"),
hero_abilities: require(__dirname + "/build/hero_abilities.json"),
hero_lore: require(__dirname + "/build/hero_lore.json"),
hero_names: require(__dirname + "/build/hero_names.json"),
heroes: require(__dirname + "/build/heroes.json"),
item_colors: require(__dirname + "/build/item_colors.json"),
item_ids: require(__dirname + "/build/item_ids.json"),
items: require(__dirname + "/build/items.json"),
lobby_type: require(__dirname + "/build/lobby_type.json"),
neutral_abilities: require(__dirname + "/build/neutral_abilities.json"),
order_types: require(__dirname + "/build/order_types.json"),
patch: require(__dirname + "/build/patch.json"),
patchnotes: require(__dirname + "/build/patchnotes.json"),
permanent_buffs: require(__dirname + "/build/permanent_buffs.json"),
player_colors: require(__dirname + "/build/player_colors.json"),
region: require(__dirname + "/build/region.json"),
skillshots: require(__dirname + "/build/skillshots.json"),
xp_level: require(__dirname + "/build/xp_level.json")
abilities: require(__dirname + "/src/data/abilities.json"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need both this and the ts index file?

ability_ids: require(__dirname + "/src/data/ability_ids.json"),
aghs_desc: require(__dirname + "/src/data/aghs_desc.json"),
ancients: require(__dirname + "/src/data/ancients.json"),
chat_wheel: require(__dirname + "/src/data/chat_wheel.json"),
cluster: require(__dirname + "/src/data/cluster.json"),
countries: require(__dirname + "/src/data/countries.json"),
game_mode: require(__dirname + "/src/data/game_mode.json"),
hero_abilities: require(__dirname + "/src/data/hero_abilities.json"),
hero_lore: require(__dirname + "/src/data/hero_lore.json"),
hero_names: require(__dirname + "/src/data/hero_names.json"),
heroes: require(__dirname + "/src/data/heroes.json"),
item_colors: require(__dirname + "/src/data/item_colors.json"),
item_ids: require(__dirname + "/src/data/item_ids.json"),
items: require(__dirname + "/src/data/items.json"),
lobby_type: require(__dirname + "/src/data/lobby_type.json"),
neutral_abilities: require(__dirname + "/src/data/neutral_abilities.json"),
order_types: require(__dirname + "/src/data/order_types.json"),
patch: require(__dirname + "/src/data/patch.json"),
patchnotes: require(__dirname + "/src/data/patchnotes.json"),
permanent_buffs: require(__dirname + "/src/data/permanent_buffs.json"),
player_colors: require(__dirname + "/src/data/player_colors.json"),
region: require(__dirname + "/src/data/region.json"),
skillshots: require(__dirname + "/src/data/skillshots.json"),
xp_level: require(__dirname + "/src/data/xp_level.json")
};
Loading