Git Product home page Git Product logo

js13k2019's Introduction

Template project for making a JS13K entry using TypeScript, Grunt, and minified using the Closure Compiler (which now supports fully-compressed ES6 output!)

It uses old-school AMD style, which means everything is global. No imports, use \\\<reference path="lib.ts"> in the order you want them imported (ideally just do this once in index.ts) instead. Or change the module type, whatever suits you, but I believe AMD produces the smallest code.

To set up

  1. install NPM https://www.npmjs.com/get-npm
  2. install Grunt CLI npm install -g grunt-cli
  3. in the project folder type npm install

To run up the devekopment environment

  1. type grunt
  2. go to http://localhost:8000/ (and open the developer tools/console)
  3. Any changes to the code/html/css should be automatically reloaded

To do a build to submit

  1. type grunt dist
  2. go to http://localhost:8000/dist to check it still works
  3. compress (just) dist/index.html manually using advzip https://www.advancemame.it/comp-readme.html
  4. submit!

NOTE: You might want to check that the substitutions in the Gruntfile.js replace task match what you want to have trimmed out of your HTML

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.