viT-1 / dist-gh-pages

Static page hosted by github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplest project for hosting static gh-pages (SPA further). Use npm run deploy for deploying dist folder to remote (no need to commit) repository on GitHub, then you can see demo site.

ESM aliases resolved by tsc-alias which generates relative paths without MS tsc or ttsc transpilers. Node script which use replace-in-file is just for custom replacing in templates, without previous version code of custom import resolving with index.js files or file extensions.

This project is not using TypeScript but using tsconfig.json > paths to have single paths configuration for all (eslint, node, jest)!

Jest try to support native esm (with imports), but isn't ready yet (2022.01.12), also isn't ready mocking with esm. That's why we forced to use jest-esm-transformer (Babel transform test modules & *.spec scripts to CommonJs). jest-resolver-tsconfig-paths is used for resolving test imports with non-relative alias paths. Jest configuration is stored in package.json because it hasn't any js logic.

About

Static page hosted by github


Languages

Language:JavaScript 91.1%Language:HTML 8.9%