BETA VERSION STATUS. You can use it, but I don't tested it very well.
This is a simple starter pack for non-js programmers or juniors. With it you can make webgl shaders and mint archived build at https://hicatnunc.xyz.
You need to Node.js and Git already installed in your system.
- Clone this project:
> git clone https://github.com/zmnv/webgl-js-starter <new-project-folder-name>
> cd <new-project-folder-name>
- Install node modules:
npm i
Just run npm start
to development and npm run build
to build production archive.
> npm start Start development server (host is localhost).
> npm run start:local Start development server (host is local network ip).
> npm run lint Check syntax.
> npm run run build Build production files and archive.
This project contains already configured Webpack and Webpack Dev Server. This is the tools to provide realtime development and production builds.
Your JS modules aliases. You can import from @name/file
instead of ../../../../file
. If you don't need this you can do nothing or just comment some code in config/
This is not required but very useful tool. You can get more information in the official ESlint documentation.
This starter pack based on Hicetnunc Shader Template. Thanks!
There are simulated creator
and viewer
variables in the development mode. Please check .env
file and write as you need. Remember that hicatnunc returns stringed 'false' value if viewer is not synced.
.env
HEN_CREATOR=tz777
HEN_VIEWER=false
Then you can use window.hen.creator
or window.hen.viewer
anywhere.
After production build was done via npm run build
it will be automatically archived to /archive/archive.zip
. So you can just upload this to hicatnunc mint page.
You can change output archive name in /config/archiveBuildToZip.js
file:
const outputFilePath = Path.resolve(sourcePath, 'archive.zip');
If you want you can support me and this project – just buy some of my artworks.