willit
Gatsby's Will it Build data generator
Last updated a month ago by tylerbarnes .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install willit 
SYNC missed versions from official npm registry.

willit

Gatsby's benchmark data generator

Generates JSON or MDX files, with a datashape resembling a typical article, into the current directory.

oclif Version Downloads/week License

Usage

$ npm install -g willit
$ willit COMMAND
running command...
$ willit (-v|--version|version)
willit/1.0.0 darwin-x64 node-v10.16.3
$ willit --help [COMMAND]
USAGE
  $ willit COMMAND
...

Options

level

willit --level=1

The level is the amount of articles to generate. Each level correlates to the number of times to double starting our base number of 512. So Level 1 = 512, Level 2 = 1024, Level 3 = 2048, etc

num-pages

willit --num-pages=512

num-pages allows a specific number of articles to be generated. It overrides level if both are used.

type

willit type="mdx" --level=1

There are three types currently, json, mdx, or md. json is the default and will generate JSON files into a data directory. mdx and md will generate temporary JSON files and then convert them to MDX in a src/articles directory.

use-pregenerated-data

willit --use-pregenerated-data --level=1 --type="mdx"

This fetches pre-generated data from the repo instead of generating on the fly. num-pages works if there's a corresponding pregenerated data-set for the number set. See ./src/data/articles/ for available pregenerated datasets

Current Tags

  • 1.0.0                                ...           latest (a month ago)

7 Versions

  • 1.0.0                                ...           a month ago
  • 0.0.7                                ...           a month ago
  • 0.0.5                                ...           2 months ago
  • 0.0.4                                ...           2 months ago
  • 0.0.3                                ...           2 months ago
  • 0.0.2                                ...           2 months ago
  • 0.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 7
Dependencies (19)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |