{"id":20028585,"url":"https://github.com/phase2/generator-gadget","last_synced_at":"2025-05-05T03:32:16.616Z","repository":{"id":29553433,"uuid":"33092622","full_name":"phase2/generator-gadget","owner":"phase2","description":"The Yeoman Generator for Drupal and Grunt Drupal Tasks.","archived":false,"fork":false,"pushed_at":"2018-08-01T12:31:51.000Z","size":299,"stargazers_count":16,"open_issues_count":20,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-25T15:03:57.066Z","etag":null,"topics":["drupal","grunt","grunt-drupal-tasks","yeoman-generator"],"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/phase2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-29T22:44:37.000Z","updated_at":"2024-09-02T10:42:37.000Z","dependencies_parsed_at":"2022-09-04T09:23:56.935Z","dependency_job_id":null,"html_url":"https://github.com/phase2/generator-gadget","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fgenerator-gadget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fgenerator-gadget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fgenerator-gadget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fgenerator-gadget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase2","download_url":"https://codeload.github.com/phase2/generator-gadget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252435171,"owners_count":21747356,"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":["drupal","grunt","grunt-drupal-tasks","yeoman-generator"],"created_at":"2024-11-13T09:15:33.854Z","updated_at":"2025-05-05T03:32:16.261Z","avatar_url":"https://github.com/phase2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gadget: A Generator for New Drupal Projects\n\n\u003e [Yeoman](http://yeoman.io) generator to scaffold a [Drupal](https://www.drupal.org) project for use with [grunt-drupal-tasks](https://github.com/phase2/grunt-drupal-tasks).\n\n[![Travis CI status](https://travis-ci.org/phase2/generator-gadget.png?branch=master)](https://travis-ci.org/phase2/generator-gadget)\n[![npm version](https://badge.fury.io/js/generator-gadget.svg)](https://www.npmjs.com/package/generator-gadget)\n[![Dependency Status](https://david-dm.org/phase2/generator-gadget.svg)](https://david-dm.org/phase2/generator-gadget)\n[![Greenkeeper badge](https://badges.greenkeeper.io/phase2/generator-gadget.svg)](https://greenkeeper.io/)\n\n## Features\n\nGadget will set up a Drupal project with the site skeleton and tools to build your project and configure your build\nsystem with the Grunt Drupal Tasks kit.\n\n* Automatically uses the latest version of Grunt Drupal Tasks.\n* Select from Drupal 7, Drupal 8, Atrium 2, or Octane. The latest published release of the selected option will be used.\n* For Drupal 8, creates a `composer.json` file that requires the latest stable Drupal, Drupal Console, and Drush.\n* For Drupal 7, creates a Drush Makefile so your grunt build process is ready to assemble a working codebase immediately!\n* Provides numerous configuration files for Git, IDE's, and other tools for Drupal best practices out-of-the-box.\n* The entire Grunt Drupal Tasks features list is ready to go, including Behat Testing, Static Analysis, and Continuous-Integration readiness.\n\n## Requirements\n\n* Install _Node.js v4 or better_ either using a\n[package manager](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager)\nlike apt-get, brew, or yum or a [standalone installer](http://nodejs.org/download/)\n\n* Once _Node.js_ is installed, use _npm_ to install the generator. If you have\nnot used a Yeoman generator before install the [`yo`](https://www.npmjs.com/package/yo) package as well.\n[Grunt Drupal Tasks](https://github.com/phase2/grunt-drupal-tasks) requires the [grunt task runner](https://www.npmjs.com/package/grunt-cli) as well.\n\n```\nnpm install -g generator-gadget grunt-cli yo\n```\n\nGrunt Drupal Tasks leverages a number of additional tools from outside the Node ecosystem, such as [PHP](http://php.net) and\n[Composer](https://getcomposer.org/download/). See Grunt-Drupal-Tasks for details.\n\n## Usage\n\nTo set up a new Drupal project with Grunt Drupal Tasks using Gadget, run the following in a new directory:\n\n```\nyo gadget\n```\n\n## Options\n\n* `--offline`: Will make a best effort to complete generator run, though some generated values\n  may be non-applicable, such as Drupal Core version of \"0\".\n* `--use-master`: Will make a point of leveraging the master version of Grunt Drupal Tasks.\n* `--skip-install`: Will skip running `npm install` at the end of the generation process.\n* `--skip-readme`: Will not generate a README.md. (Useful when you've already hand-crafted the perfect project introduction!)\n* `--skipWelcome`: Skip opening welcome message.\n* `--skipGoodbye`: Skip closing messages.\n\n## Additional Resources\n\n* For information on using Grunt Drupal Tasks after installing with Gadget, see the [Grunt Drupal Tasks documentation](https://phase2.github.io/grunt-drupal-tasks).\n* Interested in the Frontend? Check out our sibling project, [Generator Patter Lab Starter](https://github.com/phase2/generator-pattern-lab-starter) to get a theme ready to go with options for Pattern Lab, icon fonts, SASS, visual regression testing, and more.\n\n## Docker-based Development\n\nInstall the dependencies:\n\n```\ndocker-compose run --rm cli npm install\n```\n\nThen run the generator:\n\n```\ndocker-compose run --rm yo gadget\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fgenerator-gadget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase2%2Fgenerator-gadget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fgenerator-gadget/lists"}