-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/jsonSerialize
- Loading branch information
Showing
53 changed files
with
1,071 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"build": [], | ||
"build_dev": [], | ||
"workflows": {}, | ||
"checks": { | ||
"tbd": { | ||
"fail_method": "error", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Workflows | ||
|
||
Workflows are a way to declare a series of commands that you want to run in a specific order. This allows you to specify | ||
workflows that differ from the `build` and `build_dev` commands. | ||
|
||
* [Defining workflows](#defining-workflows) | ||
* [Calling workflows](#calling-workflows) | ||
* [Pseudo-workflows](#pseudo-workflows) | ||
|
||
## Defining workflows | ||
|
||
Workflows are defined in the `workflows` property of your `.puprc` file. | ||
|
||
```json | ||
{ | ||
"workflows": { | ||
"my-workflow": [ | ||
"npm ci", | ||
"npm run build", | ||
"@composer run some-script" | ||
], | ||
"my-other-workflow": [ | ||
"@composer run some-other-script", | ||
"@composer run make-pot" | ||
] | ||
} | ||
} | ||
``` | ||
|
||
## Calling workflows | ||
|
||
You can call a workflow by running the `workflow` command (or its alias `do`) with the name of the workflow as an argument. | ||
|
||
```bash | ||
pup workflow my-workflow | ||
# OR | ||
pup do my-workflow | ||
``` | ||
|
||
## Pseudo-workflows | ||
|
||
The `build` and `build_dev` properties within your `.puprc` file are also callable via the `workflow` command. | ||
|
||
```bash | ||
pup workflow build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.