Skip to content

Joakim-Byg/tiny-web-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A tiny framework for simple web-sites

I wanted to make a small site for technical blog-posts etc. I sought up the most contemporary web-stack of 2023-24, and found the following: What is the ideal Tech stack to build a website in 2024?

Disappointed to see it was all Vue.js and React - not that there is anything wrong with those approaches, I just thought it was a bit much for my tiny site. The comment section however did not disappoint. Full of many D.Y.O. suggestions for tiny web-frameworks - especially the Document Markup Library (DML) caught my eye. However I still felt something was missing, so here is a tiny-framework, with custom tags and typescript:

To begin with, typescript in a very vanilla form is needed. Either download it from nodejs.org or as i do on a mac with brew:

# on MacOs
brew install node

Then install typescript globally:

npm install typescript -g

after that, the command tsc <file.ts> will transpile a single ts-file to plain js, or as I use do:

$\[checkout]\static\js\ts\> npx tsc

which transpiles ts files from the root of where the tsconfig.json-file is placed (in this case \static\js\ts\).

The resulting js-files are located in the static\js\ts\dist folder, which the html should refer to.

That is basically it for now.

About

Tiny web framework for simple sites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors