cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
1.99k stars 72 forks source link

ignore example directory to pub.dev #239

Closed getong closed 11 months ago

getong commented 11 months ago

I notice the package download from pub.dev contains example directory, but it does not need to publish to pub.dev.

From https://dart.dev/tools/pub/publishing , add .pubignore file.

temeddix commented 11 months ago

Thanks! I will take a look at it today. Really appreciate your hard work :)

temeddix commented 11 months ago
image

As far as I know, the 'example' directory should be included in the publication to pub.dev. For example, this 'example' tab at the website refers to that folder.

Also, currently rinf template command is 'copying' the Rust template from that 'example' folder. So this might be still needed.

Still appreciate your contribution. If you have other ideas please let me know!

P.S. Speaking about rinf template, maybe the next step could be adding --sample option to the command, as mentioned in #220

getong commented 11 months ago

how about split two packages? The new package contains the example directory? For example, in the pubspec.yaml

dependencies:
  rinf
dev_dependencies:
  rinf_cli