This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from marcinlesek/master
Upgrade repoter to 0.1.0 - a lot of changes & modes, with backward compatibility
- Loading branch information
Showing
26 changed files
with
927 additions
and
4,947 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.idea | ||
node_modules | ||
media | ||
media | ||
|
||
|
||
yarn.lock | ||
package-lock.json |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
language: node_js | ||
node_js: | ||
- stable | ||
- v4 | ||
- '0.12' | ||
- '0.10' | ||
- 10 | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
|
||
install: | ||
- yarn | ||
|
||
script: | ||
- yarn build |
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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
var gulp = require('gulp'); | ||
var babel = require('gulp-babel'); | ||
var mocha = require('gulp-mocha'); | ||
var del = require('del'); | ||
const gulp = require('gulp'); | ||
const babel = require('gulp-babel'); | ||
const mocha = require('gulp-mocha'); | ||
const del = require('del'); | ||
|
||
gulp.task('clean', function (cb) { | ||
del('lib', cb); | ||
del('lib', cb); | ||
}); | ||
|
||
gulp.task('build', ['clean'], function () { | ||
return gulp | ||
.src('src/**/*.js') | ||
.pipe(babel()) | ||
.pipe(gulp.dest('lib')); | ||
return gulp | ||
.src('src/**/*.js') | ||
.pipe(babel()) | ||
.pipe(gulp.dest('lib')); | ||
}); | ||
|
||
gulp.task('watch', ['build'], function () { | ||
gulp.watch('src/*.js', ['build']); | ||
gulp.watch('src/*.js', ['build']); | ||
}); | ||
|
||
gulp.task('test', ['build'], function () { | ||
return gulp | ||
.src('test/**.js') | ||
.pipe(mocha({ | ||
ui: 'bdd', | ||
reporter: 'spec', | ||
timeout: typeof v8debug === 'undefined' ? 2000 : Infinity // NOTE: disable timeouts in debug | ||
})); | ||
return gulp | ||
.src('test/**.js') | ||
.pipe(mocha({ | ||
ui: 'bdd', | ||
reporter: 'spec', | ||
timeout: typeof v8debug === 'undefined' ? 2000 : Infinity // NOTE: disable timeouts in debug | ||
})); | ||
}); | ||
|
||
gulp.task('preview', ['build'], function () { | ||
var buildReporterPlugin = require('testcafe').embeddingUtils.buildReporterPlugin; | ||
var pluginFactory = require('./lib'); | ||
var reporterTestCalls = require('./test/utils/reporter-test-calls'); | ||
var plugin = buildReporterPlugin(pluginFactory); | ||
const buildReporterPlugin = require('testcafe').embeddingUtils.buildReporterPlugin; | ||
const pluginFactory = require('./lib'); | ||
const reporterTestCalls = require('./test/utils/reporter-test-calls'); | ||
const plugin = buildReporterPlugin(pluginFactory); | ||
|
||
reporterTestCalls.forEach(function (call) { | ||
plugin[call.method].apply(plugin, call.args); | ||
}); | ||
reporterTestCalls.forEach(function (call) { | ||
plugin[call.method].apply(plugin, call.args); | ||
}); | ||
|
||
process.exit(0); | ||
process.exit(0); | ||
}); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.