-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
142 lines (142 loc) · 6.58 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"name": "data-dashboard",
"version": "0.5.3",
"description": "A data-driven dashboard console for report widgets",
"license": "MIT",
"type": "module",
"module": "server.js",
"browser": "docs/index.html",
"repository": {
"type": "git",
"url": "git+https://github.com/dna-engine/data-dashboard.git"
},
"homepage": "https://data-dashboard.js.org",
"bugs": "https://github.com/dna-engine/data-dashboard/issues",
"keywords": [
"charts",
"dashboard",
"data-dashboard",
"dna-engine",
"html5",
"javascript",
"report",
"typescript",
"widgets"
],
"jshintConfig": {
"esversion": 11,
"strict": "implied",
"eqeqeq": true,
"undef": true,
"unused": true,
"mocha": true,
"node": true
},
"runScriptsConfig": {
"clean": [
"rimraf build docs src/web-app/+page/html/generated"
],
"libraries": [
"make-dir build/1-pre/libs",
"csso node_modules/web-ignition/dist/reset.min.css --output build/1-pre/libs/reset.min.css",
"csso node_modules/dna-engine/dist/dna-engine.css --output build/1-pre/libs/dna-engine.css",
"csso node_modules/simple-datatables/dist/style.css --output build/1-pre/libs/simple-datatables.css",
"csso node_modules/pretty-print-json/dist/css/pretty-print-json.min.css --output build/1-pre/libs/pretty-print-json.css",
"replacer build/1-pre/libs --ext=.css build/2-dev/web-app --concat=libraries.css --header=/*{{bang}}{{space}}{{file.base}}{{space}}*/",
"replacer node_modules/chart.js/dist/chart.umd.js --no-source-map build/1-pre/libs",
"copy-file node_modules/dna-engine/dist/dna-engine.min.js --folder build/1-pre/libs",
"copy-file node_modules/fetch-json/dist/fetch-json.min.js --folder build/1-pre/libs",
"copy-file node_modules/pretty-print-json/dist/pretty-print-json.min.js --folder build/1-pre/libs",
"copy-file node_modules/simple-datatables/dist/umd/simple-datatables.js --folder build/1-pre/libs",
"copy-file node_modules/web-ignition/dist/lib-x.min.js --folder build/1-pre/libs",
"replacer build/1-pre/libs --ext=.js build/2-dev/web-app --concat=libraries.js --header=//{{bang}}{{space}}{{file.base}} --no-liquid"
],
"generated": [
"replacer src/web-app/+page/widgets --ext=.html --content={{open-curly}}[p]render{{space}}{{quote}}{{file.path}}{{quote}}%{{close-curly}} src/web-app/+page/html/generated --find=[p] --replacement=% --concat=widgets-generated.html",
"replacer src/web-app/+page/widgets --ext=.less --content=@import{{space}}{{quote}}../../../../{{file.dir}}/{{file.name}}{{quote}}{{semi}} src/web-app/+page/css --concat=widgets-generated.less"
],
"bundle-js": [
"recursive-exec build/1-pre/web-app --ext=.js --exclude=+ 'rollup {{file}} --file build/2-dev/web-app/{{filename}} --name {{nameCamelCase}} --format iife --globals chart.js:globalThis,dna-engine:globalThis,fetch-json:globalThis,pretty-print-json:globalThis,simple-datatables:globalThis,web-ignition:globalThis'"
],
"build1-pre": [
"jshint . --exclude-path .gitignore",
"eslint --max-warnings 0",
"tsc",
"replacer src/web-app --ext=.html --exclude=+ build/1-pre/web-app --rename=index.html"
],
"build2-dev": [
"img-src-placeholder build/1-pre/web-app build/2-dev/web-app",
"copy-folder src/web-app/+common/assets build/2-dev/web-app/assets",
"lessc src/web-app/+common/style.less build/2-dev/web-app/style.css",
"recursive-exec src/web-app --ext=.less --exclude=+ 'lessc {{file}} build/2-dev/web-app/{{basename}}.css'",
"run-scripts bundle-js"
],
"build3-min": [
"copy-folder build/2-dev/web-app --ext=.html build/3-min/web-app",
"copy-folder build/2-dev/web-app/assets build/3-min/web-app/assets",
"copy-file build/2-dev/web-app/libraries.css --folder build/3-min/web-app",
"copy-file build/2-dev/web-app/libraries.js --folder build/3-min/web-app",
"recursive-exec build/2-dev/web-app --ext=.css 'csso {{file}} --output build/3-min/web-app/{{filename}}'",
"recursive-exec build/2-dev/web-app --ext=.js 'uglifyjs {{file}} --output build/3-min/web-app/{{filename}}'"
],
"build4-rev": [
"rev-web-assets build/3-min/web-app build/4-rev/web-app --manifest --meta-content-base=https://data-dashboard.js.org",
"copy-file build/4-rev/web-app/manifest.json --move build/4-rev --folder"
],
"docs": [
"add-dist-header build/4-rev/web-app docs --all-files --recursive",
"copy-file src/properties/cname.txt docs/CNAME",
"html-validator docs"
],
"dev": [
"tsc --watch --preserveWatchOutput",
"chokidar 'build/1-pre/web-app/**/*.js' --command 'run-scripts bundle-js'",
"browser-sync . --startPath build/2-dev/web-app --files build/2-dev/web-app"
]
},
"scripts": {
"pretest": "run-scripts clean libraries generated build1-pre build2-dev build3-min build4-rev docs",
"test": "mocha spec/*.spec.js --timeout 7000",
"dev": "npm test && run-scripts dev --parallel",
"interactive": "openBrowser=true npm start"
},
"dependencies": {
"fetch-json": "~3.3",
"open": "~10.1"
},
"devDependencies": {
"@eslint/js": "~9.9",
"@fortawesome/fontawesome-free": "~6.6",
"@types/node": "~22.3",
"add-dist-header": "~1.4",
"assert-deep-strict-equal": "~1.2",
"browser-sync": "~3.0",
"chart.js": "~4.4",
"chokidar-cli": "~3.0",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"csso-cli": "~4.0",
"dna-engine": "~3.2",
"eslint": "~9.9",
"img-src-placeholder": "~1.1",
"jshint": "~2.13",
"less": "~4.2",
"make-dir-cli": "~4.0",
"mocha": "~10.7",
"pretty-print-json": "~3.0",
"puppeteer": "~23.1",
"puppeteer-browser-ready": "~1.3",
"recursive-exec": "~1.0",
"replacer-util": "~1.3",
"rev-web-assets": "~1.4",
"rimraf": "~6.0",
"rollup": "~4.20",
"run-scripts-util": "~1.3",
"simple-datatables": "~9.0",
"typescript": "~5.5",
"typescript-eslint": "~8.1",
"uglify-js": "~3.19",
"w3c-html-validator": "~1.8",
"web-ignition": "~2.2"
}
}