0.0.8 • Published 3 years ago

@cguevara/filejutsu v0.0.8

Weekly downloads
10
License
ISC
Repository
github
Last release
3 years ago

Filejutsu

Filejutsu is an experimental tool for generating files and directory structures inspired by Next.js. Filejutsu can be used for various tasks such as:

  • Code generation
  • Static HTML/CSS/JS generation

How Filejutsu Works

The `template/` directory contains template files (files that end in `__.js`). Filejutsu converts these template files into actual files.

For example, a template file named `index.html__.js` will be converted into `index.html`.

Each template file is an ES module that exports the following functions:

  • `export default function(props) {...}` - The default export is a function that returns the file's contents.
  • `export async getProps(context) {...}` - (optional) `getProps` is an async function that returns the props, which will be passed to the default function.
  • `export async getPaths(context) {...}` - (optional) `getPaths` is an async function that returns the path parameters for dynamic filenames. TODO Explain this in more detail and include an example.
0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago