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

Feat: [#49] Support Package Development #159

Merged
merged 8 commits into from
Jun 4, 2023
Merged

Feat: [#49] Support Package Development #159

merged 8 commits into from
Jun 4, 2023

Conversation

hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Jun 2, 2023

There is an example PR of how to build a third package: goravel/goravel#147

Close: goravel/goravel#49

@codecov
Copy link

codecov bot commented Jun 3, 2023

Codecov Report

Patch coverage: 54.12% and project coverage change: +0.35 🎉

Comparison is base (8ef2f8a) 52.10% compared to head (2c496a4) 52.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #159      +/-   ##
==========================================
+ Coverage   52.10%   52.46%   +0.35%     
==========================================
  Files         117      118       +1     
  Lines        8097     8326     +229     
==========================================
+ Hits         4219     4368     +149     
- Misses       3565     3647      +82     
+ Partials      313      311       -2     
Impacted Files Coverage Δ
auth/service_provider.go 0.00% <0.00%> (ø)
cache/service_provider.go 0.00% <0.00%> (ø)
config/application.go 45.20% <ø> (ø)
config/service_provider.go 0.00% <0.00%> (ø)
console/cli_context.go 0.00% <0.00%> (ø)
console/service_provider.go 0.00% <0.00%> (ø)
crypt/service_provider.go 0.00% <0.00%> (ø)
database/console/migrate_rollback_command.go 0.00% <0.00%> (ø)
database/service_provider.go 0.00% <0.00%> (ø)
event/application.go 0.00% <0.00%> (ø)
... and 17 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hwbrzzl hwbrzzl marked this pull request as ready for review June 3, 2023 09:47
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The master branch has an error now, the error is fixed in this PR and the PR needs the function in this file, so I optimized the console module here.

Comment on lines +44 to +63
&command.BoolFlag{
Name: "existing",
Aliases: []string{"e"},
Usage: "Publish and overwrite only the files that have already been published",
},
&command.BoolFlag{
Name: "force",
Aliases: []string{"f"},
Usage: "Overwrite any existing files",
},
&command.StringFlag{
Name: "package",
Aliases: []string{"p"},
Usage: "Package name to publish",
},
&command.StringFlag{
Name: "tag",
Aliases: []string{"t"},
Usage: "One tag that have assets you want to publish",
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can use different types of flags after optimizing the console module above.

return paths
}

func (receiver *VendorPublishCommand) packageDir(packageName string) (string, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can get the file content in a third package by go/build package, then we can publish the content to project.

@hwbrzzl hwbrzzl merged commit 7eaff3b into master Jun 4, 2023
@hwbrzzl hwbrzzl deleted the bowen/#49 branch June 4, 2023 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ [Feature] Support Package Development
2 participants