Skip to content

Fix symlinks that are added to output package and points to not existing location #593

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 29, 2015

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jun 26, 2015

Fixes #584

This PR also fixes the pollution in package.json file, removes the need from tmp folder and provides a better way for doing incremental prepare of node_modules.

@ns-bot
Copy link

ns-bot commented Jun 26, 2015

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 39863a4 to 4d487e8 Compare June 26, 2015 07:50
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 4d487e8 to 2d01053 Compare June 26, 2015 07:59
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

@@ -152,7 +152,7 @@ interface BroccoliNode {
}

interface IBroccoliBuilder {
prepareNodeModules(outputPath: string, projectDir: string): IFuture<void>;
prepareNodeModules(outputPath: string, projectDir: string, lastModifiedTime?: any): IFuture<void>;
Copy link
Contributor

Choose a reason for hiding this comment

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

The type should not be any but Date:

> fs.statSync("c:\\haxlogs.txt").mtime instanceof Date
true

@teobugslayer teobugslayer added this to the 1.1.2 milestone Jun 26, 2015
@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 2d01053 to 621c124 Compare June 26, 2015 12:27
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 621c124 to 0dd9e67 Compare June 26, 2015 12:34
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

shell.cp("-R", appSourceDirectoryPath, platformData.appDestinationDirectoryPath);
_(this.$fs.readDirectory(path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME)).wait())
.filter(directoryName => directoryName !== "tns_modules")
.each(directoryName => this.$fs.deleteDirectory(path.join(platformData.appDestinationDirectoryPath, "app", directoryName)).wait())
Copy link
Contributor

Choose a reason for hiding this comment

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

"app" => constants.APP_FOLDER_NAME maybe?

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 0dd9e67 to 5cb3eb5 Compare June 26, 2015 13:35
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 5cb3eb5 to 81e0d10 Compare June 26, 2015 13:39
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

@Fatme Fatme added the bug label Jun 26, 2015
@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 81e0d10 to 17c2a29 Compare June 26, 2015 15:15
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

1 similar comment
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 2bce7c3 to ab6a4e2 Compare June 29, 2015 06:01
@ns-bot
Copy link

ns-bot commented Jun 29, 2015

@dtopuzov
Copy link
Contributor

👍

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from ab6a4e2 to 33cf15b Compare June 29, 2015 08:32
@ns-bot
Copy link

ns-bot commented Jun 29, 2015

let currentPreparedTnsModules = this.$fs.readDirectory(absoluteOutputPath).wait();
let tnsModulesInApp = this.$fs.readDirectory(path.join(projectDir, "app", "tns_modules")).wait();
let modulesToDelete = _.difference(currentPreparedTnsModules, tnsModulesInApp);
_.each(modulesToDelete, moduleName => this.$fs.deleteDirectory(path.join(absoluteOutputPath, moduleName)).wait())
Copy link
Contributor

Choose a reason for hiding this comment

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

missing ; at the end

@rosen-vladimirov
Copy link
Contributor

👍 one missing ;, but anyway - great work 💯

@Fatme Fatme force-pushed the fatme/fix-symlinks branch from 33cf15b to 7513ad6 Compare June 29, 2015 09:26
@ns-bot
Copy link

ns-bot commented Jun 29, 2015

Fatme pushed a commit that referenced this pull request Jun 29, 2015
Fix symlinks that are added to output package and points to not existing location
@Fatme Fatme merged commit 572acff into release Jun 29, 2015
@Fatme Fatme deleted the fatme/fix-symlinks branch June 29, 2015 09:51
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.

5 participants