{"id":20919606,"url":"https://github.com/amiteshhh/generator-ng-section","last_synced_at":"2026-05-07T15:47:37.065Z","repository":{"id":57248097,"uuid":"78931134","full_name":"amiteshhh/generator-ng-section","owner":"amiteshhh","description":"Yeoman generator for AngularJS 1.x modules http://yeoman.io","archived":false,"fork":false,"pushed_at":"2017-02-23T19:00:16.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T06:59:01.988Z","etag":null,"topics":["angular","generator-ng","ionic","yeoman-generator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amiteshhh.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":"2017-01-14T09:24:25.000Z","updated_at":"2017-03-06T19:00:02.000Z","dependencies_parsed_at":"2022-08-24T16:10:53.942Z","dependency_job_id":null,"html_url":"https://github.com/amiteshhh/generator-ng-section","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/amiteshhh/generator-ng-section","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiteshhh%2Fgenerator-ng-section","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiteshhh%2Fgenerator-ng-section/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiteshhh%2Fgenerator-ng-section/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiteshhh%2Fgenerator-ng-section/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amiteshhh","download_url":"https://codeload.github.com/amiteshhh/generator-ng-section/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiteshhh%2Fgenerator-ng-section/sbom","scorecard":{"id":189861,"data":{"date":"2025-08-11","repo":{"name":"github.com/amiteshhh/generator-ng-section","commit":"0b5f60061f0bf98370a480adf7d13b8495915949"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T20:25:53.468Z","repository_id":57248097,"created_at":"2025-08-16T20:25:53.469Z","updated_at":"2025-08-16T20:25:53.469Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32745065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","generator-ng","ionic","yeoman-generator"],"created_at":"2024-11-18T17:08:02.814Z","updated_at":"2026-05-07T15:47:37.048Z","avatar_url":"https://github.com/amiteshhh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-ng-section\n\n[Yeoman generator](http://yeoman.io/generators/) for creating new section/module/sub-module. This plugin does three things:\n\n1. Create folder and files necessary for new module\n2. Add script reference of generated files to `index.html`\n3. Inject module dependency to main module\n\nContent of the created files follows the John Papa [style guide](https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md). Refer my [ionic seed](https://github.com/amiteshhh/ionicseed) project which this generator can best augment.\n\n\u003e It doesn't scaffold entire project rather It helps you to add new modules in existing angular app following [folder-by-feature](https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#folders-by-feature-structure) directory structure.\n\n## Getting started\n\n- Install: `npm install -g generator-ng-section`\n- Run: `yo ng-section` _of course you need to provide other arguments as explained below_\n\n\n## Commands\n\n`yo ng-section \u003cmodule name\u003e [relative path] [--skip-add]`\n* __module name__ : required. It is the angular module name which you want to create. Folder/file names will be driven by this.\n* __relative path__: optional. Path to parent under which new folder will be created. It is relative to the www directory.\n* __skip-add__ : optional flag. Pass this flag if you don't want to add the newly created components script reference in `index.html` and module dependency injection to main module(typically `root \u003e www \u003e app \u003e index.module.js`.\n\n\u003e If _module name_ argument contains the period character `.`, say `app.about`, we consider only equivalent extension while creating folder/file name.\n  However angular module name will still be the same as provided one.\n\n\n## Configuration\n\nWhen you invoke the command for the first time you will be asked to provide default path for your client source directory, main folder which contains the angular modules and main module file which contains all of the dependency of sub-modules.\n\nConsider below project structure\n\n```\n├── node_modules/\n├── www/ /* This is your source/client directory */\n│   └── index.html\n│   └── lib/\n│   └── css/\n│   └── app/ /* This is where your all modules resides */\n│   └── about/\n│       └── index.module.js /* This is where you define all your angular dependencies */\n\n```\nFor this structure `www` is the client directory, `app` is the parentModule folder under which new folder/module will be created and `app/index.module.js` is the main module file where new module dependency would be injected.\n\nYou can specify these values when you run the command for the first time or by directly editing `.yo-rc.json` later as per your project structure. \n\n**If most of the time you want the new module to be created inside `root \u003e www \u003e app \u003e main` you can specify main module parent path as `app/main` instead of default `app` i.e `\"appModulesParentPath\": \"app/main\"`**\n\nOnce setup is done this file looks like below\n\n```js\n{\n  \"generator-ng-section\": {\n    \"promptValues\": {\n      \"wwwPath\": \"www\",\n      \"appModulesParentPath\": \"app\",\n      \"mainModuleFilePath\": \"app/index.module.js\"\n    }\n  }\n}\n```\n\n\nIn order to automatically inject the new module as a dependency, your main module file (`index.module.js` in this example) must have a dependency array `requires` as defined below\n\n```js\n(function () {\n    'use strict';\n\n    var moduleName = 'app',\n            requires = [                                \n                // app core\n                'app.core',\n                // home module\n                \"app.home\"\n\n            ];\n\n    angular.module(moduleName, requires);\n\n})();\n\n```\n\n\n## Example\n `yo ng-section about` or `yo ng-section about app` or `yo ng-section mymoule.someother.about`\n\n### What do you get?\n\nIt will create a folder named `about` and other relevant files under `root \u003e www \u003e app` as shown below:\n\n```\n├── about/\n│   └── about.module.js\n│   └── about.route.js\n│   └── about.service.js\n│   └── about.controller.js\n│   └── about.html\n\n```\n`yo ng-section about --skip-add`\n\nIt will create the above directory but neither script reference will be added to `index.html` nor the dependency of `about` module will be injected to `index.module.js` file.\n\n\u003e__Script reference addition:__ If build comment `\u003c!-- endbuild --\u003e` exists in the the `index.html`, reference is added just before last comment otherwise It is appended as a last child of `\u003cbody\u003e` tag.\n\n## Providing relative path argument\n\n`yo ng-section about common` or `yo ng-section app.about common`\nIt will create _about_ folder in the path `root \u003e www \u003e common`\n\n`yo ng-section somemodule my/nested/folder`\nIt will create _somemodule_ folder in the path `root \u003e www \u003e my \u003e nested \u003e folder`\n\n\u003ePlugin will automatically create non-existent directory.\n\n\n## Generated File Content\nRefer `example` [folder](https://github.com/amiteshhh/generator-ng-section/tree/master/example) of this repository.\n\n## Request New Feature\nNeed new features? Please create a feature request on Github.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiteshhh%2Fgenerator-ng-section","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famiteshhh%2Fgenerator-ng-section","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiteshhh%2Fgenerator-ng-section/lists"}