Skip to content

Babel plugin to automatically make functions asynchronous - makes for cleaner code when testing using HipTest generated mocha/js templates and selenium webdriver

Notifications You must be signed in to change notification settings

hairmot/babel-plugin-auto-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Imagined usage

I'm using this with babel-plugin-auto-await to allow me to really lazily write asynchronous code as if it was synchronous. Specifically using it so that i don't have to edit the synchronous boilerplate returned from HipTest auto generated projects. This allows me to refresh the tests from the server but still work with the asynchronous nature of webdriver.

Installation

npm install --save-dev babel-plugin-auto-async

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["auto-async"]
}

Via CLI

babel-node --plugins auto-async script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["auto-async"]
});

About

Babel plugin to automatically make functions asynchronous - makes for cleaner code when testing using HipTest generated mocha/js templates and selenium webdriver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published