set up babel/gulp code and update deps

This commit is contained in:
Jonathan Lipps 2015-05-21 21:31:56 -07:00
Родитель 3da51d05cf
Коммит 8bb9972878
6 изменённых файлов: 25 добавлений и 18 удалений

Просмотреть файл

@ -1,7 +1,5 @@
{
"excludeFiles": ["submodules/**", "node_modules/**",
"./lib/server/static/**", "./lib/devices/firefoxos/atoms/*.js",
"./sample-code/**", "/Users/baba/Work/appium/ci/standalone-tools/node_modules/**"],
"excludeFiles": ["node_modules/**"],
"requireCurlyBraces": ["for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch",
"return", "try", "catch", "function"],

Просмотреть файл

@ -1,11 +1,11 @@
{
"laxcomma": true,
"strict": true,
"undef": true,
"unused": true,
"node": true,
"eqeqeq": true,
"trailing": true,
"indent": 2,
"shelljs": false
"esnext": true,
"experimental": ["asyncawait"]
}

Просмотреть файл

@ -1,16 +1,6 @@
assets/
submodules/
bin/publish.sh
reset.sh
reset.bat
bin/test.sh
sample-code/
test/
lib/devices/android/bootstrap/bin/
lib/devices/android/bootstrap/target/
lib/devices/android/bootstrap/local.properties
lib/devices/android/bootstrap/project.properties
lib/devices/android/bootstrap/.classpath
_vimrc_local.vim
*.swp
*.swo

6
gulpfile.js Normal file
Просмотреть файл

@ -0,0 +1,6 @@
"use strict";
var gulp = require('gulp'),
boilerplate = require('appium-gulp-plugins').boilerplate.use(gulp);
boilerplate({build: 'appium', jscs: false});

9
lib/sample.js Normal file
Просмотреть файл

@ -0,0 +1,9 @@
import Q from 'q';
let p = new Q('123');
async function func() {
return await p;
}
export default {func: func};

Просмотреть файл

@ -50,6 +50,8 @@
"appium-xcode": "=2.0.4",
"argparse": "~1.0.1",
"async": "~0.9.0",
"babel-core": "^5.4.3",
"babel-runtime": "^5.3.3",
"binary-cookies": "~0.1.1",
"body-parser": "~1.12.0",
"bplist-creator": "~0.0.5",
@ -88,6 +90,7 @@
"sandboxed-module": "~2.0.0",
"serve-favicon": "~2.2.0",
"socket.io": "~1.3.4",
"source-map-support": "^0.2.10",
"swig": "~1.4.2",
"temp": "~0.8.1",
"through": "~2.3.6",
@ -110,10 +113,11 @@
"test": "grunt travis"
},
"devDependencies": {
"appium-gulp-plugins": "^1.1.2",
"assert": "~1.3.0",
"bdd-with-opts": "^1.0.0",
"chai": "~2.0.0",
"chai-as-promised": "~4.2.0",
"chai": "^2.3.0",
"chai-as-promised": "^5.0.0",
"gps-demo-app": "https://github.com/appium/gps-demo-app/archive/master.tar.gz",
"grunt-contrib-jshint": "~0.11.0",
"grunt-exec": "^0.4.6",
@ -128,7 +132,7 @@
"merge-stream": "^0.1.7",
"mocha": "~2.1.0",
"mocha-jenkins-reporter": "^0.1.4",
"monocle-js": "~1.0.1",
"mochawait": "^2.0.0",
"node-static": "~0.7.6",
"promisepipe": "^1.0.1",
"rewire": "^2.3.1",