Sha256: 126f2f5193bfb436e67604cef93fb97363ff5bd6603a29b1587a12c06f0bc669

Contents?: true

Size: 959 Bytes

Versions: 2

Compression:

Stored size: 959 Bytes

Contents

# How to start developing DXOpal

## Prerequisites

- Ruby (tested with 2.3.3)
- Node.js (to minify .js)

## Setup

```
$ git clone https://github.com/yhara/dxopal
$ cd dxopal
$ bundle install
$ npm install uglify-es -g
$ bundle exec rackup
$ open http://localhost:9292/
```

Developing dxopal-starter-kit:

```
$ cd dxopal  # Must be cloned into here
$ git clone https://github.com/yhara/dxopal-starter-kit
```

## Build .js

    $ rake build
    $ rake build_min  # Build and minify

(If some error is printed by build_min, make sure you have installed uglify-es)

## Documents

Build API reference:

    $ rake api

## Directory structure

- build/ : Pre-compiled source code
  - dxopal.js
  - dxopal.min.js
- doc/
  - api/
  - en/
  - ja/
- examples/
- exe/
  - dxopal
- opal/ : Source code
  - dxopal.rb
  - dxopal/
- template/ : Template files for `dxopal init` command
  - index.html
  - main.rb
- vendor/
  - matter.js
  - pages-themes-dinky-14e8031/

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dxopal-1.2.0 DEVELOPMENT.md
dxopal-1.1.0 DEVELOPMENT.md