-
-
Notifications
You must be signed in to change notification settings - Fork 197
chore: remove the code related to js prepare as webpack overrides prepareJS method with own logic #4516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…pareJS method with own logic
const appFolderExists = this.$fs.exists(path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME)); | ||
if (appFolderExists) { | ||
this.preparePluginScripts(pluginData, platform, projectData, projectFilesConfig); | ||
await this.preparePluginNativeCode(pluginData, platform, projectData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved somewhere maybe.
@@ -36,23 +34,7 @@ export class PreparePlatformJSService extends PreparePlatformService implements | |||
@performanceLog() | |||
@hook('prepareJSApp') | |||
public async preparePlatform(config: IPreparePlatformJSInfo): Promise<void> { | |||
if (!config.changesInfo || config.changesInfo.appFilesChanged || config.changesInfo.changesRequirePrepare) { | |||
await this.copyAppFiles(config); | |||
this.copyAppResourcesFiles(config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need to move this call somewhere else.
const appDestinationDirectoryPath = path.join(config.platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME); | ||
const appResourcesDirectoryPath = path.join(appDestinationDirectoryPath, path.basename(config.projectData.appResourcesDirectoryPath)); | ||
if (this.$fs.exists(appResourcesDirectoryPath)) { | ||
this.$fs.deleteDirectory(appResourcesDirectoryPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use this clean up too.
We discussed and agreed on all comments in private conversation. |
PR Checklist
What is the current behavior?
What is the new behavior?
Fixes/Implements/Closes #[Issue Number].