mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 23:42:29 +00:00
1060e70e82
Running mocha on the coffee and ts sources resulted in unreliable sourcemaps, and breakpoints not working, among other things. To solve this, this commit adds package.json tasks which will build both the coffeescript and typescript files with their sourcemaps and places it into a build directory. It also copies over other dependent files, such as test data and migrations. Another task adds a mocha debugging command, which can be connected to using a node debugger. Another tasks runs mocha without a debugging interface, but also without running linters etc first. This enables the tests to be run much faster. Change-type: minor Signed-off-by: Cameron Diver <cameron@resin.io>
18 lines
323 B
JSON
18 lines
323 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"noImplicitAny": true,
|
|
"noUnusedParameters": true,
|
|
"noUnusedLocals": true,
|
|
"preserveConstEnums": true,
|
|
"removeComments": true,
|
|
"sourceMap": true,
|
|
"strictNullChecks": true,
|
|
"outDir": "./build/src/"
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"typings/**/*.d.ts"
|
|
]
|
|
}
|