cpliakas / manifest-publisher Goto Github PK
View Code? Open in Web Editor NEWA command line tool that builds and publishes a herrera-io/php-phar-update manifest.json file
License: MIT License
A command line tool that builds and publishes a herrera-io/php-phar-update manifest.json file
License: MIT License
The only things that need to be changed in the command class are the namespace and URL to manifest.json, so we can easily add a command to generate that code.
Hello
Thanks for you project. But I have some problem
error: pathspec 'gh-pages' did not match any file(s) known to git.
It fixed after I run git fetch
in .ManifestPublisher/gh-pages
. Could you add git fetch
in your code? Or maybe, if I did something wrong, please add this case in readme.
As the package evolves the manifest-publisher
might not be as self-describing as it should be.
I also think that at some point this package could be merged into the box project, but that requires the revision of the project. Looking at the original phar library behind box, there is a note which mentions that it will be eventually deprecated in favor of another. Maybe we could joint that process.
It might not make sense to include "pre-release" versions in the manifest. We should check the GitHub API to ensure that a package is production-ready so user's don;t accidentally update to a non-stable version.
It would be great if the manifest.json could be generated by this library. That said, I am having a weird feeling with the name manifest-publisher, since it would become a manager or something like that.
[Herrera\Json\Exception\FileException]
file_get_contents(phar:///Users/cpliakas/Downloads/manifest.phar/vendor/herrera-io/phar-update/src/lib/../../res/schema.json): failed to open stream: phar error: "vendor/herrera-io/phar-update/res/schema
.json" is not a file in phar "/Users/cpliakas/Downloads/manifest.phar"
It would be helpful to add status messages and verbosity flags so that people know what is happening when the command is running.
If I try running publish:gh-pages on an internal CLI project (private github repo), I get:
[RuntimeException]
Unable to download archive "https://github.com/*vendor*/*package*/releases/download/*tag*/*phar*"
A non-authenticated user hitting a private release receives a 404 from Github (not a 401)
This is probably acceptable behavior with regard to gh-pages (since most parties will not want a public gh-pages site for a private tool). If manifest-publisher is extended to support an alternative (private) publishing medium, perhaps it could prompt for credentials if it gets a 4xx reply from Github?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.