Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.nyc_output
build
lib
node_modules
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea
/.nyc_output
/.vscode
/coverage
/dist
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ before_install:
before_script:
- greenkeeper-lockfile-update
script:
- node_modules/karma/bin/karma start karma.conf.js --single-run
- yarn run test
after_script:
- greenkeeper-lockfile-upload
after_success:
Expand Down
26 changes: 24 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,34 @@
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"test": "karma start --single-run",
"mocha": "mocha test/**/*.test.ts --require ts-node/register",
"test": "nyc mocha",
"karma": "karma start --single-run",
"autoformat": "tsfmt -r --useTsconfig tsconfig.test.json",
"prepublish": "tsc -d && publish-please guard",
"clean-up": "rm -rf coverage && rm -rf lib",
"publish-please": "npm run autoformat && npm run clean-up && npm run build && publish-please",
"build": "webpack --env.production"
},
"nyc": {
"include": [
"src/**/*.ts"
],
"exclude": [
"test"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"lcov"
],
"sourceMap": true,
"instrument": true
},
"repository": {
"type": "git",
"url": "git@github.com:RobotlegsJS/SignalsJS.git"
Expand Down Expand Up @@ -64,12 +84,14 @@
"karma-sourcemap-writer": "^0.1.2",
"karma-webpack": "^2.0.4",
"mocha": "^3.5.0",
"nyc": "^11.1.0",
"publish-please": "^2.3.1",
"reflect-metadata": "^0.1.10",
"remap-istanbul": "^0.9.5",
"rimraf": "^2.6.1",
"sinon": "^3.2.1",
"sinon-chai": "^2.13.0",
"source-map-support": "^0.4.17",
"ts-loader": "^2.3.4",
"ts-node": "^3.3.0",
"tslint": "^5.7.0",
Expand Down
5 changes: 5 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--compilers ts-node/register
--require source-map-support/register
--full-trace
--bail
test/**/*.test.ts
Loading