Skip to content

Prepare to start

Hyojin Kim edited this page Jan 23, 2018 · 30 revisions

For using all of TOAST, please refer to the followings.

Precondition

First, TOAST needs the followings. Please install these.

git clone

  • For copying repositories, please mkdir a root directory.

    $ mkdir <root directory>
  • In the root directory, please git clone the following repositories.

    $ git clone https://github.com/apache/cordova-js.git
    $ git clone https://github.com/Samsung/cordova-plugin-toast.git
    $ git clone https://github.com/Samsung/cordova-sectv-orsay.git
    $ git clone https://github.com/Samsung/cordova-sectv-tizen.git
    $ git clone https://github.com/Samsung/cordova-tv-webos.git
    $ git clone https://github.com/Samsung/grunt-cordova-sectv.git

Configuration

  • Please npm install to install dependencies in cordova-js, cordova-plugin-toast, cordova-sectv-orsay, cordova-sectv-tizen, cordova-tv-webos, grunt-cordova-sectv.

    $ npm install
  • In cordova-js/Gruntfile.js, please add compile tasks.

    module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        compile: {
            ...
            "sectv-orsay": {},
            "sectv-tizen": {},
            "tv-webos": {}
        },
  • In cordova-js/package.json, please add the platforms to cordova-platforms like below.

    "cordova-platforms" : {
          ...
      "cordova-sectv-orsay"   : "../cordova-sectv-orsay",
      "cordova-sectv-tizen"   : "../cordova-sectv-tizen",
      "cordova-tv-webos"      : "../cordova-tv-webos"
    }

Compile

  • In cordova-js, please grunt compile for packaging.

    $ grunt compile:sectv-orsay compile:sectv-tizen compile:tv-webos
  • In cordova-plugin-toast, please grunt compile for packaging.

    $ grunt compile:sectv-orsay compile:sectv-tizen compile:tv-webos
Clone this wiki locally