Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sebv committed Jun 24, 2015
0 parents commit 1f5c6a7
Show file tree
Hide file tree
Showing 12 changed files with 158 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
build
*.log
11 changes: 11 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"excludeFiles": ["node_modules/**"],
"requireCurlyBraces": ["for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch",
"return", "try", "catch", "function"],
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
}
}
11 changes: 11 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"laxcomma": true,
"undef": true,
"unused": true,
"node": true,
"eqeqeq": true,
"trailing": true,
"indent": 2,
"esnext": true,
"experimental": ["asyncawait"]
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
*.log
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2012-2013 Appium Committers

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
appium-doctor
===================

Work in progress, stay tuned!

## Watch

```
npm run watch
```

## Test

```
npm test
```
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"use strict";

var gulp = require('gulp'),
boilerplate = require('appium-gulp-plugins').boilerplate.use(gulp);

boilerplate({build: 'appium-doctor', jscs: false});
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// transpile:main

import {default as sample} from './lib/sample';

export {sample};

9 changes: 9 additions & 0 deletions lib/sample.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Q from 'q';

let p = new Q('123');

async function func() {
return await p;
}

export default {func: func};
42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "appium-doctor",
"description": "Description goes here.",
"keywords": [
"appium"
],
"version": "0.0.0",
"author": "appium",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/appium/appium-doctor.git"
},
"bugs": {
"url": "https://github.com/appium/appium-doctor/issues"
},
"engines": [
"node"
],
"main": "./build/index.js",
"bin": {},
"directories": {
"lib": "lib"
},
"dependencies": {
"babel-runtime": "=5.5.5",
"source-map-support": "^0.3.1"
},
"scripts": {
"prepublish": "./node_modules/.bin/gulp prepublish",
"test": "./node_modules/.bin/gulp once",
"watch": "./node_modules/.bin/gulp"
},
"devDependencies": {
"appium-gulp-plugins": "^1.2.12",
"chai": "^3.0.0",
"chai-as-promised": "^5.1.0",
"gulp": "^3.8.11",
"mochawait": "^2.0.0",
"yargs": "^3.10.0"
}
}
22 changes: 22 additions & 0 deletions test/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"laxcomma": true,
"undef": true,
"unused": true,
"trailing": true,
"node": true,
"eqeqeq": true,
"trailing": true,
"expr": true,
"white": true,
"indent": 2,
"esnext": true,
"experimental": ["asyncawait"],
"globals": {
"describe": true,
"it": true,
"before": true,
"after": true,
"beforeEach": true,
"afterEach": true
}
}
17 changes: 17 additions & 0 deletions test/sample-specs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// transpile:mocha

import {sample} from '../..';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import 'mochawait';

chai.should();
chai.use(chaiAsPromised);

describe('sample', () => {
it('should-work',async () => {
let res = await sample.func();
res.should.equal('123');
});
});

0 comments on commit 1f5c6a7

Please sign in to comment.