Skip to content
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

Timob 10772 CLI project command #2977

Merged
merged 8 commits into from Sep 18, 2012
Merged

Timob 10772 CLI project command #2977

merged 8 commits into from Sep 18, 2012

Conversation

nebrius
Copy link
Contributor

@nebrius nebrius commented Sep 16, 2012

No description provided.

};

exports.run = function (logger, config, cli) {
};
debugger;
Copy link
Contributor

Choose a reason for hiding this comment

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

Debugger statement left in.

@cb1kenobi
Copy link
Contributor

We should support "ios" and "ipad". Even though "ipad" is not a "platform", it is an explicit option. "ios" would simply make both ipad and iphone true.

It would be nice if we ignored certain files (.gitignore, .DS_Store, etc) and directories (.git) when copying files.

if (value[p]) {
templateDir = path.join(sdkPath, value[p], 'templates', 'app', cli.argv.template);
if (!appc.fs.exists(templateDir)) {
logger.error(__('Template ') + cli.argv.template + __(' is not supported by platform ') + value[p]);
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:

logger.error(__('Template %s is not supported by platform %s', cli.argv.template, value[p]) + '\n');

@nebrius
Copy link
Contributor Author

nebrius commented Sep 17, 2012

The project command is completely platform agnostic. It queries the SDK to see what platforms are available and validates against those. Is there any way we can tie into that for the ipad part? I would prefer not to hard code these things if at all possible.

I think that we should probably ignore all hidden files if we are going to ignore anything. Thoughts?

@cb1kenobi
Copy link
Contributor

Code reviewed and tested. Request APPROVED.

cb1kenobi added a commit that referenced this pull request Sep 18, 2012
@cb1kenobi cb1kenobi merged commit 5486a27 into tidev:master Sep 18, 2012
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.

None yet

2 participants