{"id":26246027,"url":"https://github.com/zillow/grunt-init-yui","last_synced_at":"2025-07-24T18:07:26.134Z","repository":{"id":8410287,"uuid":"9994444","full_name":"zillow/grunt-init-yui","owner":"zillow","description":"Grunt project scaffolding for YUI.","archived":false,"fork":false,"pushed_at":"2013-05-21T23:07:04.000Z","size":168,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":65,"default_branch":"master","last_synced_at":"2025-03-07T06:34:22.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://gruntjs.com/project-scaffolding","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/zillow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-11T03:21:29.000Z","updated_at":"2014-01-13T23:00:17.000Z","dependencies_parsed_at":"2022-09-13T14:00:50.129Z","dependency_job_id":null,"html_url":"https://github.com/zillow/grunt-init-yui","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Fgrunt-init-yui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Fgrunt-init-yui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Fgrunt-init-yui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Fgrunt-init-yui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zillow","download_url":"https://codeload.github.com/zillow/grunt-init-yui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410453,"owners_count":20286403,"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":"2025-03-13T13:17:14.709Z","updated_at":"2025-03-13T13:17:15.353Z","avatar_url":"https://github.com/zillow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-init-yui [![Build Status](https://travis-ci.org/zillow/grunt-init-yui.png)](https://travis-ci.org/zillow/grunt-init-yui)\n\n\u003e Create a YUI module with [grunt-init][], including YUITest unit tests and Istanbul code coverage.\n\n[grunt-init]: http://gruntjs.com/project-scaffolding\n\n## Installation\n\nInstall `grunt-init-yui` globally via `npm`.\n\n```bash\nnpm -g install grunt-init-yui\n```\n\n## Usage\n\nAt the command-line, cd into an empty directory, run this command and follow the prompts.\n\n```\ngrunt-init-yui\n```\n\nIf a YUI-based project does not exist yet, it will create one.\nAn initialized module is placed under `src/{moduleName}` in the current directory.\n\n_Note that this template will generate files in the current directory,so be sure to change to a new directory first if you don't want to overwrite existing files._\n\n### Options\n\n```text\n  --project       Only initialize a project, not a module.\n  --gallery       The module initialized will live in the gallery.\n\n  --no-color      Disables color output.\n  --no-write      Disables writing files (dry run).\n  -f, --force     Ignore warnings. Caveat emptor.\n  -v, --version   Print version and exit.\n```\n\n### Directory Structure\n\nWhen initializing a module or project, it is helpful (but by no means required) to already have a Git repo initialized:\n\n```bash\nmkdir project\ncd project\ngit init .\n```\n\n#### Project Root\n\n```text\nproject/\n ├── BUILD.md\n ├── Gruntfile.js\n ├── LICENSE-MIT\n ├── README.md\n └── package.json\n```\n\nAfter a project is initialized, you should `npm install .` to get the tools used by Grunt.\n\n#### JS Module\n\nThis is the default module type, and is by far the most common across the core library.\n\n```text\n project/\n └─┬ src/\n   └─┬ js-module/\n     ├── HISTORY.md\n     ├── README.md\n     ├── build.json\n     ├─┬ docs/\n     │ ├── component.json\n     │ └── index.mustache\n     ├─┬ js/\n     │ └── js-module.js\n     ├─┬ meta/\n     │ └── js-module.json\n     └─┬ tests/\n       └─┬ unit/\n         ├── index.html\n         └─┬ assets/\n           └── js-module-test.js\n```\n\n#### CSS Module\n\nA CSS module contains a `css` directory instead of `js`, and is otherwise remarkably similar to a JS module.\n\n```text\n project/\n └─┬ src/\n   └─┬ css-module/\n     ├── HISTORY.md\n     ├── README.md\n     ├── build.json\n     ├─┬ css/\n     │ └── css-module.css\n     ├─┬ docs/\n     │ ├── component.json\n     │ └── index.mustache\n     ├─┬ meta/\n     │ └── css-module.json\n     └─┬ tests/\n       └─┬ unit/\n         └── index.html\n```\n\n#### Widget Module\n\nThe output of the `widget` type is identical to `js`, with the addition of an `assets` folder containing core and skin CSS files. The metadata is also modified to require `widget` and sets the `skinnable` property to `true`.\n\n```text\n project/\n └─┬ src/\n   └─┬ widget-module/\n     ├── HISTORY.md\n     ├── README.md\n     ├── build.json\n     ├─┬ assets/\n     │ └─┬ widget-module/\n     │   ├── widget-module-core.css\n     │   └─┬ skins/\n     │     ├─┬ night/\n     │     │ └── widget-module-skin.css\n     │     └─┬ sam/\n     │       └── widget-module-skin.css\n     ├─┬ docs/\n     │ ├── component.json\n     │ └── index.mustache\n     ├─┬ js/\n     │ └── widget-module.js\n     ├─┬ meta/\n     │ └── widget-module.json\n     └─┬ tests/\n       └─┬ unit/\n         ├── index.html\n         └─┬ assets/\n           └── widget-module-test.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzillow%2Fgrunt-init-yui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzillow%2Fgrunt-init-yui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzillow%2Fgrunt-init-yui/lists"}