-
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.
- Loading branch information
Showing
17 changed files
with
434 additions
and
9 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
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
17 changes: 17 additions & 0 deletions
17
tests/cli/__snapshots__/BuildCest__it_should_run_build__0.snapshot.txt
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,17 @@ | ||
Running build steps... | ||
|
||
> ls -a | ||
------- | ||
|
||
. | ||
.. | ||
.puprc | ||
bootstrap.php | ||
src | ||
|
||
> echo "fake project, yo" | ||
------------------------- | ||
|
||
fake project, yo | ||
|
||
Build complete. |
2 changes: 2 additions & 0 deletions
2
.../__snapshots__/BuildCest__it_should_run_no_build_steps_when_missing_puprc__0.snapshot.txt
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,2 @@ | ||
Running build steps... | ||
Build complete. |
2 changes: 2 additions & 0 deletions
2
...snapshots__/BuildCest__it_should_run_no_build_steps_when_not_set_in_puprc__0.snapshot.txt
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,2 @@ | ||
Running build steps... | ||
Build complete. |
26 changes: 26 additions & 0 deletions
26
tests/cli/__snapshots__/HelpCest__it_should_default_to_help__0.snapshot.txt
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,26 @@ | ||
******************************************************************************** | ||
* | ||
* Product Utility & Packager | ||
* ------------------------------------------------------------------------------ | ||
* A CLI utility by StellarWP | ||
* | ||
******************************************************************************** | ||
|
||
Run pup help <topic> for more information on a specific command. | ||
|
||
------------------------ ------------------------------------------------------------------------------- | ||
Command Description | ||
------------------------ ------------------------------------------------------------------------------- | ||
build Runs the build commands from the .puprc file. | ||
check:tbd Scans your files for tbd (case-insensitive) and tells you where to find them. | ||
check:version-conflict Verifies that all of your version numbers match. | ||
check Runs all registered check commands. | ||
clean This command cleans up any directories that pup creates. | ||
get-version Gets your project's version number. | ||
help Shows the help menu. | ||
package Packages your project into a zip file with the passed in version number. | ||
zip Runs the full pup set of commands to create a zip file. | ||
------------------------ ------------------------------------------------------------------------------- | ||
|
||
|
||
For more documentation, head over to https://github.com/stellarwp/pup |
26 changes: 26 additions & 0 deletions
26
tests/cli/__snapshots__/HelpCest__it_should_run_help__0.snapshot.txt
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,26 @@ | ||
******************************************************************************** | ||
* | ||
* Product Utility & Packager | ||
* ------------------------------------------------------------------------------ | ||
* A CLI utility by StellarWP | ||
* | ||
******************************************************************************** | ||
|
||
Run pup help <topic> for more information on a specific command. | ||
|
||
------------------------ ------------------------------------------------------------------------------- | ||
Command Description | ||
------------------------ ------------------------------------------------------------------------------- | ||
build Runs the build commands from the .puprc file. | ||
check:tbd Scans your files for tbd (case-insensitive) and tells you where to find them. | ||
check:version-conflict Verifies that all of your version numbers match. | ||
check Runs all registered check commands. | ||
clean This command cleans up any directories that pup creates. | ||
get-version Gets your project's version number. | ||
help Shows the help menu. | ||
package Packages your project into a zip file with the passed in version number. | ||
zip Runs the full pup set of commands to create a zip file. | ||
------------------------ ------------------------------------------------------------------------------- | ||
|
||
|
||
For more documentation, head over to https://github.com/stellarwp/pup |
47 changes: 47 additions & 0 deletions
47
tests/cli/__snapshots__/HelpCest__it_should_show_topic_docs__0.snapshot.txt
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,47 @@ | ||
|
||
Help: pup build | ||
=============== | ||
|
||
Runs the build commands from the .puprc file. | ||
|
||
|
||
If you want your dev builds to build differently, you can add a build_dev property to your .puprc file. | ||
|
||
> Usage: | ||
-------- | ||
|
||
.................................................. | ||
pup build [--dev] | ||
# or | ||
composer pup build [--dev] | ||
.................................................. | ||
|
||
> Arguments: | ||
------------ | ||
|
||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
Argument Description | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
--dev Optional. Whether or not this is a dev build. Using this option will run the build_dev commands from your .puprc file if they exist, otherwise it will run build commands. | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
|
||
|
||
> Specifying build commands: | ||
---------------------------- | ||
|
||
You can specify build commands within your .puprc file by adding to either the build or build_dev properties. These | ||
commands will be run in the order they are specified. By default, if any command fails, the build will fail. You can, | ||
however, prepend your commands with @ and that will tell pup to ignore failures for that step. Here's an example: | ||
|
||
.................................................. | ||
{ | ||
"build": [ | ||
"npm ci", | ||
"npm run build", | ||
"@composer run some-script" | ||
] | ||
} | ||
.................................................. | ||
|
||
In the above example, npm ci and npm run build will need to complete successfully for the build to succeed, but the | ||
composer run some-script is prepended by @ so if it fails, the build will continue forward. |
47 changes: 47 additions & 0 deletions
47
tests/cli/__snapshots__/HelpCest__it_should_show_topic_docs__1.snapshot.txt
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,47 @@ | ||
|
||
Help: pup build | ||
=============== | ||
|
||
Runs the build commands from the .puprc file. | ||
|
||
|
||
If you want your dev builds to build differently, you can add a build_dev property to your .puprc file. | ||
|
||
> Usage: | ||
-------- | ||
|
||
.................................................. | ||
pup build [--dev] | ||
# or | ||
composer pup build [--dev] | ||
.................................................. | ||
|
||
> Arguments: | ||
------------ | ||
|
||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
Argument Description | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
--dev Optional. Whether or not this is a dev build. Using this option will run the build_dev commands from your .puprc file if they exist, otherwise it will run build commands. | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
|
||
|
||
> Specifying build commands: | ||
---------------------------- | ||
|
||
You can specify build commands within your .puprc file by adding to either the build or build_dev properties. These | ||
commands will be run in the order they are specified. By default, if any command fails, the build will fail. You can, | ||
however, prepend your commands with @ and that will tell pup to ignore failures for that step. Here's an example: | ||
|
||
.................................................. | ||
{ | ||
"build": [ | ||
"npm ci", | ||
"npm run build", | ||
"@composer run some-script" | ||
] | ||
} | ||
.................................................. | ||
|
||
In the above example, npm ci and npm run build will need to complete successfully for the build to succeed, but the | ||
composer run some-script is prepended by @ so if it fails, the build will continue forward. |
47 changes: 47 additions & 0 deletions
47
tests/cli/__snapshots__/HelpCest__it_should_show_topic_docs__2.snapshot.txt
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,47 @@ | ||
|
||
Help: pup build | ||
=============== | ||
|
||
Runs the build commands from the .puprc file. | ||
|
||
|
||
If you want your dev builds to build differently, you can add a build_dev property to your .puprc file. | ||
|
||
> Usage: | ||
-------- | ||
|
||
.................................................. | ||
pup build [--dev] | ||
# or | ||
composer pup build [--dev] | ||
.................................................. | ||
|
||
> Arguments: | ||
------------ | ||
|
||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
Argument Description | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
--dev Optional. Whether or not this is a dev build. Using this option will run the build_dev commands from your .puprc file if they exist, otherwise it will run build commands. | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
|
||
|
||
> Specifying build commands: | ||
---------------------------- | ||
|
||
You can specify build commands within your .puprc file by adding to either the build or build_dev properties. These | ||
commands will be run in the order they are specified. By default, if any command fails, the build will fail. You can, | ||
however, prepend your commands with @ and that will tell pup to ignore failures for that step. Here's an example: | ||
|
||
.................................................. | ||
{ | ||
"build": [ | ||
"npm ci", | ||
"npm run build", | ||
"@composer run some-script" | ||
] | ||
} | ||
.................................................. | ||
|
||
In the above example, npm ci and npm run build will need to complete successfully for the build to succeed, but the | ||
composer run some-script is prepended by @ so if it fails, the build will continue forward. |
47 changes: 47 additions & 0 deletions
47
tests/cli/__snapshots__/HelpCest__it_should_show_topic_docs__3.snapshot.txt
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,47 @@ | ||
|
||
Help: pup build | ||
=============== | ||
|
||
Runs the build commands from the .puprc file. | ||
|
||
|
||
If you want your dev builds to build differently, you can add a build_dev property to your .puprc file. | ||
|
||
> Usage: | ||
-------- | ||
|
||
.................................................. | ||
pup build [--dev] | ||
# or | ||
composer pup build [--dev] | ||
.................................................. | ||
|
||
> Arguments: | ||
------------ | ||
|
||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
Argument Description | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
--dev Optional. Whether or not this is a dev build. Using this option will run the build_dev commands from your .puprc file if they exist, otherwise it will run build commands. | ||
---------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- | ||
|
||
|
||
> Specifying build commands: | ||
---------------------------- | ||
|
||
You can specify build commands within your .puprc file by adding to either the build or build_dev properties. These | ||
commands will be run in the order they are specified. By default, if any command fails, the build will fail. You can, | ||
however, prepend your commands with @ and that will tell pup to ignore failures for that step. Here's an example: | ||
|
||
.................................................. | ||
{ | ||
"build": [ | ||
"npm ci", | ||
"npm run build", | ||
"@composer run some-script" | ||
] | ||
} | ||
.................................................. | ||
|
||
In the above example, npm ci and npm run build will need to complete successfully for the build to succeed, but the | ||
composer run some-script is prepended by @ so if it fails, the build will continue forward. |
Oops, something went wrong.