Skip to content

Instantly share code, notes, and snippets.

@alganet
Created September 21, 2012 14:21
Show Gist options
  • Save alganet/3761720 to your computer and use it in GitHub Desktop.
Save alganet/3761720 to your computer and use it in GitHub Desktop.
neitherhair-lm:Foo alexandregaigalas$ make
Respect/Foundation - 0.1.12
=====================================================================
Respect/Foundation Menu
=====================================================================
help: Shows Respect/Foundation Help Menu: type: make help
foundation: Installs and updates Foundation
=====================================================================
Other Targets Menus
=====================================================================
project-menu: Project Scripts Menu
package-menu: Show Packaging Toolbox Menu
dev-menu: Show Dev Toolbox Menu
deploy-menu: Show Deploy & Release
neitherhair-lm:Foo alexandregaigalas$ make project-menu
Respect/Foundation - 0.1.12
=====================================================================
Respect/Foundation Menu 1
=====================================================================
Project Scripts
=====================================================================
: INFO & SCAFFOLDING
project-info: Shows project configuration
project-init: Initilize current folder and create boilerplate project structure
: TESTING
test: Run project tests
coverage: Run project tests and report coverage status
clean: Removes code coverage reports
bootstrap-php: (Re)create all purpose bootstrap.php for phpunit in test folder
bootstrap-php-opt: Optimized all purpose bootstrap.php with static pear path in test folder
phpunit-xml: (Re)create phpunit.xml in test folder
travis-yml: (Re)create .travis.yml in root folder
travis-lint: Validate your .travis.yml comfiguration
gitignore: (Re)create .gitignore file
test-skelgen: Generate boilerplate PHPUnit skeleton tests per class see help-skelgen
test-skelgen-all: Generate tests for all classes and it's overwrite safe of course
: CLEANUP UTILITIES
clean-whitespace: All in one does tabs2spaces, unix-line-ends and trailing_spaces
tabs2spaces: Turns tabs into 4 spaces properly handling mixed tab/spaces
unix-line-ends: Fixes unix line endings
trailing_spaces: Removes trailing whitespace
: CODE CONTENT UTILITIES
cs-fixer: Run PHP Coding Standards Fixer to ensure your cs-style is correct
codesniff: Run PHP Code Sniffer to generate a report of code analysis
phpcpd: Run PHP Copy Paste detector
phpdcd: Run PHP Dead Code detector
phploc: Run PHP Lines Of Code analyzer for project code statistics
phpdoc: Run PhpDocumentor2 to generate the project API documentation
: CONFIGURATION
package-ini: Creates the basic package.ini file
package-xml: Propagates changes from package.ini to package.xml
composer-json: Propagates changes from package.ini to composer.json
package: Generates package.ini, package.xml and composer.json files
pear: Generates a PEAR package
neitherhair-lm:Foo alexandregaigalas$ make package-menu
Respect/Foundation - 0.1.12
=====================================================================
Respect/Foundation Menu 2
=====================================================================
Toolbox - Packaging
=====================================================================
composer-validate: Validate composer.json for syntax and other problems
composer-install: Install this project with composer which will create vendor folder
composer-update: Update an exiting composer instalation and refresh repositories
install: Install this project and its dependencies in the local PEAR
info-php: Show information about your PHP
config-php: Locate your PHP configuration file aka. php.ini
include-php: Show the PHP configured (php.ini) include path
info-pear: Show information about your PEAR
locate-pear: Locate the PEAR packages installation folder
install-pear: PEAR installation instructions
updated-pear: See if there are any updates for PEAR and the installed packages
update-all-pear: Update all packages if any updates are available
packages-pear: Show the list of PEAR installed packages and their version numbers
verify-pear: Verify that we can include System.php in PHP script
info-check-pear: PEAR installation verification checklist instructions
check-pear-1: PEAR Checklist: 1. list PEAR commands
check-pear-2: PEAR Checklist: 2. PEAR version information aka. make info-pear
check-pear-3: PEAR Checklist: 3. locate package install folder aka. make locate-pear
check-pear-4: PEAR Checklist: 4. verify path configured in PHP aka. make include-php
check-pear-5: PEAR Checklist: 5. include PEAR System.php check aka. make verify-pear
info-pyrus: Show information about your PEAR2_Pyrus - PEAR2 Installer
install-pyrus: Downlod and install PEAR2_Pyrus
info-composer: Show information about your composer
install-composer: Downlod and install composer
neitherhair-lm:Foo alexandregaigalas$ make dev-menu
Respect/Foundation - 0.1.12
=====================================================================
Respect/Foundation Menu 3
=====================================================================
Toolbox - Development
=====================================================================
info-git-extras: Show information about your installed git extras
install-git-extras: Install git extras
info-cs-fixer: Show information about your installed PHP Coding Standards Fixer
install-cs-fixer: Install PHP Coding Standards Fixer
info-codesniff: Show information about your installed PHP_CodeSniffer
install-codesniff: Install PHP_CodeSniffer
install-psr-sniff: Install Code Sniffer PSR sniffs to allow for PSR 0-3 compliancy checks
info-phpunit: Show information about your installed PHPUnit
install-phpunit: Install PHPUnit
info-phpcpd: Show information about your installed PHP Copy Paste detector
install-phpcpd: Install PHPcpd
info-phpdcd: Show information about your installed PHP Dead Code detector
install-phpdcd: Install PHPdcd
info-phploc: Show information about your installed PHP LOC analyzer
install-phploc: Install PHPloc
info-skelgen: Show information about your installed PHPUnit Skeleton Generator
install-skelgen: Install PHPUnit Skeleton Generator
info-test-helpers: Show information about your installed PHPUnit Test Helpers extension
install-test-helpers: Install PHPUnit Test Helpers extension
info-phpdoc: Show information about your installed PhpDocumentor2
install-phpdoc: Install PhpDocumentor2
info-phpsh: Show information about your installed PHP Shell (phpsh)
install-phpsh: Install PHP Shell (phpsh) - Requires Python
install-travis-lint: Install travis-lint configuration checker - Requires ruby gems
install-uri-template: Install uri_template a php extension. Might require sudo.
neitherhair-lm:Foo alexandregaigalas$ make deploy-menu
Respect/Foundation - 0.1.12
=====================================================================
Respect/Foundation Menu 4
=====================================================================
Deploy & Release
=====================================================================
patch: Increases the patch version of the project (X.X.++)
minor: Increases the minor version of the project (X.++.0)
major: Increases the major version of the project (++.0.0)
alpha: Changes the stability of the current version to alpha
beta: Changes the stability of the current version to beta
stable: Changes the stability of the current version to stable
tag: Makes a git tag of the current project version/stability
pear-push: Pushes the latest PEAR package. Custom pear_repo='' and pear_package='' available.
release: Runs tests, coverage reports, tag the build and pushes to package repositories
@nickl-
Copy link

nickl- commented Sep 22, 2012

Introduced a subcategory grouping to start taming the larger lists which serves the purpose but seeing it here could be better implemented but how?

                        :   CLEANUP UTILITIES
        clean-whitespace: All in one does tabs2spaces, unix-line-ends and trailing_spaces
          ....
         trailing_spaces: Removes trailing whitespace
                        :   CODE CONTENT UTILITIES
                cs-fixer: Run PHP Coding Standards Fixer to ensure your cs-style is correct
                 ....
                  phpdoc: Run PhpDocumentor2 to generate the project API documentation
                        :   CONFIGURATION
             package-ini: Creates the basic package.ini file
             package-xml: Propagates changes from package.ini to package.xml
            ...

Also naming is still a tad off:
package-menu titled Toolbox - Packaging is a toolbox and correctly relates to packaging tools
dev-menu on the other hand titled Toolbox-Development has targets for creating a toolbox yes but they are not the toolbox and they are not used for development but rather installed tool management or something like that maybe.
Then we have project-menu titled Project Scripts - odd right? Which leads you to believe its project related and maybe some of the targets are:

  • project-info:
  • project-init:

hehehe =)

Maybe the Configuration section can relate to the project label as well but can we say the same for code content, cleanup and testing? These sound more like they could be development related if you ask me...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment