@tizentv/webIDE-common-tizentv
@tizentv/webIDE-common-tizentv
package is a common lib project for VScode/Atom extension and Wits, providing build, install, launch web project and certificate manager.
Please note that, In order to use this pacakge, @tizentv/webIDE-common-tizentv
is required.
Supported APIs
constructor(name, location, id);
init();
buildWidget(profilePath, excludeFiles);
launchOnSimulator(simulatorLocation);
launchOnEmulator(chromeExecPath, isDebug);
launchOnTV(tvIP, chromeExecPath, isDebug);
openProject(projectPath);
constructor(resourcePath) ;
async init();
createCert(authorInfo);
getTizenDeveloperCA();
getTizenDistributorProfile(privilegeLevel);
usage:
let tizenCertMgr = new TizenCertManager('D:\resource');
await tizenCertMgr.init();
tizenCertMgr.createCert(authorInfo);
constructor(resourcePath);
async init();
createAuthorCert(profileName, authorInfo, accessInfo);
createDistributorCert(profileName, distrbutorInfo, accessInfo);
usage:
let samsungCertMgr = new SamsungCertManager('D:\resource');
await samsungCertMgr.init();
samsungCertMgr.createAuthorCert(authorInfo);
samsungCertMgr.createDistributorCert(profileName, distrbutorInfo, accessInfo);
constructor(resourcePath);
registerProfile(profileName, authorProfile, distributorProfile);
setActivateProfile(profileName);
removeProfile(profileName);
modifyProfile(profileName, itemType, certpath, password);
isProfileExist(profileName);
listProfile();
getProfileKeys(profileName);
getProfileItems(profileName);
usage:
let profileMgr = new ProfileManager(common.resourcePath);
tizenAuthorProfile = {
authorCA: tizenCertMgr.getTizenDeveloperCA(),
authorCertPath: authorCertPath,
authorPassword: authorPassword
};
tizenDistributorProfile = tizenCertMgr.getTizenDistributorProfile('public');
profileMgr.registerProfile('name', tizenAuthorProfile, tizenDistributorProfile);