Skip to content

HosseinAgha/Air-Hockey-CoffeeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air Hockey

How to build the project

To build the project you should first download and install Node.js. when nodejs installed, you shall do the steps below:
You can skip parts 1 to 3 if you don't want to install these packages globally, they will be installed locally inside your node project.

  1. install CoffeeScript globally by using node package manager:
    enter this script in your terminal or command prompt: npm -g install coffee-script
  2. install watchify this package creates a single JavaScript file from your coffee script files in realtime. it uses coffeeify to compile coffee files:
    $ npm install -g watchify
  3. install coffeeify.
    $ npm install -g coffeeify
  4. go to main project directory and install the project dependencies and packages:
    $ npm install or $ npm i
  5. I defined a command in package.json file so you can run watchify with proper options, it starts compiling your changes to a main.dist.js file in dist folder:
    $ npm run watch
  6. now if you make any changes to the CoffeeScript files watchify updates the main.dist.js file on save
  7. open the page.html from pages folder and enjoy the game!!

About

Air Hockey game, written using CoffeeScript and Node.js dev libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published