Set up AVA with Preact
This utility configures AVA to transform JSX with pragma required for Preact (h
) and adds support for importing project files using Babel with existing configuration.
It also installs AVA, in case it's missing.
$ npm install --save ava-preact-init
const avaPreactInit = require('ava-preact-init');
avaPreactInit().then(() => {
// done
});
Returns a Promise
.
Type: string
Default: '.'
Current working directory.
Install this module globally $ npm install --global ava-preact-init
and run $ ava-preact-init
.
MIT © Vadim Demedes