Viacoin website app source. Static site built with Vite and deployed to GitHub Pages.
- Vite 5 (see vite.config.js)
- Preact (via preact/compat)
- Bulma (SASS)
- Node.js 18+ (tested with v23.6.0)
- npm 9+ (comes with Node)
npm install
npm run dev
Vite will print the local dev server URL. You can also use:
npm run start
npm run preview
npm run build
- Output directory: dist/
- Public assets copied as-is from public/:
- public/config.json -> /config.json
- public/service-worker.js -> /service-worker.js (if present)
- public/CNAME -> /CNAME (for custom domain)
- Base path is "/" (configured in vite.config.js)
Service worker registration occurs in src/viacoin.js at navigator.serviceWorker.register().
Publish the dist/ folder to the gh-pages branch:
npm run deploy
Repository settings required:
- Settings -> Pages -> Source: gh-pages (branch), root
- Custom domain: viacoin.org (CNAME)
- Enforce HTTPS: enabled
The domain file public/CNAME contains "viacoin.org" and is copied to dist/CNAME at build time.
Optional: To silence a Node v23 deprecation about SSH-style URLs, you may point gh-pages to the HTTPS remote explicitly:
gh-pages -d dist -b gh-pages -r https://github.com/viacoin/app.viacoin.org.git
If you choose this, update the deploy script in package.json accordingly.
- [DEP0040] punycode deprecation: harmless
- [DEP0170] invalid URL for SSH remote: cosmetic; can be avoided with the -r flag above
We use SemVer for versioning. For available versions, see the tags on this repository.
- Yudao - Initial work
See also the list of contributors.
This project is licensed under the MIT License - see LICENSE.
- Thank you Stephen for all your open mind