Skip to content

feat: remove the auto-generated js, js.map and css files during app migration #4768

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 2 commits into from
Jun 26, 2019

Conversation

DimitarTachev
Copy link
Contributor

PR Checklist

What is the current behavior?

The auto-generated files from nativescript-dev-sass, nativescript-dev-less and nativescript-dev-typescript (js, js.map and css files) are not removed during tns migrate which could lead to Webpack compilation errors.

What is the new behavior?

The auto-generated files are removed (moved to the migration backup folder) during tns migrate

@cla-bot cla-bot bot added the cla: yes label Jun 25, 2019
@DimitarTachev DimitarTachev force-pushed the tachev/remove-generated-files-on-migration branch from f7fd0aa to 0e5bd40 Compare June 25, 2019 14:38
@@ -147,6 +157,52 @@ export class MigrateController extends UpdateControllerBase implements IMigrateC
this.$logger.info("Clean old project artefacts complete.");
}

private handleAutoGeneratedFiles(backupDir: string, projectData: IProjectData): void {
const globOptions: glob.IOptions = {
silent: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can set this based on the log level?

@rosen-vladimirov rosen-vladimirov merged commit 5ed3063 into master Jun 26, 2019
@rosen-vladimirov rosen-vladimirov deleted the tachev/remove-generated-files-on-migration branch June 26, 2019 13:02
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