提交 0cd69b55 作者: 潘亚楠

init commit

上级
node_modules
dist
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Index File",
"type": "node",
"request": "launch",
"args": [
"${workspaceRoot}/src/index.ts" // 入口文件
],
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Current File",
"type": "node",
"request": "launch",
"args": [
"${relativeFile}" // 当前文件
],
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Current Test File",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
"args": [
"-r",
"ts-node/register",
"${relativeFile}", // 调试当前单元测试文件
"--colors",
"-t 100000" // 设置超时时间,因为调试时执行时间较长容易触发超时
],
"cwd": "${workspaceRoot}",
"protocol": "inspector"
}
]
}
\ No newline at end of file
{
"name": "qj-vue-cli",
"version": "0.1.0",
"description": "qj-vue-cli",
"main": "index.js",
"scripts": {
"watch-node": "nodemon dist/index.js",
"watch-ts": "tsc -w",
"dev": "concurrently \"npm run watch-ts\" \"npm run watch-node\"",
"build": "tsc",
"test": "mocha -r ts-node/register dist/**/*.test.js"
},
"repository": {
"type": "git",
"url": "git@git.allhome.com.cn:panyanan/vue-cli.git"
},
"keywords": [
"qj",
"vue",
"cli"
],
"author": "panyanan",
"license": "ISC",
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.17",
"@types/power-assert": "^1.5.2",
"concurrently": "^5.0.1",
"mocha": "^6.2.2",
"nodemon": "^2.0.2",
"power-assert": "^1.6.1",
"ts-node": "^8.5.4",
"typescript": "^3.7.3"
}
}
import * as http from 'http';
// debugger
function add (a:number, b: number): number {
return a + b;
}
add(1, 1);
import * as assert from 'power-assert';
describe('test', function () {
it('is a test', function () {
assert(true);
})
})
\ No newline at end of file
{
"compilerOptions": {
"module": "commonjs",
"outDir": "dist",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论