-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
80 lines (80 loc) · 2 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
{
"name": "bjs",
"version": "1.0.0",
"description": "Disco Javascript Framework",
"repository": "https://github.com/pdemanget/bjs",
"type": "module",
"main": "./src/b.js",
"author": "Philippe Demanget, Cyrille Pontvieux",
"license": "LGPL-3.0-or-later",
"scripts": {
"nodeawait": "node --experimental-repl-await",
"test": "jest",
"dev": "webpack serve",
"build": "webpack"
},
"babel": {
"env": {
"test": {
"plugins": [
"@babel/plugin-transform-modules-commonjs"
]
}
}
},
"jest": {
"roots": [
"<rootDir>/src/",
"<rootDir>/tests/"
],
"testEnvironment": "jsdom",
"injectGlobals": false,
"clearMocks": true,
"reporters": [
"default",
[
"./node_modules/jest-html-reporter",
{
"pageTitle": "BJS Test Report"
}
]
],
"//": "pass --coverage to test script to collect coverage",
"collectCoverage": false,
"collectCoverageFrom": [
"<rootDir>/src/*.js"
],
"coverageDirectory": "<rootDir>/coverage",
"coverageReporters": [
"json",
"lcov",
"text",
"text-summary",
"clover"
]
},
"devDependencies": {
"@babel/core": "^7.13.15",
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
"copy-webpack-plugin": "^8.1.1",
"eslint": "^7.23.0",
"html-webpack-plugin": "^5.3.1",
"html-webpack-tags-plugin": "^3.0.1",
"jest": "^26.6.3",
"jest-html-reporter": "^3.3.0",
"pug": "^3.0.2",
"pug-loader": "^2.4.0",
"webpack": "^5.28.0",
"webpack-cli": "^4.6.0",
"webpack-dev-server": "^3.11.2"
},
"dependencies": {},
"//": {
"pug": "read pug file",
"pug-loader": "pug file content as template",
"html-webpack-plugin": "html wrapper for the bundle",
"@babel/core": "required by babel-jest as peer dep",
"@babel/plugin-transform-modules-commonjs": "jest cannot understand ES modules, commonjs is required",
"babel-jest": "to transpile for jest"
}
}