Giter Site home page Giter Site logo

roguelike2's Introduction

Roguelike 2

Codeship Build Status

A roguelike.

Platforms

You will need functioning installations of:

Dependencies

Libraries and packages are managed by:

Source

The JavaScript is written in ES6 and JSX, using ES6 modules.

The CSS is written using Less.

Directory structure

  /
    bin/       # Scripts, mostly for convenience
    lib/       # Third party libraries
    out/       # Compiled output
    src/       # Application source
      assets/  # Images, fonts, etc.

Build system

Available tasks

The build system is powered by NPM. To get a list of available tasks run:

npm run

Languages and compiling

  • JavaScript
    • Browserify is used to traverse the dependency tree, compile the source to browser-compatible ES5, and concatenate the output.
    • Babel is used by Browserfiy to compile ES6/7 and JSX to ES5, and is invoked through babelify.
  • CSS
  • Search paths
    • node_modules, lib, and src are searched when resolving imports in JS and CSS (see package.json's config hash)
  • Source maps
    • less and browserify are both configured to output source maps, including the complete original source, in their compiled output. You shouldn't need any additional setup in your browser to use them.

Development

In development you really only need to use

npm run serve

It will build and watch the source and serve it locally.

Scripts

  • bin/
    • exec - A shortcut for executing locally installed Node modules' bin scripts
      • Before: ./node_modules/.bin/less
      • After: ./bin/exec less
    • run - A shortcut for npm run that lets you run multiple scripts more easily
      • Before: npm run clean && npm run build-js && npm run build-css && npm run build-html
      • After: ./bin run clean build-js build-css build-html
      • Options:
        • -s - if the first argument is -s it will be passed as npm run -s
    • run-parallel - A wrapper for bin/run that runs tasks in parallel using parallelshell
      • Before: parallelshell 'npm run build-js' 'npm run build-css' 'npm run build-html'
      • After: ./bin/run-parallel build-js build-css build-html
      • Options:
        • -s - if the first argument is -s it will be passed as npm run -s
  • To enable, add the project directory to your workspace by right-clicking in the sources tab's navigation pane and choosing "Add Folder to Workspace"
  • Then set up mappings between your network resources and local filesystem (see Chrome's documentation for details)

roguelike2's People

Contributors

wmadden avatar

Watchers

James Cloos avatar

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.