Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Corrigindo aplicação do tema do thf
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbolognani committed Sep 12, 2017
1 parent c3834e2 commit 2d4478c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/tasks/ionic/build-android.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ class BuildAndroidTask extends BuildTask {
shelljs.cp("-r", path.join(this.projectDir, "src", "img"), path.join(this.projectDir, "www"))

fileUtils.savePlatformVersion(this.projectDir, 'android');

// Tema do THF
if (shelljs.exec("npm install --save @totvs/mobile-theme").code !== 0) {
throw new Error("Make sure ionic and cordova are installed (npm install -g cordova ionic).");
}

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/tasks/ionic/platform-remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PlatformRemoveTask extends PlatformTask {
if (platform == "android" || platform == "ios") {
options = {
platform: platform,
package: 'cloudbridge-kit-' + platform + '-cdv'
package: 'cloudbridge-kit-' + platform + '-ionic'
};
}
else {
Expand Down
5 changes: 0 additions & 5 deletions src/tasks/ionic/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ class StartTask extends TaskBase {
throw new Error("Make sure ionic and cordova are installed (npm install -g cordova ionic).");
}

// Tema do THF
if (shelljs.exec("npm install --save @totvs/mobile-theme").code !== 0) {
throw new Error("Make sure ionic and cordova are installed (npm install -g cordova ionic).");
}

shelljs.mkdir('-p', options.targetPath);

var createMessage = ['Creating CloudBridge Ionic-like app in folder ', options.targetPath, ' based on ', options.template.bold, ' project'].join('');
Expand Down

0 comments on commit 2d4478c

Please sign in to comment.