0.1.29 • Published 2 years ago

jt-factory v0.1.29

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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()
  ]
});
0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.2

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago