{"id":16773973,"url":"https://github.com/hgwood/inject-this-brunch","last_synced_at":"2025-03-16T17:22:12.522Z","repository":{"id":57273993,"uuid":"61280961","full_name":"hgwood/inject-this-brunch","owner":"hgwood","description":"A ng-annotate plugin for brunch","archived":false,"fork":false,"pushed_at":"2017-03-13T09:52:20.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T03:24:36.332Z","etag":null,"topics":["brunch","brunch-plugin","javascript","ng-annotate-brunch","ng-annotate-plugins","ngannotate"],"latest_commit_sha":null,"homepage":"","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/hgwood.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":"2016-06-16T09:42:06.000Z","updated_at":"2017-03-13T09:54:54.000Z","dependencies_parsed_at":"2022-09-17T10:12:48.939Z","dependency_job_id":null,"html_url":"https://github.com/hgwood/inject-this-brunch","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgwood%2Finject-this-brunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgwood%2Finject-this-brunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgwood%2Finject-this-brunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hgwood%2Finject-this-brunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hgwood","download_url":"https://codeload.github.com/hgwood/inject-this-brunch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243903181,"owners_count":20366438,"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":["brunch","brunch-plugin","javascript","ng-annotate-brunch","ng-annotate-plugins","ngannotate"],"created_at":"2024-10-13T06:47:38.054Z","updated_at":"2025-03-16T17:22:12.484Z","avatar_url":"https://github.com/hgwood.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inject this brunch!\n\nA [ng-annotate](https://www.npmjs.com/package/ng-annotate) plugin for [brunch](http://brunch.io/).\n\n**DEPRECATED**: [ng-annotate](https://github.com/olov/ng-annotate), which this project depends on, is now [deprecated](https://github.com/olov/ng-annotate/issues/245). You are [advised](https://github.com/olov/ng-annotate/issues/245#issuecomment-247245655) to use [babel-plugin-angularjs-annotate](https://github.com/schmod/babel-plugin-angularjs-annotate) instead.\n\n## Why not the other existing things?\n\nTwo ng-annotate plugins for brunch already exist: [ng-annotate-brunch](https://www.npmjs.com/package/ng-annotate-brunch)\nand [ng-annotate-uglify-js-brunch](https://www.npmjs.com/package/ng-annotate-uglify-js-brunch).\n\n### Initial reason (turns out to be invalid)\n\nThe two existing solutions did not fit\nmy use case because they place the annotating process inside the optimize phase of brunch. This means that\nannotations were not present in the development build, only in the production build. I want the annotations to be there\nin dev so I can have `ng-strict-di` enabled and that will check if the annotations are really all there.\n\n[Turns out you can use the `plugins.on` option in the brunch config to force optimize plugins to run](https://github.com/hgwood/inject-this-brunch/issues/6#issue-184146926).\n\n### Actual reasons\n\n- You might not need or want to minify at the same stage as annotating so ng-annotate-uglify-js-brunch is out.\n- ng-annotate-brunch does not have source maps support.\n- ng-annotate-brunch does not support an ignore option, which can give a significant speed boost.\n\n## Usage\n\n`npm install inject-this-brunch`\n\n### Configuration\n\n```js\nplugins: {\n  ngAnnotate: {\n    // place config here\n  }\n}\n```\n\n#### For ng-annotate\n\nThe plugin configuration is passed to [ng-annotate](https://github.com/olov/ng-annotate/blob/master/OPTIONS.md#library-api).\nBy default, the following options are passed: `{add: true, remove: true, map: {inFile: \u003cpath of input file\u003e}}`, i.e.\nannotations are rebuilt and source maps are generated.\n\nWhen a configuration is provided in `brunch-config.js`:\n- `add` and `remove` default to `true` unless they are explicitly set to falsy values.\n- `map.inFile` is automatically provided unless `map` is explicitly set to a falsy value.\n\n#### `pattern`\n\nDefault: `/\\.js$/`\n\n#### `ignore`\n\nDefault: `/^(bower_components|vendor)/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgwood%2Finject-this-brunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhgwood%2Finject-this-brunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhgwood%2Finject-this-brunch/lists"}