Usage
Last updated
Last updated
Information regarding daily usage and typical services that will be used during development of the Phoenix platform.
To run PHP tests locally, ssh
into the Homestead Vagrant box, cd
into the Phoenix repository location and use , by running:
To run JavaScript tests locally, run:
To run JavaScript tests locally, run:
New GraphQL types, fields, queries, and mutations should be reflected in the root schema.json
file that is used by our Cypress test suite to mock GraphQL requests. The easiest way to update the schema is by using the schema:fetch
command:
They run in the following scenarios:
When using the npm start
command, your files will be "watched" for changes, and when a change is detected, the JS code will be linted and only compiled if it passes.
You can manually lint code by running npm run lint -s
. The -s
option lets you suppress the verbose NPM warnings that follows when there are linting errors.
There are a couple of other third-party services that you will want access to for development:
Once a Pull Request is merged, a deploy to our Development and QA (staging) environment is automatically triggered on the Phoenix Pipeline in Heroku.
We use to format our code & to catch common mistakes.
Code will be automatically formatted when committing changes. You can also install an to reformat code as you write it, or manually format the project with npm run format
.
Code linting also runs via , our continuous integration service, when a new pull request is made for the repository.
We use service to lint our PHP code when a new pull request is made for the respository.
for some information on developing with our suite of helper methods.
The on to access the Phoenix Pipeline, which includes Review Apps, Dev, QA and Production Phoenix deployments.
The on to access and re-trigger auto builds for pull requests in the Phoenix repository.
When a pull request is submitted to the Phoenix repository, a temporary deploy is made from the feature branch to Heroku for reviewers to experience new changes to the site in a sample environment. Read more about this in the .
The Development environment can be accessed at .
The QA environment can be accessed at .