{"id":17953180,"url":"https://github.com/mikeerickson/gulp-phpspec","last_synced_at":"2025-03-25T00:31:46.800Z","repository":{"id":14386226,"uuid":"17096527","full_name":"mikeerickson/gulp-phpspec","owner":"mikeerickson","description":"gulp-phpspec plugin","archived":false,"fork":false,"pushed_at":"2017-02-23T06:49:57.000Z","size":95,"stargazers_count":6,"open_issues_count":34,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T05:43:19.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikeerickson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-22T22:41:37.000Z","updated_at":"2022-07-31T09:51:03.000Z","dependencies_parsed_at":"2022-09-11T03:01:11.222Z","dependency_job_id":null,"html_url":"https://github.com/mikeerickson/gulp-phpspec","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fgulp-phpspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fgulp-phpspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fgulp-phpspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fgulp-phpspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeerickson","download_url":"https://codeload.github.com/mikeerickson/gulp-phpspec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377920,"owners_count":20605374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T10:03:42.514Z","updated_at":"2025-03-25T00:31:46.422Z","avatar_url":"https://github.com/mikeerickson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-phpspec\n\u003e PHPSpec plugin for gulp 3\n\n## Usage\n\nFirst, install `gulp-phpspec` as a development dependency:\n\n```shell\nnpm install --save-dev gulp-phpspec\n```\n\nThen, add it to your `gulpfile.js`:\n\n```javascript\nvar phpspec = require('gulp-phpspec');\n\n// option 1: default format\ngulp.task('phpspec', function() {\n\tgulp.src('phpsec.yml').pipe(phpspec());\n});\n\n// option 2: with defined bin and options\ngulp.task('phpspec', function() {\n\tvar options = {debug: false};\n\tgulp.src('phpspec.yml').pipe(phpspec('./vendor/bin/phpspec run',options));\n});\n\n// option 3: supply callback to integrate something like notification (using gulp-notify)\n\nvar gulp = require('gulp'),\n notify  = require('gulp-notify'),\n phpspec = require('gulp-phpspec'),\n _       = require('lodash');\n\n  gulp.task('phpspec', function() {\n    gulp.src('phpspec.yml')\n      .pipe(phpspec('', {notify: true}))\n      .on('error', notify.onError(testNotification('fail', 'phpspec')))\n      .pipe(notify(testNotification('pass', 'phpspec')));\n  });\n\nfunction testNotification(status, pluginName, override) {\n\tvar options = {\n\t\ttitle:   ( status == 'pass' ) ? 'Tests Passed' : 'Tests Failed',\n\t\tmessage: ( status == 'pass' ) ? '\\n\\nAll tests have passed!\\n\\n' : '\\n\\nOne or more tests failed...\\n\\n',\n\t\ticon:    __dirname + '/node_modules/gulp-' + pluginName +'/assets/test-' + status + '.png'\n\t};\n\toptions = _.merge(options, override);\n  return options;\n}\n\n```\n\n### Sample Gulpfile\n\nIf you want a quick and dirty gulpfile, here is one I created for testing this plugin\n\n[Gist: https://gist.github.com/mikeerickson/9163621](https://gist.github.com/mikeerickson/9163621)\n\n\n## API\n\n### (phpspecpath,options,cb)\n\n#### phpspecpath\n\nType: `String`\n\nThe path to the desired PHPSpec binary\n- If not supplied, the defeault path will be ./vendor/bin/phpspec\n\n#### options.debug\nType: `Boolean (Default: false)`\n\nEmit error details and shows command used in console\n\n#### options.clear\nType: `Boolean (Default: false)`\n\nClear console before executing command\n\n\n#### options.notify\nType: `Boolean (Default: false)`\n\nCall user supplied callback to handle notification (use gulp-notify)\n\n#### options.verbose\nType: `String (Default null)`\n\nAdjust the default verbosity of messages\nv|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\n#### options.noInteraction\nType: `Boolean (Default: false)`\n*Note: changed from noInteract -* __0.3.0__\n\nDo not ask any interactive question (disables code generation).\n\n#### options.noAnsi\nType: `Boolean (Default: false)`\n\nDisable ANSI output (ommiting parameter or setting to false will display ansi colors output)\n\n#### options.quiet\nType: `Boolean (Default: false)`\n\nDo not output any message.\n\n#### options.formatter\nType: `String`\n\nDisplay PHPSpec custom formatters (ie pretty)\n\n\n## Credits\n\ngulp-phpspec written by Mike Erickson\n\nE-Mail: [codedungeon@gmail.com](mailto:codedungeon@gmail.com)\n\nTwitter: [@codedungeon](http://twitter.com/codedungeon)\n\nWebiste: [codedungeon.org](http://codedungeon.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeerickson%2Fgulp-phpspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeerickson%2Fgulp-phpspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeerickson%2Fgulp-phpspec/lists"}