jt-factory

0.1.29 • Public • Published

JT Factory

A module to convert static markdown files into a json consumable useful format. It should be able to handle static assets, doing usual expected frontend stuff like converting images to be responsive and hashing static assets

Roadmap

  • Load config file and also have very valid defaults ✅
  • Transform .md files into json ✅
  • Transform frontmatter in .md files into json ✅
  • Find and transform image files into responsive picture element valid attributes ✅
  • Extract colour points from image ✅
  • Support property transform handling (to allow for things like relationship lookups) ✅
  • Support a dev mode that spins up a server to serve IFS paths ✅
  • Utility function to find all data files for route manifest ✅
  • Caching for aiding image conversion ❌
  • Marked plugin for decomposing image in markdown ❌
  • An exported relational transform module, for running transforms on related markdown files ✅

Further

  • Video first frame module ❌
  • Animated image module ❌

Installation

https://nodei.co/npm/jt-factory.png?downloads=true&downloadRank=true&stars=true

npm i jt-factory

Vite Plugin

This will let the images be served much quicker through the vite server, so you dont have to sit around for the images to be built

import { TransformServer } from 'jt-factory/vite';
import { defineConfig } from 'vite';

export default defineConfig({
	plugins: [
    TransformServer()
  ]
});

Package Sidebar

Install

npm i jt-factory

Weekly Downloads

0

Version

0.1.29

License

MIT

Unpacked Size

2.76 MB

Total Files

39

Last publish

Collaborators

  • jthawme