Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
adapt new project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Apr 26, 2017
1 parent 22b52f0 commit 75e38c4
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 103 deletions.
14 changes: 14 additions & 0 deletions .babelrc
@@ -0,0 +1,14 @@
{
"presets": [
["env", {
"targets": {
"node": 0.12
}
}],
"stage-0"
],
"plugins": [
"add-module-exports",
"transform-object-assign"
]
}
3 changes: 3 additions & 0 deletions .editorconfig
Expand Up @@ -13,3 +13,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

[{.babelrc,.eslintrc,.codeclimate.yml,.travis.yml,*.json}]
indent_size = 2
35 changes: 32 additions & 3 deletions README.md
@@ -1,5 +1,9 @@
WDIO Sauce Labs Service [![Code Climate](https://codeclimate.com/github/webdriverio/wdio-sauce-service/badges/gpa.svg)](https://codeclimate.com/github/webdriverio/wdio-sauce-service)
==========
WDIO Sauce Labs Service
=======================

[![Code Climate](https://codeclimate.com/github/webdriverio/wdio-sauce-service/badges/gpa.svg)](https://codeclimate.com/github/webdriverio/wdio-sauce-service) [Code Climate](https://codeclimate.com/github/webdriverio/wdio-sauce-service/badges/gpa.svg)](https://codeclimate.com/github/webdriverio/wdio-sauce-service)

***

> A WebdriverIO service. It updates the job metadata ('name', 'passed', 'tags', 'public', 'build', 'custom-data') and runs Sauce Connect if desired.
Expand All @@ -10,7 +14,7 @@ The easiest way is to keep `wdio-sauce-service` as a devDependency in your `pack
```json
{
"devDependencies": {
"wdio-sauce-service": "~0.1"
"wdio-sauce-service": "~0.3.2"
}
}
```
Expand Down Expand Up @@ -65,6 +69,31 @@ Apply Sauce Connect options (e.g. to change port number or logFile settings). Se
Type: `Object`<br>
Default: `{}`

## Development

All commands can be found in the package.json. The most important are:

Watch changes:

```sh
$ npm run watch
```

Run tests:

```sh
$ npm test

# run test with coverage report:
$ npm run test:cover
```

Build package:

```sh
$ npm build
```

----

For more information on WebdriverIO see the [homepage](http://webdriver.io).
73 changes: 0 additions & 73 deletions gruntfile.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/sauce-launch-service.js
Expand Up @@ -44,7 +44,7 @@ class SauceLaunchService {
return
}

return new Promise((r) => this.sauceConnectProcess.close(r))
return new Promise((resolve) => this.sauceConnectProcess.close(resolve))
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/sauce-service.js
Expand Up @@ -46,7 +46,7 @@ class SauceService {
++this.failures
}
}

afterTest (test) {
if (!test.passed) {
++this.failures
Expand Down
53 changes: 28 additions & 25 deletions package.json
Expand Up @@ -4,7 +4,17 @@
"description": "WebdriverIO service for better Sauce Labs integration",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "run-s clean compile",
"clean": "rm -rf ./build",
"compile": "babel lib/ -d build/",
"eslint": "eslint ./lib",
"release": "np patch",
"release:patch": "np patch",
"release:minor": "np minor",
"release:major": "np major",
"test": "run-s eslint",
"prepublish": "npm prune",
"watch": "npm run compile -- --watch"
},
"repository": {
"type": "git",
Expand All @@ -27,32 +37,25 @@
},
"homepage": "https://github.com/webdriverio/wdio-sauce-service#readme",
"dependencies": {
"request": "^2.67.0",
"sauce-connect-launcher": "^1.1.1"
"request": "2.81.0",
"sauce-connect-launcher": "1.2.2"
},
"devDependencies": {
"babel": "^5.8.23",
"babel-core": "^5.8.23",
"babel-eslint": "^4.1.1",
"babel-plugin-rewire": "^0.1.22",
"babel-plugin-object-assign": "^1.2.1",
"eslint": "^1.4.1",
"eslint-config-standard": "^4.3.2",
"eslint-plugin-standard": "^1.3.0",
"grunt": "^0.4.5",
"grunt-babel": "^5.0.1",
"grunt-bump": "^0.6.0",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-eslint": "^17.1.0",
"grunt-mocha-istanbul": "^3.0.1",
"grunt-npm": "0.0.2",
"isparta": "^4.0.0",
"load-grunt-tasks": "^3.2.0",
"mocha": "^2.3.4",
"should": "^7.1.1",
"sinon": "^1.17.2"
"babel-cli": "6.24.1",
"babel-core": "6.24.1",
"babel-eslint": "7.2.3",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-transform-object-assign": "6.22.0",
"babel-preset-env": "1.4.0",
"babel-preset-stage-0": "6.24.1",
"eslint": "3.19.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-node": "4.2.2",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1",
"np": "2.13.3",
"npm-run-all": "4.0.2"
},
"contributors": [
"Christian Bromann <github@christian-bromann.com>",
Expand Down

0 comments on commit 75e38c4

Please sign in to comment.