lol-constants 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/DDPaths.d.ts +7 -0
- package/dist/Constants/DDPaths.js +12 -0
- package/dist/Helpers/generateChampionsByKey.d.ts +1 -0
- package/dist/Helpers/generateChampionsByKey.js +22 -0
- package/dist/Helpers/generateChampionsByName.d.ts +1 -0
- package/dist/Helpers/generateChampionsByName.js +22 -0
- package/dist/assets/champion.json +1 -0
- package/dist/assets/item.json +1 -0
- package/dist/assets/runesReforged.json +1 -0
- package/dist/assets/summoner.json +1 -0
- package/dist/generated/championByKey.json +1 -0
- package/dist/generated/championByName.json +1 -0
- package/dist/index.d.ts +32137 -0
- package/dist/index.js +20 -0
- package/dist/scripts/generate-all.d.ts +1 -0
- package/dist/scripts/generate-all.js +9 -0
- package/package.json +21 -0
package/dist/index.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.championByName = exports.championByKey = exports.DDPaths = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
|
7
|
+
const champion_json_1 = __importDefault(require("./assets/champion.json"));
|
8
|
+
const item_json_1 = __importDefault(require("./assets/item.json"));
|
9
|
+
const runesReforged_json_1 = __importDefault(require("./assets/runesReforged.json"));
|
10
|
+
const summoner_json_1 = __importDefault(require("./assets/summoner.json"));
|
11
|
+
exports.champion = champion_json_1.default;
|
12
|
+
exports.item = item_json_1.default;
|
13
|
+
exports.runesReforged = runesReforged_json_1.default;
|
14
|
+
exports.summoner = summoner_json_1.default;
|
15
|
+
var DDPaths_1 = require("./Constants/DDPaths");
|
16
|
+
Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
|
17
|
+
const championByKey_json_1 = __importDefault(require("./generated/championByKey.json"));
|
18
|
+
const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
|
19
|
+
exports.championByKey = championByKey_json_1.default;
|
20
|
+
exports.championByName = championByName_json_1.default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const generateChampionsByKey_1 = require("../Helpers/generateChampionsByKey");
|
4
|
+
const generateChampionsByName_1 = require("../Helpers/generateChampionsByName");
|
5
|
+
const generateJSONs = () => {
|
6
|
+
(0, generateChampionsByKey_1.generateChampionsByKey)();
|
7
|
+
(0, generateChampionsByName_1.generateChampionsByName)();
|
8
|
+
};
|
9
|
+
generateJSONs();
|
package/package.json
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"name": "lol-constants",
|
3
|
+
"version": "0.1.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/index.d.ts",
|
7
|
+
"license": "MIT",
|
8
|
+
"files": [
|
9
|
+
"/dist"
|
10
|
+
],
|
11
|
+
"scripts": {
|
12
|
+
"build": "rmdir /s /q dist && tsc",
|
13
|
+
"publish-new-major": "npm run build && npm version major && npm publish",
|
14
|
+
"publish-new-minor": "npm run build && npm version minor && npm publish",
|
15
|
+
"publish-new-patch": "npm run build && npm version patch && npm publish",
|
16
|
+
"generate": "node dist/scripts/generate-all"
|
17
|
+
},
|
18
|
+
"devDependencies": {
|
19
|
+
"@types/node": "^17.0.42"
|
20
|
+
}
|
21
|
+
}
|