Skip to content

Samsung/create-tizen-app

Repository files navigation

create-tizen-app

create-tizen-app is a wizard tool for helping to configure and make a tizen web application. If you are a developer who prefers commonjs style or typescript language, It would be the best solution to create tizen web application easily. It also supports the way to use Samsung TV Product API, Tizen common API as a Commonjs style or typescript.

Associated Projects

Quick Start

npm install -g @tizentv/create-tizen-app
mkdir workspace
cd workspace
create-tizen-app yourProjectName

Overview

create-tizen-app can create your tizen web application with configuration what you select. You can select language, bundler, editor and even live reloading tool (WITs).

Command

create-tizen-app

Create your tizen application with yourProjectName

create-tizen-app yourProjectName

init

if you are behind proxy, you can pass --proxy option.

create-tizen-app init yourProjectName --proxy http://0.0.0.0:8080

Prompters for selecting

  1. ProjectName
    • You can put the name of your application.
      • The character length should be 3~50
      • The starting character should be an alphabet
      • The name should be consisted of alphabet and number
  2. Language
  3. Bundler
  4. Editor
    • You can select an editor, then we will install the Tizen SDK extensions.
      Before you select the editor, you should install the editor on your PC.
    • All applications must be signed with valid samsung certificates before you submit the application to seller office.
      You should install the Tizen Studio for making the samsung certificates.
      You can check the guide for creating the samsung certificates.
    • If you select the VScode, then tizensdk.tizentv Extension will be installed.
    • If you select the Atom, then atom-tizentv Extension will be installed.
    • If you select the None, then Tizen SDK will be not installed.
  5. WITs (Live Reloading tool)
    • You can choose to use it or not. For details, please refer WITs github.
    • If you decided to use WITs, the some prompters for configuration will be asked.
      • Device Ip address : Target TV IP
      • Application width (1920 or 1280)
      • Profile path : Required for packaging. You need to create a certification (Tizen or Samsung) via one of the editors. (VSCode / Atom / Tizen Studio)
      • Using chrome Devtools for debugging (Y or N) : If you set as "Y", Chrome browser will be opened with inspector

create-tizen-app doctor

Originally Doctor runs at the end of steps when you do create-tizen-app. In case you want to use Doctor for diagnosing your development environment, we support a doctor subcommand for that. If something is missing, Doctor will notify you the solution.

cd workspace/yourProjectName
create-tizen-app doctor

Usage after creating project

cd workspace/yourProjectName
npm run build

# optional (If you choosed WITs)
#    npm run wits-init (For configuration)
#    npm run wits-start (For packaging, connecting, launching, live reloading)
npm run wits-start

Build to Tizen 2.4 (or below)

If you build a tizen application to old version(v2.2.1, v2.3, v2.4), then you should change the target to es5 in tsconfig.json.

// tsconfig.json
{
  "complierOpitons": {
    //"target" : "es6"    // Tizen 3.0 or higher
    "target" : "es5"      // Tizen 2.4 or below
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published