Home of the rawest j,rk
Long live the Glitch!
Built using custom neko-ssg bundler.
Webtooling for creating animated glitch from static images.
- development server for localhost
- build script (ejs->html compilation)
- html/js/css files compression for production build
- static files handling
- folder-based routing
/.neko-ssg # bundler directory
/build # compilation output
/src # compilation input
/partials # repeated page elements
/pages # page templates/configs
/scripts # javascript modules
/styles # css stylesheets
/static # static files (images, etc.)
All you need for routing is to put <url>.ejs and <url>.config.js files inside src/pages directory.
On build your <url>.ejs file will be compiled into <url>.html file.
Development server handles requests this way:
GET /returnsbuild/index.htmlGET /aboutreturnsbuild/about.htmlGET /static/image.pngreturnsbuild/static/image.png- ...and so on...
- If requested file not found, server returns
404*. - If requested file has unsupported format, server returns
415. - If using any other HTTP method except
GET, server returns405.
* 404 resolved to
build/not_found.html(if exists)
yarn build-- run build from sourceyarn clear-- clears build folderyarn start-- run local server with existing buildyarn dev-- run development server (overrides previous build)
Run build, pack build folder into .zip file and use Import [ZIP] option from Dashboard on Nekoweb.
Find more at deploy2nekoweb to automate this process.
- Turn on Enable 'nice links'
- Serve Folder: specify
<project_dir>/build
![Apple Tree I, 1912 by Gustav Klimt [datamoshed] Apple Tree I, 1912 by Gustav Klimt [datamoshed]](/rawjrk/gvfsashgawt-nekoweb/raw/main/doc/apple-tree-mosh-anim.gif)