Fix unit tests for mac/linux, remove -suite and -debug scripts
This commit is contained in:
+1
-2
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user