JavaScript HTML CSS
Switch branches/tags
Nothing to show
Latest commit 0039964 May 7, 2017 @mucaho mucaho committed on GitHub Merge pull request #84 from craftyjs/update_frame
Replace mentions of EnterFrame with UpdateFrame
Permalink
Failed to load latest commit information.
api
beta/api Update beta docs for 0.8.0-rc2 Jan 15, 2017
components Standardize on the MIT license Oct 16, 2016
cookbook Standardize on the MIT license Oct 16, 2016
css Large change to site styles and layout May 15, 2015
demos @ f52f5ed
documentation Standardize on the MIT license Oct 16, 2016
getting-started Standardize on the MIT license Oct 16, 2016
images Rewrite documentation tutorials May 20, 2015
release Add newer releases to site Apr 20, 2017
source Merge pull request #84 from craftyjs/update_frame May 7, 2017
.gitignore Generate api files from json May 17, 2015
.gitmodules Update demo submodule url protocol Apr 15, 2017
CNAME
Gruntfile.js Update gruntfile with task for generating the beta api docs Jan 15, 2017
README.md
_config.yml Config kramdown to use Github Flavored markdown Oct 31, 2014
craftyjs-site.css Several updates to doc generation and presentation Jan 4, 2017
favicon.ico styles Feb 26, 2012
favicon.png Large change to site styles and layout May 15, 2015
github.css Massive reorganization to use assemble for site generation Apr 3, 2015
index.html Add pacman demo link and files Apr 12, 2017
package.json Update packages and add yarn.lock Oct 16, 2016
yarn.lock Update packages and add yarn.lock Oct 16, 2016

README.md

Crafty.js Homepage

This repo contains the content and infrastructure for craftyjs.com.
Changes should be directed to the source subdirectory, the pages will be generated from them.

How to build locally

Building the website requires that npm and grunt be installed globally. Then run npm install to download the necessary packages.

  • grunt assemble will build the website, drawing content from the source subdirectory
  • grunt connect will allow you to preview the website locally

How to view and modify demos

The demos subdirectory is realized as a git submodule.
Any changes to the demo files should be directed to the craftyjs/demos repository.

After cloning this site repo, the demo files won't be available immediately. To view them, do

# clone the repo
$ git clone https://github.com/craftyjs/craftyjs.github.com.git
$ cd craftyjs.github.com/
# setup the demo submodule on your PC if it isn't already
$ git submodule init
# fetch the demo submodule files
$ git submodule update

To pull the latest changes from the demos repository, do

# setup submodule and fetch files
# don't worry, it won't do anything if you've done so already
$ git submodule init
$ git submodule update
# change to submodule
$ cd demos/
# you are now in separate git repo belonging to this submodule
# all git commands are directed to this submodule
# update the submodule
$ git checkout master
$ git fetch origin
$ git rebase origin/master
$ cd ..
# you are now main git repo again
# add the HEAD change of the submodule
$ git add demos
# commit now, etc
...