-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved tests, add base for local testing.
- Loading branch information
Showing
8 changed files
with
362 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Run mocha (local)", | ||
"runtimeExecutable": "mocha", | ||
"cwd": "${workspaceFolder}", | ||
"args": ["dist/test"], | ||
"preLaunchTask": "npm: buildDebug", | ||
"autoAttachChildProcesses": true, | ||
"env": { | ||
"TEST_DEPLOY_LOCAL": "true" | ||
} | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Run mocha (production)", | ||
"runtimeExecutable": "mocha", | ||
"cwd": "${workspaceFolder}", | ||
"args": ["dist/test"], | ||
"preLaunchTask": "npm: buildDebug", | ||
"autoAttachChildProcesses": true | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"skipFiles": ["<node_internals>/**"], | ||
"program": "${workspaceFolder}/dist/index.js", | ||
"preLaunchTask": "npm: buildDebug", | ||
"outFiles": ["${workspaceFolder}/dist/**/*.js"] | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,13 @@ | |
"metacall-deploy": "dist/index.js" | ||
}, | ||
"scripts": { | ||
"test": "npm run --silent build && mocha dist/test", | ||
"test": "npm run buildDebug && mocha dist/test", | ||
"coverage": "nyc npm run test", | ||
"unit-integration": "npm run --silent test -- --ignore **/*.integration.spec.js", | ||
"unit": "npm run --silent test -- --ignore **/*.integration.spec.js", | ||
"prepublishOnly": "npm run --silent build", | ||
"postinstall": "node -e \"require('fs').existsSync('githooks') && require('./githooks/configure.js').configure()\"", | ||
"build": "npm run --silent lint && tsc", | ||
"buildDebug": "npm run --silent lint && tsc --sourceMap true", | ||
"lint": "eslint . --ignore-pattern dist", | ||
"fix": "eslint . --ignore-pattern dist --fix", | ||
"start": "node dist/index.js" | ||
|
@@ -27,9 +28,9 @@ | |
"deploy", | ||
"tool" | ||
], | ||
"author": "Thomas Rory Gummerson <[email protected]> (https://trgwii.no/)", | ||
"author": "Vicente Eduardo Ferrer Garcia <[email protected]> (https://metacall.io/)", | ||
"contributors": [ | ||
"Vicente Eduardo Ferrer Garcia <[email protected]> (https://metacall.io/)" | ||
"Thomas Rory Gummerson <[email protected]> (https://trgwii.no/)" | ||
], | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.