node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

grunt-cordova-sectv

grunt-cordova-sectv

Grunt task for build and package the cordova project with sectv-*** platforms.

About this project

This project would help who makes Samsung Tizen TV or Legacy Samsung Smart TV web application using cordova. It provides several grunt task:

  • sectv-build: Creates application project for each platforms from your cordova project.
    • Options for the task:
      'sectv-build': {    // task
          'sectv-orsay': {    // target
              dest: 'platforms/sectv-orsay/www',  // Destination path to create the application project.
              platformRepos: '../cordova-sectv-orsay',    // Path to 'sectv-***` cordova platform's repository.
              scripts: {  // copy the scripts to the application project
                  'cordova.js': '../cordova-js/pkg/cordova.sectv-orsay.js',
                  'toast.js': '../cordova-plugin-toast/platform_www/sectv-orsay/toast.js'
              }
          }
      }
  • sectv-package: Packaging the application project into each platforms package file format like .zip or .wgt.
    • Options for the task:
      'sectv-package': {  // task
          'sectv-orsay': {    // target
              build: 'platforms/sectv-orsay/www', // Path to Application project
              dest: 'platforms/sectv-orsay/build' // Directory to create the package
          }
      }

Installation

$ npm install {{Local or git path to this project}}

How to set up to use

  1. Make a cordova project using cordova CLI. This project's directory should be created as sibling of cordova-sectv-orsay and cordova-sectv-tizen.
    ./
     |- cordova-js
     |- cordova-plugin-toast
     |- cordova-sectv-orsay
     |- cordova-sectv-tizen
     `- MyApplication
  1. Copy the contents in ./sample/* of this project to the root directory of your cordova project.
  2. In the cordova project's root:
$ npm install
$ npm install {{Local or git path to this project}}

How to build the application by platforms

  • In the cordova project's root:
$ grunt sectv-build:<platform>
  • <platform> can be one of sectv-orsay and sectv-tizen. If you want to build both of them:
$ grunt sectv-build
  • For more details, please see the sample/Gruntfile.js of this project, Not Gruntfile.js in this project's root :).
  • You can input the information for your application through interactive cli: name, resolution, category, version, description, author, etc.

How to package the application by platforms

  • In the cordova project's root:
$ grunt sectv-package:<platform>
  • <platform> can be one of sectv-orsay and sectv-tizen. If you want to build both of them:
$ grunt sectv-package
  • For more details, please see the sample/Gruntfile.js of this project, Not Gruntfile.js in this project's root :).

Known Issues

Not yet