This is a simple editor to create or update the configuration for a Duel gallery. The documentation for all the available options can be found at /docs.
The only pre-requisite is having Node.js with at least version 10 installed.
The source files for the gallery editor can be found at src/client
. The templates are rendered with Pug for more flexible templating (such as having a different dev version available at /dev). The parcel bundler is responsible for bundling the CSS and JS.
The source files for the documentation can be found at src/docs
and are written in Markdown, the template is written in Pug as well. The rendering is done manually, as the Markdown has to be parsed first.
Any files that are static and just need to be copied over, reside in src/static
.
npm start
starts the development server. The client files are reloaded automatically with HMR, the documentation however is not. You need to refresh the browser there manuallynpm run build
runs a production build of everythingnpm run deploy
deploys the build folder to github pages, the build command is run automically pre-deploy though