{"id":15536197,"url":"https://github.com/kellyselden/ember-cli-funnel","last_synced_at":"2025-08-24T10:14:29.161Z","repository":{"id":57223269,"uuid":"66311790","full_name":"kellyselden/ember-cli-funnel","owner":"kellyselden","description":"Exclude files from an ember build","archived":false,"fork":false,"pushed_at":"2018-11-06T10:59:00.000Z","size":74,"stargazers_count":31,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T00:11:09.744Z","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/kellyselden.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":"2016-08-22T22:09:43.000Z","updated_at":"2021-09-22T21:40:11.000Z","dependencies_parsed_at":"2022-08-24T15:41:43.463Z","dependency_job_id":null,"html_url":"https://github.com/kellyselden/ember-cli-funnel","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellyselden%2Fember-cli-funnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellyselden%2Fember-cli-funnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellyselden%2Fember-cli-funnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellyselden%2Fember-cli-funnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kellyselden","download_url":"https://codeload.github.com/kellyselden/ember-cli-funnel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249994820,"owners_count":21357947,"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-10-02T11:50:22.436Z","updated_at":"2025-04-23T13:42:05.078Z","avatar_url":"https://github.com/kellyselden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-cli-funnel\n==============================================================================\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/kellyselden/ember-cli-funnel.svg)](https://greenkeeper.io/)\n[![npm version](https://badge.fury.io/js/ember-cli-funnel.svg)](https://badge.fury.io/js/ember-cli-funnel)\n[![Build Status](https://travis-ci.org/kellyselden/ember-cli-funnel.svg?branch=master)](https://travis-ci.org/kellyselden/ember-cli-funnel)\n[![Build Status](https://dev.azure.com/kellyselden/ember-cli-funnel/_apis/build/status/kellyselden.ember-cli-funnel)](https://dev.azure.com/kellyselden/ember-cli-funnel/_build/latest?definitionId=1)\n\nExclude files from an ember build\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-cli-funnel\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\n```js\n// ember-cli-build.js\n\nlet app = new EmberApp(defaults, {\n  funnel: {\n    exclude: [\n      `${defaults.project.pkg.name}/routes/style-guide/**/*`,\n      'addon-tree-output/some-addon/styles/**/*.scss'\n    ]\n  }\n});\n```\n\n### Options\n\n* `enabled` (bool): defaults to only in production\n* `exclude` (array of globs): defaults to empty array\n\n### Advanced Example 1\n\nExclude route files and router definitions from the `master` branch build\n\n```\nember install ember-git-version\nnpm install git-repo-info --save-dev\n```\n\n```js\n// ember-cli-build.js\n\nlet getRepoInfo = require('git-repo-info');\n\nlet info = getRepoInfo();\n\nlet app = new EmberApp(defaults, {\n  funnel: {\n    enabled: info.branch === 'master',\n    exclude: [`${defaults.project.pkg.name}/routes/style-guide/**/*`]\n  }\n});\n```\n\n```js\n// app/router.js\n\nif (config.branch !== 'master') {\n  this.route('style-guide', function() {\n    // ...\n  });\n}\n```\n\n### Advanced Example 2\n\nExclude different files for different environments\n\n```js\n// ember-cli-build.js\n\nlet exclude = [];\n\nswitch (EmberApp.env()) {\n  case 'development':\n    exclude.push(`${defaults.project.pkg.name}/routes/prod-only/**/*`);\n    break;\n  case 'production':\n    exclude.push(`${defaults.project.pkg.name}/routes/dev-only/**/*`);\n    break;\n}\n\nlet app = new EmberApp(defaults, {\n  funnel: {\n    enabled: true,\n    exclude\n  }\n});\n```\n\n\nContributing\n------------------------------------------------------------------------------\n\n### Installation\n\n* `git clone \u003crepository-url\u003e`\n* `cd ember-cli-funnel`\n* `npm install`\n\n### Linting\n\n* `npm run lint:js`\n* `npm run lint:js -- --fix`\n\n### Running tests\n\n* `ember test` – Runs the test suite on the current Ember version\n* `ember test --server` – Runs the test suite in \"watch mode\"\n* `ember try:each` – Runs the test suite against multiple Ember versions\n\n### Running the dummy application\n\n* `ember serve`\n* Visit the dummy application at [http://localhost:4200](http://localhost:4200).\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellyselden%2Fember-cli-funnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkellyselden%2Fember-cli-funnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellyselden%2Fember-cli-funnel/lists"}