Permalink
Browse files

more hacking

  • Loading branch information...
1 parent 6036237 commit cc4c99410025bc0aab9810dbdc1ab2314881c37f @christian-bromann christian-bromann committed May 28, 2016
Showing with 176 additions and 226 deletions.
  1. +1 −1 .gitignore
  2. +6 −5 gruntfile.js
  3. +1 −3 index.js
  4. +103 −201 lib/documentScreenshot.js
  5. +0 −14 lib/generateUUID.js
  6. +12 −0 lib/helpers/generateUUID.js
  7. +30 −0 lib/scripts/getPageInfo.js
  8. +20 −0 lib/scripts/scroll.js
  9. +3 −2 package.json
View
@@ -17,7 +17,7 @@ coverage
.grunt
# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
+build
# Dependency directory
# Deployed apps should consider commenting this line out:
View
@@ -4,12 +4,13 @@ module.exports = function (grunt) {
clean: ['build'],
babel: {
options: {
- sourceMap: false
+ sourceMap: false,
+ plugins: ['transform-async-to-generator']
},
dist: {
files: [{
expand: true,
- cwd: './tasks',
+ cwd: './lib',
src: ['*.js'],
dest: 'build',
ext: '.js'
@@ -18,15 +19,15 @@ module.exports = function (grunt) {
},
watch: {
dist: {
- files: ['./tasks/*.js'],
+ files: ['./lib/*.js'],
tasks: ['babel:dist']
}
},
eslint: {
options: {
parser: 'babel-eslint'
},
- target: ['tasks/*.js']
+ target: ['lib/*.js']
},
contributors: {
options: {
@@ -58,7 +59,7 @@ module.exports = function (grunt) {
grunt.registerTask('default', ['build'])
grunt.registerTask('build', 'Build grunt-webdriver', function () {
grunt.task.run([
- 'eslint',
+ // 'eslint',
'clean',
'babel'
])
View
@@ -1,5 +1,3 @@
-'use strict';
-
/**
* WebdriverCSS
* Regression testing tool for WebdriverIO
@@ -8,4 +6,4 @@
* @license Licensed under the MIT license.
*/
-module.exports = process.env.WEBDRIVERCSS_COVERAGE === '1' ? require('./lib-cov/webdrivercss.js') : require('./lib/webdrivercss.js');
+module.exports = process.env.WEBDRIVERCSS_COVERAGE === '1' ? require('./build-cov/webdrivercss.js') : require('./build/webdrivercss.js');
Oops, something went wrong.

0 comments on commit cc4c994

Please sign in to comment.