Skip to content

Commit 6c7f947

Browse files
committed
Removed copyfiles replaced by gulp task
1 parent 1be8285 commit 6c7f947

File tree

3 files changed

+99
-4
lines changed

3 files changed

+99
-4
lines changed

gulpfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var gulp = require("gulp");
2+
var ts = require("gulp-typescript");
3+
var tsProject = ts.createProject("tsconfig.json");
4+
5+
gulp.task("default", function () {
6+
return gulp.src('e2e/conf/*.conf')
7+
.pipe(gulp.dest('dist/e2e/conf/'))
8+
});

package-lock.json

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"scripts": {
66
"pretest": "npm run build",
77
"test": "mocha --ui bdd --recursive ./dist/test --timeout 90000",
8-
"e2econfigcopy": "copyfiles --flat ./e2e/conf/*.conf ./dist/e2e/conf/",
9-
"test:e2e": "npm run build && npm run e2econfigcopy && mocha --ui bdd --recursive ./dist/e2e --timeout 90000",
8+
"e2econfigcopy": "gulp",
9+
"test:e2e": "npm run build && mocha --ui bdd --recursive ./dist/e2e --timeout 90000",
1010
"test:all": "mocha --ui bdd --recursive ./dist/ --timeout 90000",
11-
"build": "rm -rf dist/ && tsc",
11+
"build": "rm -rf dist/ && tsc && npm run e2econfigcopy",
1212
"test:cov": "nyc --reporter=lcov --reporter=text-lcov npm t && nyc report --reporter=text-lcov",
1313
"test:coveralls": "npm run test:cov | coveralls"
1414
},
@@ -41,8 +41,9 @@
4141
"@types/ws": "^3.2.0",
4242
"assert": "^1.4.1",
4343
"chai": "^4.1.2",
44-
"copyfiles": "^2.1.0",
4544
"coveralls": "^3.0.0",
45+
"gulp": "^4.0.2",
46+
"gulp-typescript": "^5.0.1",
4647
"js-sha256": "^0.9.0",
4748
"mocha": "^4.0.1",
4849
"nyc": "^11.3.0",

0 commit comments

Comments
 (0)