Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Latest commit

 

History

History
50 lines (27 loc) · 924 Bytes

readme.md

File metadata and controls

50 lines (27 loc) · 924 Bytes

ava-preact-init Build Status

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.

Install

$ npm install --save ava-preact-init

Usage

const avaPreactInit = require('ava-preact-init');

avaPreactInit().then(() => {
	// done
});

API

avaPreactInit([options])

Returns a Promise.

options

cwd

Type: string
Default: '.'

Current working directory.

CLI

Install this module globally $ npm install --global ava-preact-init and run $ ava-preact-init.

License

MIT © Vadim Demedes