Skip to content

Plamen5kov/respect shelljserrors #2364

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 8 commits into from
Dec 23, 2016
Merged

Conversation

Plamen5kov
Copy link
Contributor

This PR should allow shelljs errors to be fatal and interrupt the execution of any command if necessary. The current implementation has accounted for several places where, the errors are expected and are handled accordingly.
One more thing is the minimal project template support version is upped from 1.3.0 to 1.5.0.

This PR should be merged after: telerik/mobile-cli-lib#861

tests were failing because of invalid template, fixed the template so the tests work
@@ -140,7 +140,8 @@ export class ProjectService implements IProjectService {

shelljs.cp('-R', path.join(appSourcePath, "*"), appDestinationPath);
// Copy hidden files.
shelljs.cp('-R', path.join(appSourcePath, ".*"), appDestinationPath);
//TODO: plamen5kov: don't copy hidden files, until we find a reason to do it
// shelljs.cp('-R', path.join(appSourcePath, ".*"), appDestinationPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

Strongly disagree here. Why you need a reason for already existing code? Either remove it or keep it in the way it works today. Also I can reverse the question - why wouldn't you copy all files from template? Hidden files could be part of the template, so... why not copying them? And last - on Windows they are not hidden at all.

there was code that used sed to replace __CFBUNDLEIDENTIFIER__ into the info.plist, but there's new logic that does the same thing
@Plamen5kov Plamen5kov merged commit 2fec565 into master Dec 23, 2016
@Plamen5kov Plamen5kov deleted the plamen5kov/respect_shelljserrors branch January 4, 2017 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants