lol-constants 0.3.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/StatRunes.d.ts +11 -0
- package/dist/Constants/StatRunes.js +14 -0
- package/dist/Helpers/generateItemsByName.d.ts +1 -0
- package/dist/Helpers/generateItemsByName.js +25 -0
- package/dist/Helpers/generateRunesById.d.ts +1 -0
- package/dist/Helpers/generateRunesById.js +20 -0
- package/dist/Helpers/generateRunesByName.d.ts +1 -0
- package/dist/Helpers/generateRunesByName.js +20 -0
- package/dist/Helpers/generateSummonersByKey.d.ts +1 -0
- package/dist/Helpers/generateSummonersByKey.js +24 -0
- package/dist/Helpers/generateSummonersByName.d.ts +1 -0
- package/dist/Helpers/generateSummonersByName.js +24 -0
- package/dist/assets/champion.json +1 -1
- package/dist/assets/item.json +1 -1
- package/dist/assets/runesReforged.json +1 -1
- package/dist/assets/summoner.json +1 -1
- package/dist/generated/championByKey.json +1 -1
- package/dist/generated/championByName.json +1 -1
- package/dist/generated/itemByKey.json +1 -0
- package/dist/generated/runesById.json +1 -0
- package/dist/generated/runesByName.json +1 -0
- package/dist/generated/summonerByKey.json +1 -0
- package/dist/generated/summonerByName.json +1 -0
- package/dist/index.d.ts +11248 -0
- package/dist/index.js +11 -1
- package/dist/scripts/generate-all.js +10 -0
- package/dist/types/index.d.ts +18 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
18
|
};
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.championByName = exports.championByKey = exports.DDPaths = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
|
20
|
+
exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByKey = exports.championByName = exports.championByKey = exports.DDPaths = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
|
21
21
|
const champion_json_1 = __importDefault(require("./assets/champion.json"));
|
22
22
|
const item_json_1 = __importDefault(require("./assets/item.json"));
|
23
23
|
const runesReforged_json_1 = __importDefault(require("./assets/runesReforged.json"));
|
@@ -30,7 +30,17 @@ var DDPaths_1 = require("./Constants/DDPaths");
|
|
30
30
|
Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
|
31
31
|
const championByKey_json_1 = __importDefault(require("./generated/championByKey.json"));
|
32
32
|
const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
|
33
|
+
const itemByKey_json_1 = __importDefault(require("./generated/itemByKey.json"));
|
34
|
+
const runesById_json_1 = __importDefault(require("./generated/runesById.json"));
|
35
|
+
const runesByName_json_1 = __importDefault(require("./generated/runesByName.json"));
|
36
|
+
const summonerByKey_json_1 = __importDefault(require("./generated/summonerByKey.json"));
|
37
|
+
const summonerByName_json_1 = __importDefault(require("./generated/summonerByName.json"));
|
33
38
|
exports.championByKey = championByKey_json_1.default;
|
34
39
|
exports.championByName = championByName_json_1.default;
|
40
|
+
exports.itemByKey = itemByKey_json_1.default;
|
41
|
+
exports.runesById = runesById_json_1.default;
|
42
|
+
exports.runesByName = runesByName_json_1.default;
|
43
|
+
exports.summonerByKey = summonerByKey_json_1.default;
|
44
|
+
exports.summonerByName = summonerByName_json_1.default;
|
35
45
|
__exportStar(require("./types"), exports);
|
36
46
|
__exportStar(require("./types/Meta"), exports);
|
@@ -2,8 +2,18 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const generateChampionsByKey_1 = require("../Helpers/generateChampionsByKey");
|
4
4
|
const generateChampionsByName_1 = require("../Helpers/generateChampionsByName");
|
5
|
+
const generateItemsByName_1 = require("../Helpers/generateItemsByName");
|
6
|
+
const generateRunesById_1 = require("../Helpers/generateRunesById");
|
7
|
+
const generateRunesByName_1 = require("../Helpers/generateRunesByName");
|
8
|
+
const generateSummonersByKey_1 = require("../Helpers/generateSummonersByKey");
|
9
|
+
const generateSummonersByName_1 = require("../Helpers/generateSummonersByName");
|
5
10
|
const generateJSONs = () => {
|
6
11
|
(0, generateChampionsByKey_1.generateChampionsByKey)();
|
7
12
|
(0, generateChampionsByName_1.generateChampionsByName)();
|
13
|
+
(0, generateItemsByName_1.generateItemsByName)();
|
14
|
+
(0, generateRunesById_1.generateRunesById)();
|
15
|
+
(0, generateRunesByName_1.generateRunesByName)();
|
16
|
+
(0, generateSummonersByKey_1.generateSummonersByKey)();
|
17
|
+
(0, generateSummonersByName_1.generateSummonersByName)();
|
8
18
|
};
|
9
19
|
generateJSONs();
|
package/dist/types/index.d.ts
CHANGED
@@ -1,9 +1,26 @@
|
|
1
1
|
import championByKey from '../generated/championByKey.json';
|
2
2
|
import championByName from '../generated/championByName.json';
|
3
|
-
|
3
|
+
import item from '../assets/item.json';
|
4
|
+
import itemByName from '../generated/itemByKey.json';
|
5
|
+
import summoner from '../assets/summoner.json';
|
6
|
+
import summonerByKey from '../generated/summonerByKey.json';
|
7
|
+
import summonerByName from '../generated/summonerByName.json';
|
8
|
+
import runesById from '../generated/runesById.json';
|
9
|
+
import { StatRunes } from '../Constants/StatRunes';
|
10
|
+
import runesByName from '../generated/runesByName.json';
|
4
11
|
export declare type ChampionKey = keyof typeof championByKey.data;
|
12
|
+
export declare type ChampionName = keyof typeof championByName.data;
|
13
|
+
export declare type ItemKey = keyof typeof item.data;
|
14
|
+
export declare type ItemName = keyof typeof itemByName.data;
|
15
|
+
export declare type SummonerId = keyof typeof summoner.data;
|
16
|
+
export declare type SummonerKey = keyof typeof summonerByKey.data;
|
17
|
+
export declare type SummonerName = keyof typeof summonerByName.data;
|
18
|
+
export declare type RuneId = keyof typeof runesById | keyof typeof StatRunes;
|
19
|
+
export declare type RuneName = keyof typeof runesByName;
|
5
20
|
export declare type XP = number;
|
6
21
|
export declare type Minute = number;
|
7
22
|
export declare type TPosition = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
|
8
23
|
export declare type TLane = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM';
|
9
24
|
export declare type TRole = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
|
25
|
+
export declare type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
|
26
|
+
export declare type Skill = 'Q' | 'W' | 'E' | 'R';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lol-constants",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.6.0",
|
4
4
|
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -9,11 +9,11 @@
|
|
9
9
|
"/dist"
|
10
10
|
],
|
11
11
|
"scripts": {
|
12
|
-
"build": "rmdir /s /q dist && tsc",
|
13
|
-
"publish-new-major": "
|
14
|
-
"publish-new-minor": "
|
15
|
-
"publish-new-patch": "
|
16
|
-
"generate": "node dist/scripts/generate-all"
|
12
|
+
"clean-build": "rmdir /s /q dist && tsc",
|
13
|
+
"publish-new-major": "tsc && npm version major && npm publish",
|
14
|
+
"publish-new-minor": "tsc && npm version minor && npm publish",
|
15
|
+
"publish-new-patch": "tsc && npm version patch && npm publish",
|
16
|
+
"generate": "node dist/scripts/generate-all && tsc"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
19
|
"@types/node": "^17.0.42"
|