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

Add --config option to the ssc init #239

Merged
merged 4 commits into from
Mar 14, 2023
Merged

Conversation

chicoxyzzy
Copy link
Member

This helps to wrap the existing application into Socket Runtime

@chicoxyzzy
Copy link
Member Author

I'm also going to implement this one here #51

@chicoxyzzy chicoxyzzy marked this pull request as draft March 14, 2023 15:00
@jwerle
Copy link
Member

jwerle commented Mar 14, 2023

Maybe it's worthwhile just checking if files exist before over writing them?

@getify
Copy link
Contributor

getify commented Mar 14, 2023

I agree with @jwerle here. I think the creation of the directory and files is helpful but should be guarded on whether they don't yet exist, rather than either a potential error OR (worse) overwriting them.

@@ -960,7 +960,7 @@ int main (const int argc, const char* argv[]) {
}

// default values
settings["build_output"] = settings["build_output"].size() > 0 ? settings["build_output"] : "dist";
settings["build_output"] = settings["build_output"].size() > 0 ? settings["build_output"] : "build";
Copy link
Member Author

Choose a reason for hiding this comment

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

so now we have "build" by default in both .gitignore and as an implicit default value

@chicoxyzzy chicoxyzzy marked this pull request as ready for review March 14, 2023 16:09
@chicoxyzzy
Copy link
Member Author

made it exit early when socket.ini exists and skip creating .gitignore and src/index.html if they exist

Copy link
Contributor

@getify getify left a comment

Choose a reason for hiding this comment

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

LGTM

input = "src"

; The name of the program and executable to be output. Can't contain spaces or special characters. Required field.
name = "beepboop"

; The binary output path. It's recommended to add this path to .gitignore.
output = "dist"
output = "build"
Copy link
Member

Choose a reason for hiding this comment

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

finally, thank you

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