Fix unit tests for mac/linux, remove -suite and -debug scripts

This commit is contained in:
Daniel Imms
2019-05-26 12:37:24 -07:00
parent 6cd774ae51
commit 9f77de42eb
2 changed files with 2 additions and 5 deletions
+1 -2
View File
@@ -16,9 +16,8 @@ const ts = require('gulp-typescript');
const util = require('gulp-util'); const util = require('gulp-util');
const buildDir = process.env.BUILD_DIR || 'build'; const buildDir = process.env.BUILD_DIR || 'build';
const tsProject = ts.createProject('src/tsconfig.json');
let srcDir = './src'; let srcDir = './src';
let outDir = './lib'; let outDir = './out';
const addons = fs.readdirSync(`${__dirname}/src/addons`); const addons = fs.readdirSync(`${__dirname}/src/addons`);
+1 -3
View File
@@ -60,11 +60,9 @@
"lint": "tslint 'src/**/*.ts' './demo/**/*.ts'", "lint": "tslint 'src/**/*.ts' './demo/**/*.ts'",
"test": "npm run mocha", "test": "npm run mocha",
"posttest": "npm run lint", "posttest": "npm run lint",
"test-debug": "node --inspect-brk node_modules/.bin/gulp test",
"test-suite": "gulp mocha-suite --test",
"test-coverage": "nyc -x gulpfile.js -x '**/*test*' npm run mocha", "test-coverage": "nyc -x gulpfile.js -x '**/*test*' npm run mocha",
"test-api": "mocha \"**/*.api.js\"", "test-api": "mocha \"**/*.api.js\"",
"mocha": "gulp test", "mocha": "NODE_PATH=$(pwd)/out gulp test",
"prebuild": "tsc -b ./src/tsconfig.all.json", "prebuild": "tsc -b ./src/tsconfig.all.json",
"build": "gulp build", "build": "gulp build",
"prepare": "npm run prebuild", "prepare": "npm run prebuild",