{"id":22933069,"url":"https://github.com/log-oscon/generator-log-marionette","last_synced_at":"2025-07-31T22:35:46.625Z","repository":{"id":28628509,"uuid":"32147304","full_name":"log-oscon/generator-log-marionette","owner":"log-oscon","description":"Yeoman generator for a Marionette frontend application.","archived":false,"fork":false,"pushed_at":"2020-07-20T13:05:36.000Z","size":72,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-04T04:12:58.736Z","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/log-oscon.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-03-13T09:30:56.000Z","updated_at":"2020-07-20T13:05:39.000Z","dependencies_parsed_at":"2022-08-03T00:15:46.490Z","dependency_job_id":null,"html_url":"https://github.com/log-oscon/generator-log-marionette","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/log-oscon/generator-log-marionette","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2Fgenerator-log-marionette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2Fgenerator-log-marionette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2Fgenerator-log-marionette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2Fgenerator-log-marionette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/log-oscon","download_url":"https://codeload.github.com/log-oscon/generator-log-marionette/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2Fgenerator-log-marionette/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263553522,"owners_count":23479405,"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-12-14T11:19:46.676Z","updated_at":"2025-07-13T17:09:10.552Z","avatar_url":"https://github.com/log-oscon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marionette.js generator [![Build Status](https://travis-ci.org/log-oscon/generator-log-marionette.svg)](https://travis-ci.org/log-oscon/generator-log-marionette)\n\n\u003e [Yeoman](http://yeoman.io) generator \n\n## What it is\n\nIt will generate a base Marionette project with Browserify, specs and Gulp tasks. \nAlso, it will generate all the base components of a Marionette project - such as ItemView's, Models, etc.\n\n## Installation\n\nPlease read [Yeoman docs](http://yeoman.io) for Yeoman installation.\n\n`npm install -g generator-log-marionette`\n\n## Bootstrap\n\n`yo log-marionette` will generate a `package.json` with the specified dependencies , an `.editorconfig`, a `.gitignore`, a `.jshintrc` and will create the following directories and files:\n\n* tasks/\n* src/\n  * images/\n  * fonts/\n  * styles/\n  * scripts/\n      * `main.js` - application bootstrap\n      * app/\n          * `app.js` - basic definition of `Backbone.Marionette.Application`;\n          * `radio.js` - basic definition of `Radio` with a predefined `global` channel;\n          * behaviors/\n              * `behaviors.js` - placeholder for other `Behavior`;\n          * collections/ \n          * models/\n          * controllers/\n          * routers/\n          * apis/\n          * views/\n              * `root-view.js` - view used by `app.js` as a view placeholder\n          * templates/\n               * `root.(hbs|dust)` - `root-view.js` template\n          * regions/\n\n  * tests/\n      * app/\n          * collections/\n          * models/\n          * controllers/\n          * routers/\n          * apis/\n          * views/\n\nAll `package.json` will be automatically installed\n\n## Generators\n\nYou can see a list of possible generators by typing: `yo --help`. In this case you will receive the following list - alongside other generators:\n\n```\nlog-marionette\n    behavior\n    collection\n    collectionview\n    composite-template\n    compositeview\n    controller\n    itemview\n    layoutview\n    model\n    region\n    router\n    template\n```\n\nBear in mind, `composite-template` **IS NOT** supposed to be used. It is only used internally by `compositeview`.\n\nYou can see each sub-generator and its options by typing: `yo log-marionette:[generator] --help`. E.g.: by typing `yo log-marionette:compositeview --help` it will return:\n\n```\nUsage:\n  yo log-marionette:compositeview [options] \u003cname\u003e\n\nOptions:\n  -h,   --help        # Print the generator's options and usage\n        --skip-cache  # Do not remember prompt answers                               Default: false\n        --all         # should also create its corresponding template and itemviews\n\nArguments:\n  name    Type: String  Required: true\n```\n\nA few points on naming conventions; when generating a model or a collection, the input name will be the file name, e.g.: `yo log-marionette:model my-name` will generate a `my-name.js` file with the following code:\n\n```\n(function () {\n    'use strict';\n\n    var Backbone = require('backbone');\n\n    var MyName = Backbone.Model.extend({});\n\n    module.exports = MyName;\n})();\n\n```\n\nIn all other cases a suffix will be added to the name file and the generated object, e.g.: `yo log-marionette:behavior my-name` will generate a `my-name-behavior.js` file with the following contents:\n\n```\n(function () {\n    'use strict';\n\n    var Marionette = require('backbone.marionette');\n\n    var MyNameBehavior = Marionette.Behavior.extend({\n        defaults: {\n            /* your defaults */\n        },\n\n        events: {\n            /* your events */\n        }\n    });\n\n    module.exports = MyNameBehavior;\n})();\n\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog-oscon%2Fgenerator-log-marionette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog-oscon%2Fgenerator-log-marionette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog-oscon%2Fgenerator-log-marionette/lists"}