phpgt / installer Goto Github PK
View Code? Open in Web Editor NEWInstall PHP.Gt/CliTools for `gt` command access.
Home Page: https://www.php.gt/installer
Install PHP.Gt/CliTools for `gt` command access.
Home Page: https://www.php.gt/installer
The installation script at php.gt/install can be hosted separately, but it doesn't make sense to name this repo "installer" when it has very little responsibility in the installation of anything.
When inside a webengine repo, it would be useful to have the command gt add
to add template files of certain types.
For example:
gt add page about # creates page/about.html and page/about.php with minimal code
gt add api user/settings # creates api/user/settings.php with minimal code
gt add query select user/getById # creates query/user/getById.php as select query builder
Just an idea for now...
Use command -v whatever
to detect if the whatever
command is available.
Current status is displayed in the last line of terminal output. Any important messages are put on lines above last line.
The progress bar is achieved by making the terminal background "negative" by flipping the foreground and background colours.
The same effect can be observed when performing snap install
on Ubuntu.
Dependabot needs to be tamed, as per PhpGt/WebEngine#568
gt run --no-cron
gt run --no-build
For when you don't want that to happen.
From the same project, vendor/bin/db-migrate --force
works, but gt migrate --force
doesn't seem to do anything.
Rather than having to use the vendor approach.
Currently database migrations have to be run with /vendor/bin/db-migrate
This repo isn't really unit test-able. There could be some bash-based tests that run the different commands and check for expected output. This would be easy to hook up with Github Actions too.
In some CLI-based repos, the examples/
directory is used to contain scripts to articulate the usage. Seeing as this repo is only calling CLI scripts and doesn't contain any unit tests, this would be really useful to see.
Something like 01-example-cron-build.bash:
cd /tmp
gt create example-new-project
cd example-new-project
gt cron
gt build
This would also act as a quality assurance layer, to actually ensure the scripts do what they expect.
Currently one can pass the -p|--port flag to indicate which port to bind to only when running gt serve
, but it would be really useful to expose this to gt run
too.
Rather than relying on composer's global installation, a script named gt
can be placed in the project's root, so the developer can type php gt run
or whatever they need.
This also further enforces the brand phpgt as that's exactly what they'll be typing each time.
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.