Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avajs/ava-preact-init
Set up AVA for Preact
https://github.com/avajs/ava-preact-init
ava generate initialize nodejs preact scaffold
Last synced: about 2 months ago
JSON representation
Set up AVA for Preact
- Host: GitHub
- URL: https://github.com/avajs/ava-preact-init
- Owner: avajs
- License: mit
- Archived: true
- Created: 2016-12-03T17:58:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-03T20:09:13.000Z (about 8 years ago)
- Last Synced: 2024-10-30T00:55:17.927Z (2 months ago)
- Topics: ava, generate, initialize, nodejs, preact, scaffold
- Language: JavaScript
- Size: 3.91 KB
- Stars: 8
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-ava - ava-preact-init - Set up AVA for Preact. (Packages)
README
# ava-preact-init [![Build Status](https://travis-ci.org/avajs/ava-preact-init.svg?branch=master)](https://travis-ci.org/avajs/ava-preact-init)
> Set up AVA with [Preact](https://github.com/developit/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
```js
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](https://github.com/vadimdemedes)