Skip to content

melonjs/melonjs.org

gh-pages
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

melonJS.org

This is the website for melonJS. To see how to edit it, please see Astro. Pages and components are built using HTML templates (ending in .astro), allowing us to split our website up into different parts. The Astro framework also supports the use of .scss and many other handy libraries if necessary.

How to run the site

To run the website in development mode:

npm run dev

To publish a new version of the site:

npm run build
git add .
git commit -m "Deploy my new feature!"
git push

To make the source code look pretty (and enforce consistent styling):

npm run pretty
git add .
git commit -m "make the source code prettier"
git push

Directory Layout

Directory Purpose
/public/ Static Assets
/src/pages/ Pages (routing based on file path, we can also put MD files in here!)
/src/components/ Components (little HTML pieces we can re-use across the site, like the site header)
/src/layout/ Re-usable layouts we can use on any page we want.
/src/styles/ Where all of the styles are stored (except inline ones)

about melonJS


melonJS is licensed under the MIT License

Copyright (C) AltByte Pte Ltd