Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

bouzuya/create-beater-index

Repository files navigation

create-beater-index

beater index generator

Usage

cd test/
npx create-beater-index
# or npm init beater-index
npx create-beater-index --help
# or npm init beater-index --help

Example

$ cd test/
$ ls
foo.ts
$ cat foo.ts
import assert from 'assert';
import { test } from 'beater';

const tests = [
  test('example', () => {
    assert(1 === 1);
  })
];

export { tests };

$ npx create-beater-index
$ ls
foo.ts   index.ts
$ cat index.ts
import { Test } from 'beater';
import { tests as fooTests } from './foo';

const tests = ([] as Test[])
  .concat(fooTests);

export { tests };

How to build

npm install

License

MIT

Author

bouzuya <m@bouzuya.net> (https://bouzuya.net/)