Skip to content

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

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Apr 10, 2019

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

@cla-bot cla-bot bot added the cla: yes label Apr 10, 2019
@ghost ghost assigned Fatme Apr 10, 2019
@ghost ghost added the new PR label Apr 10, 2019
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);
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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.

@Fatme
Copy link
Contributor Author

Fatme commented Apr 10, 2019

We discussed and agreed on all comments in private conversation.

@Fatme Fatme merged commit 573da91 into feature/webpack-only Apr 10, 2019
@ghost ghost removed the new PR label Apr 10, 2019
@Fatme Fatme deleted the fatme/remove-prepareJS branch April 10, 2019 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants