aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero~Informatique2020-05-22 04:07:34 +0200
committerZero~Informatique2020-05-22 04:15:10 +0200
commite20f99b74b55fdb3edbcfe5bfdb700fc1a5e9574 (patch)
treee1f79de4e8ab35143f6470d0ba10dc4d56349f41
parent9f07fa37b8c7772308ef49538803acdb1ce1ab81 (diff)
downloadldgallery-e20f99b74b55fdb3edbcfe5bfdb700fc1a5e9574.tar.gz
viewer: npm build:report command, to generate ./dist/report.html
-rw-r--r--viewer/.vscode/tasks.json86
-rw-r--r--viewer/package.json1
2 files changed, 49 insertions, 38 deletions
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 @@
1{ 1{
2 // See https://go.microsoft.com/fwlink/?LinkId=733558 2 // See https://go.microsoft.com/fwlink/?LinkId=733558
3 // for the documentation about the tasks.json format 3 // for the documentation about the tasks.json format
4 "version": "2.0.0", 4 "version": "2.0.0",
5 "tasks": [ 5 "tasks": [
6 { 6 {
7 "type": "npm", 7 "type": "npm",
8 "script": "build", 8 "script": "build",
9 "group": { 9 "group": {
10 "kind": "build", 10 "kind": "build",
11 "isDefault": true 11 "isDefault": true
12 }, 12 },
13 "problemMatcher": [ 13 "problemMatcher": [
14 "$tsc" 14 "$tsc"
15 ] 15 ]
16 }, 16 },
17 { 17 {
18 "type": "npm", 18 "type": "npm",
19 "script": "serve", 19 "script": "serve",
20 "problemMatcher": [ 20 "problemMatcher": [
21 "$tsc" 21 "$tsc"
22 ] 22 ]
23 }, 23 },
24 { 24 {
25 "type": "npm", 25 "type": "npm",
26 "script": "lint-autoformat", 26 "script": "lint-autoformat",
27 "problemMatcher": [ 27 "problemMatcher": [
28 "$tsc" 28 "$tsc"
29 ] 29 ]
30 }, 30 },
31 { 31 {
32 "type": "npm", 32 "type": "npm",
33 "script": "lint", 33 "script": "lint",
34 "problemMatcher": [ 34 "problemMatcher": [
35 "$tsc" 35 "$tsc"
36 ] 36 ]
37 } 37 },
38 ] 38 {
39} \ No newline at end of file 39 "type": "npm",
40 "script": "build:report",
41 "problemMatcher": [
42 "$tsc"
43 ],
44 "group": "build",
45 "label": "npm: build:report",
46 "detail": "vue-cli-service build --report",
47 }
48 ]
49}
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 @@
7 "scripts": { 7 "scripts": {
8 "serve": "vue-cli-service serve", 8 "serve": "vue-cli-service serve",
9 "build": "vue-cli-service build --modern", 9 "build": "vue-cli-service build --modern",
10 "build:report": "vue-cli-service build --report",
10 "lint": "vue-cli-service lint --no-fix", 11 "lint": "vue-cli-service lint --no-fix",
11 "lint-autoformat": "vue-cli-service lint --fix", 12 "lint-autoformat": "vue-cli-service lint --fix",
12 "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue|ts)' --locales './src/locales/*.json'" 13 "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue|ts)' --locales './src/locales/*.json'"