From f359d31964cc59ef940ffb376be69a2eea60e5dd Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 21 Sep 2019 11:17:33 +0200 Subject: [PATCH] Allow a subset of console.* statements in production --- .eslintrc.js | 5 ++++- public/manifest.json | 5 +++-- src/mlpccg/set.ts | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3b46228..c8fcb9b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,7 +8,10 @@ module.exports = { extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"], rules: { - "no-console": process.env.NODE_ENV === "production" ? "error" : "off", + "no-console": + process.env.NODE_ENV === "production" + ? ["error", { allow: ["info", "warn", "error"] }] + : "off", "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" }, diff --git a/public/manifest.json b/public/manifest.json index 7478986..3c917b4 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,7 @@ { - "name": "mcgvue", - "short_name": "mcgvue", + "name": "MLPCARDGAME", + "short_name": "mcg", + "description": "MLP:CCG simulator", "icons": [{ "src": "./images/icons/android-chrome-192x192.png", "sizes": "192x192", diff --git a/src/mlpccg/set.ts b/src/mlpccg/set.ts index 7e00929..c554c8f 100644 --- a/src/mlpccg/set.ts +++ b/src/mlpccg/set.ts @@ -34,7 +34,6 @@ export async function loadSets() { if (Database == null) { throw new Error("Database was not initialized, init with 'initDB()'"); } - console.log(`Processing cards from ${set.Name}`); return await Database.cards.bulkPut(set.Cards); }) );