{"id":16316501,"url":"https://github.com/stepicorg/ember-cli-environment-config-replace","last_synced_at":"2026-05-02T03:08:51.159Z","repository":{"id":57223235,"uuid":"401591028","full_name":"StepicOrg/ember-cli-environment-config-replace","owner":"StepicOrg","description":"Simple templating using config/environment.js at build time.","archived":false,"fork":false,"pushed_at":"2021-08-31T06:26:56.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-28T14:21:26.531Z","etag":null,"topics":["ember-addon","ember-cli","ember-cli-addon","emberjs"],"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/StepicOrg.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":"2021-08-31T06:03:05.000Z","updated_at":"2021-08-31T06:37:24.000Z","dependencies_parsed_at":"2022-08-25T12:22:28.466Z","dependency_job_id":null,"html_url":"https://github.com/StepicOrg/ember-cli-environment-config-replace","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepicOrg%2Fember-cli-environment-config-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepicOrg%2Fember-cli-environment-config-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepicOrg%2Fember-cli-environment-config-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepicOrg%2Fember-cli-environment-config-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StepicOrg","download_url":"https://codeload.github.com/StepicOrg/ember-cli-environment-config-replace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252699555,"owners_count":21790680,"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":["ember-addon","ember-cli","ember-cli-addon","emberjs"],"created_at":"2024-10-10T22:04:49.886Z","updated_at":"2026-05-02T03:08:51.114Z","avatar_url":"https://github.com/StepicOrg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-cli-environment-config-replace\n==============================================================================\n\nSimple templating using `config/environment.js` at build time.\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-cli-environment-config-replace\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\nThis addon looks for a `@{PROP}` pattern in files and replaces it with a `PROP`\nfrom `environment/config.js` at build time.\n\nNested properties are also supported, just use `.` as delimiter: `@{PROP.A.B.C}`.\n\nOptions and their defaults:\n\n```js\nlet app = new EmberApp(defaults, {\n  'ember-cli-environment-config-replace': {\n    enabled: true,\n\n    // A list of files to parse in `/dist` directory.\n    // NOTE: The replacement happens in the `postprocessTree` hook, \n    // so its essentially running once the files have already been processed.\n    files: [\n      'index.html',\n      'tests/index.html',\n    ],\n\n    // Regex pattern for replacements.\n    // The regex must have a group to capture property name.\n    regex: /@\\{\\s?([\\w-.]+)\\s?\\}/g\n  }\n});\n```\n\nIf `files` is a function, it's passed the\n[`outputPaths`](https://cli.emberjs.com/release/advanced-use/asset-compilation/#configuringoutputpaths)\nobject. It's better to rely on this rather than hard-coding file paths, because output paths \nfor some assets can be configured in ember-cli.\n\n```js\n'ember-cli-environment-config-replace': {\n  files: outputPaths =\u003e [\n    outputPaths.app.html,\n    outputPaths.app.css.app,\n  ]\n}\n```\n\nRunning tests\n------------------------------------------------------------------------------\n\n`npm test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepicorg%2Fember-cli-environment-config-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepicorg%2Fember-cli-environment-config-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepicorg%2Fember-cli-environment-config-replace/lists"}