From e20f99b74b55fdb3edbcfe5bfdb700fc1a5e9574 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 22 May 2020 04:07:34 +0200 Subject: viewer: npm build:report command, to generate ./dist/report.html --- viewer/.vscode/tasks.json | 86 ++++++++++++++++++++++++++--------------------- viewer/package.json | 1 + 2 files changed, 49 insertions(+), 38 deletions(-) (limited to 'viewer') diff --git a/viewer/.vscode/tasks.json b/viewer/.vscode/tasks.json index 102002d..cb1cdb2 100644 --- a/viewer/.vscode/tasks.json +++ b/viewer/.vscode/tasks.json @@ -1,39 +1,49 @@ { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "type": "npm", - "script": "build", - "group": { - "kind": "build", - "isDefault": true - }, - "problemMatcher": [ - "$tsc" - ] - }, - { - "type": "npm", - "script": "serve", - "problemMatcher": [ - "$tsc" - ] - }, - { - "type": "npm", - "script": "lint-autoformat", - "problemMatcher": [ - "$tsc" - ] - }, - { - "type": "npm", - "script": "lint", - "problemMatcher": [ - "$tsc" - ] - } - ] -} \ No newline at end of file + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [ + "$tsc" + ] + }, + { + "type": "npm", + "script": "serve", + "problemMatcher": [ + "$tsc" + ] + }, + { + "type": "npm", + "script": "lint-autoformat", + "problemMatcher": [ + "$tsc" + ] + }, + { + "type": "npm", + "script": "lint", + "problemMatcher": [ + "$tsc" + ] + }, + { + "type": "npm", + "script": "build:report", + "problemMatcher": [ + "$tsc" + ], + "group": "build", + "label": "npm: build:report", + "detail": "vue-cli-service build --report", + } + ] +} diff --git a/viewer/package.json b/viewer/package.json index 0e2c48f..d1bb5a2 100644 --- a/viewer/package.json +++ b/viewer/package.json @@ -7,6 +7,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build --modern", + "build:report": "vue-cli-service build --report", "lint": "vue-cli-service lint --no-fix", "lint-autoformat": "vue-cli-service lint --fix", "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue|ts)' --locales './src/locales/*.json'" -- cgit v1.2.3