Permalink
Browse files

added boilerplate files

  • Loading branch information...
1 parent 3991f74 commit e290f541aff48e6a6920e5e9b312feea5d764621 @christian-bromann christian-bromann committed May 10, 2016
Showing with 121 additions and 3 deletions.
  1. +1 −0 .babelrc
  2. +15 −0 .editorconfig
  3. +1 −0 .eslintignore
  4. +8 −0 .eslintrc
  5. +1 −0 .npmignore
  6. +73 −0 gruntfile.js
  7. +2 −2 index.js
  8. +20 −1 package.json
View
@@ -0,0 +1 @@
+{ "presets": ["es2015"] }
View
@@ -0,0 +1,15 @@
+# EditorConfig helps developers define and maintain consistent
+# coding styles between different editors and IDEs
+# editorconfig.org
+
+root = true
+
+[*]
+
+indent_style = space
+indent_size = 4
+
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = false
View
@@ -0,0 +1 @@
+build/
View
@@ -0,0 +1,8 @@
+{
+ "extends": "standard",
+ "rules": {
+ "indent": [2, 4]
+ },
+ "parser": "babel-eslint",
+ "globals": {}
+}
View
@@ -0,0 +1 @@
+lib/
View
@@ -0,0 +1,73 @@
+module.exports = function (grunt) {
+ grunt.initConfig({
+ pkgFile: 'package.json',
+ clean: ['build'],
+ babel: {
+ options: {
+ sourceMap: false
+ },
+ dist: {
+ files: [{
+ expand: true,
+ cwd: './tasks',
+ src: ['*.js'],
+ dest: 'build',
+ ext: '.js'
+ }]
+ }
+ },
+ watch: {
+ dist: {
+ files: ['./tasks/*.js'],
+ tasks: ['babel:dist']
+ }
+ },
+ eslint: {
+ options: {
+ parser: 'babel-eslint'
+ },
+ target: ['tasks/*.js']
+ },
+ contributors: {
+ options: {
+ commitMessage: 'update contributors'
+ }
+ },
+ bump: {
+ options: {
+ commitMessage: 'v%VERSION%',
+ pushTo: 'upstream'
+ }
+ },
+ webdriver: {
+ options: {
+ logLevel: 'command',
+ waitforTimeout: 12345,
+ framework: 'mocha',
+ coloredLogs: true
+ },
+ testTargetConfigFile: {
+ configFile: './test/wdio.conf.js',
+ foo: 'bar'
+ }
+ }
+ })
+
+ require('load-grunt-tasks')(grunt)
+ grunt.loadTasks('build')
+ grunt.registerTask('default', ['build'])
+ grunt.registerTask('build', 'Build grunt-webdriver', function () {
+ grunt.task.run([
+ 'eslint',
+ 'clean',
+ 'babel'
+ ])
+ })
+ grunt.registerTask('release', 'Bump and tag version', function (type) {
+ grunt.task.run([
+ 'build',
+ 'contributors',
+ 'bump:' + (type || 'patch')
+ ])
+ })
+}
View
@@ -2,9 +2,9 @@
/**
* WebdriverCSS
- * Regression testing tool for WebdriverJS
+ * Regression testing tool for WebdriverIO
*
- * @author Christian Bromann <mail@christian-bromann.com>
+ * @author Christian Bromann <christian@saucelabs.com>
* @license Licensed under the MIT license.
*/
View
@@ -27,13 +27,32 @@
"tar.gz": "^1.0.1"
},
"devDependencies": {
+ "babel-cli": "^6.6.5",
+ "babel-core": "^6.7.2",
+ "babel-eslint": "^6.0.0",
+ "babel-preset-es2015": "^6.6.0",
+ "babel-register": "^6.7.2",
"chai": "^2.3.0",
"coveralls": "~2.11.2",
+ "eslint": "^2.5.1",
+ "eslint-config-standard": "^5.1.0",
+ "eslint-plugin-promise": "^1.1.0",
+ "eslint-plugin-standard": "^1.3.2",
+ "grunt": "^0.4.5",
+ "grunt-babel": "^6.0.0",
+ "grunt-bump": "^0.7.0",
+ "grunt-cli": "^1.2.0",
+ "grunt-contrib-clean": "^1.0.0",
+ "grunt-contrib-watch": "^1.0.0",
+ "grunt-eslint": "^18.0.0",
+ "grunt-npm": "0.0.2",
"istanbul": "^0.3.13",
+ "load-grunt-tasks": "^3.4.1",
"mocha": "^2.2.4",
"mocha-istanbul": "^0.2.0",
"nock": "^1.7.1",
- "webdriverio": "^2.4.5"
+ "wdio-mocha-framework": "^0.2.12",
+ "webdriverio": "^4.0.7"
},
"keywords": [
"webdriverjs",

0 comments on commit e290f54

Please sign in to comment.