-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
140 lines (140 loc) · 5.04 KB
/
Copy pathpackage.json
File metadata and controls
140 lines (140 loc) · 5.04 KB
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
{
"name": "simple-node-mvc-starter-project",
"description": "Simple Node.js MVC starter project",
"version": "0.0.0",
"license": "MIT",
"type": "module",
"module": "server.js",
"exports": "./server.js",
"repository": {
"type": "git",
"url": "git+https://github.com/dna-dom/simple-node-mvc-starter-project.git"
},
"homepage": "https://github.com/dna-dom/simple-node-mvc-starter-project",
"bugs": "https://github.com/dna-dom/simple-node-mvc-starter-project/issues",
"docs": "https://github.com/dna-dom/simple-node-mvc-starter-project#readme",
"keywords": [
"jamstack",
"javascript",
"mvc",
"node",
"typescript"
],
"jshintConfig": {
"esversion": 11,
"strict": "implied",
"eqeqeq": true,
"undef": true,
"unused": true,
"node": true,
"browser": true,
"mocha": true,
"globals": {
"app": true,
"fetchJson": true
}
},
"recursiveExecConfig": {
"commands": {
"rollup": "rollup {{file}} --file build/2-dev/web-app/{{filename}} --name {{nameCamelCase}} --format iife --globals dna-dom:globalThis,fetch-json:globalThis,pretty-print-json:globalThis",
"lessc": "lessc {{file}} build/2-dev/web-app/{{basename}}.css",
"lightningcss": "lightningcss {{file}} --output-file build/3-min/web-app/{{filename}} --minify --bundle",
"uglifyjs": "uglifyjs {{file}} --output build/3-min/web-app/{{filename}}"
}
},
"runScriptsConfig": {
"clean": [
"rimraf build dist"
],
"bundle-js": [
"recursive-exec build/1-pre/web-app --ext=.js --exclude=+ {{command:rollup}}"
],
"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/common.less build/2-dev/web-app/style.css",
"recursive-exec src/web-app --ext=.less --exclude=+ {{command:lessc}}",
"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",
"recursive-exec build/2-dev/web-app --ext=.css {{command:lightningcss}}",
"recursive-exec build/2-dev/web-app --ext=.js {{command:uglifyjs}}"
],
"build4-rev": [
"rev-web-assets build/3-min/web-app --manifest build/4-rev/web-app",
"copy-file build/4-rev/web-app/manifest.json --move --folder build/4-rev"
],
"dist": [
"copy-folder build/1-pre/api-server --ext=.js dist/api-server",
"copy-folder build/4-rev/web-app/assets dist/web-app/assets",
"add-dist-header build/4-rev/web-app --recursive dist/web-app"
],
"dev": [
"tsc --watch --preserveWatchOutput",
"chokidar 'src/web-app/**/*.html' --command 'run-scripts build2-dev'",
"chokidar 'build/1-pre/web-app/**/*.js' --command 'run-scripts bundle-js'",
"node --watch server.js",
"browser-sync . --startPath build/2-dev/web-app --files build/2-dev/web-app"
]
},
"scripts": {
"pretest": "run-scripts clean build1-pre build2-dev build3-min build4-rev dist",
"test": "mocha spec/*.spec.js --require spec/fixtures/setup-teardown.js --timeout 7000",
"posttest": "html-validator dist/web-app",
"dev": "npm test && run-scripts dev --parallel",
"prod": "NODE_ENV=production npm start"
},
"dependencies": {
"chalk": "~5.6",
"cors": "~2.8",
"dotenv": "~17.4",
"express": "~5.2",
"fetch-json": "~3.5",
"http-terminator": "~3.2",
"lokijs": "~1.5",
"pretty-print-json": "~3.0"
},
"devDependencies": {
"@eslint/js": "~10.0",
"@fortawesome/fontawesome-free": "~7.2",
"@types/cors": "~2.8",
"@types/express": "~5.0",
"@types/gapi.auth2": "~0.0",
"@types/lokijs": "~1.5",
"@types/node": "~25.9",
"add-dist-header": "~1.6",
"assert-deep-strict-equal": "~1.2",
"browser-sync": "~3.0",
"chokidar-cli": "~3.0",
"copy-file-util": "~1.3",
"copy-folder-util": "~1.2",
"dna-dom": "~3.3",
"eslint": "~10.4",
"img-src-placeholder": "~1.2",
"jshint": "~2.13",
"less": "~4.6",
"lightningcss-cli": "~1.32",
"mocha": "~11.7",
"puppeteer": "~25.0",
"puppeteer-browser-ready": "~1.4",
"recursive-exec": "~1.1",
"replacer-util": "~1.6",
"rev-web-assets": "~1.5",
"rimraf": "~6.1",
"rollup": "~4.60",
"run-scripts-util": "~1.3",
"typescript": "~6.0",
"typescript-eslint": "~8.59",
"uglify-js": "~3.19",
"w3c-html-validator": "~2.2",
"web-ignition": "~2.5"
}
}