purplehaze
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Purple haze

NPM Version

Inspired by generative programming and weed :). So I was learning Elm language at home usually in the evening and now I am missing all this generative stuff from Elm libs in TS.

Documentation

Documentation for this project is hosted on Github Pages

Bullet points

  • You can use URL imports
  • You will get typings for URL imports
  • SSG phase runs inside browser
  • transpiles with esbuild
  • you can use window and other browser internals during SSG phase

What is generated?

  • when you type URL of an esmodule typings are fetched in the background and typings generated locally for intellisense
  • when you add Markdown files with gray matter it will generate typings for those
  • when you add a Page it will generate Route types so you won't make a mistake later when routing to another page
  • when you add GraphQL backends it will generate Zeus libraries for it making communication with GraphQL backend type safe
  • when you modify config you can access type safe values from it during build ssg process
  • when you add env variables you can access the record with all of them

Roadmap

  • [x] Add esbuild
  • [x] Add TS support
  • [x] Add intelligent .d.ts autocompletion for imported es modules
  • [x] Add image supports
  • [x] Generate tsconfig
  • [x] Relative imports
  • [x] Allow head modification
  • [x] Pass env to browser
  • [x] Provide a way to inject config
  • [x] TSConfig generation for included declarations to work
  • [x] Make zeus configurable and importable file
  • [x] Clear error handling with line numbers
  • [x] split utility functions css,html,md from zeus
  • [x] allow to auto-zeus multiple schemas
  • [x] Types from url streaming
  • [x] JSX, TSX support
  • [ ] Provide verbose info levels
  • [x] Create docs and landing page deployable to pages
  • [x] Resolve imports with no extension
  • [x] catch esbuild transform errors
  • [x] support files exporting multiple static pages
  • [ ] Add possibility to override html tag
  • [x] Create static gray matter typings for .md files
  • [ ] Generate Routes typings for existing export default files
  • [ ] catch all errors including no network error
  • [x] generate TS Files from Markdown
  • [ ] css support
  • [ ] fetch accurate typings withe relative packages typings
  • [ ] create CI process description

Readme

Keywords

Package Sidebar

Install

npm i purplehaze

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

422 kB

Total Files

102

Last publish

Collaborators

  • aexol-office