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

Reprompt if a non-existent public directory is used in firebase init command. #48

Merged
merged 5 commits into from
Jun 3, 2015

Conversation

tamalsaha
Copy link
Contributor

fyi: @jwngr

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 5.52% when pulling 9b3d061 on tml-bad-public-dir into b496ec7 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 5.52% when pulling 9b3d061 on tml-bad-public-dir into b496ec7 on master.

@@ -23,7 +23,7 @@ var defaultSettings = {

function getPrompt(argv, schema, onComplete, index, results) {
if (!Array.isArray(schema)) {
console.log(chalk.red('An error occurred'));
console.log(chalk.red('getPrompt schema must be an Array.'));
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't useful to the average developer running firebase-tools, in fact it's pretty confusing. This repo needs a lot of work on messaging, but I don't think this is at all helpful here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that it is a debug message. Our users can never see this even for invalid inputs. So, I just changed that to something we can use for debugging. Do you want me to revert it ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, that's a fair point. Lets leave it as what you have here - we need a complete messaging overhaul soon

@cbraynor cbraynor assigned tamalsaha and unassigned cbraynor May 27, 2015
@cbraynor
Copy link
Contributor

A few comments, back to you. Given the lack of tests anyway, ignore the coveralls failure above

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 5.53% when pulling b05a259 on tml-bad-public-dir into b496ec7 on master.

@tamalsaha tamalsaha assigned cbraynor and unassigned tamalsaha May 27, 2015
},
conform: function(value) {
if (path.relative('.', value).match(/^\./)) {
schemaPublic.message = 'Please ensure the specified public directory is within the current working directory';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use a directory within the current working directory

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 5.53% when pulling d9794f6 on tml-bad-public-dir into b496ec7 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 5.52% when pulling b06dbc8 on tml-bad-public-dir into b496ec7 on master.

cbraynor pushed a commit that referenced this pull request Jun 3, 2015
Reprompt if a non-existent public directory is used in firebase init command.
@cbraynor cbraynor merged commit f093986 into master Jun 3, 2015
@cbraynor cbraynor deleted the tml-bad-public-dir branch June 3, 2015 21:16
robertdimarco pushed a commit that referenced this pull request May 18, 2016
Consolidate all deploy:* commands with deploy --only <targets>
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

3 participants