{"id":16549543,"url":"https://github.com/settinghead/karma-eco-preprocessor","last_synced_at":"2025-03-04T13:44:34.228Z","repository":{"id":12634579,"uuid":"15305968","full_name":"settinghead/karma-eco-preprocessor","owner":"settinghead","description":null,"archived":false,"fork":false,"pushed_at":"2014-02-13T08:15:44.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T09:03:05.480Z","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/settinghead.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":"2013-12-19T08:13:12.000Z","updated_at":"2014-06-25T06:06:08.000Z","dependencies_parsed_at":"2022-09-26T18:41:59.253Z","dependency_job_id":null,"html_url":"https://github.com/settinghead/karma-eco-preprocessor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Fkarma-eco-preprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Fkarma-eco-preprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Fkarma-eco-preprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Fkarma-eco-preprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settinghead","download_url":"https://codeload.github.com/settinghead/karma-eco-preprocessor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241859392,"owners_count":20032314,"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-11T19:29:51.315Z","updated_at":"2025-03-04T13:44:34.206Z","avatar_url":"https://github.com/settinghead.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# karma-eco-preprocessor\n\n\u003e Preprocessor to compile ECO Templates. Source code derived from [Karma HTML2JS Preprocessor](https://github.com/karma-runner/karma-html2js-preprocessor)\n\n## Installation\n\nThe easiest way is to keep `karma-eco-preprocessor` as a devDependency in your `package.json`.\n```json\n{\n  \"devDependencies\": {\n    \"karma\": \"~0.10\",\n    \"karma-eco-preprocessor\": \"~0.1\"\n  }\n}\n```\n\nYou can simple do it by:\n```bash\nnpm install karma-eco-preprocessor --save-dev\n```\n\n## Configuration\nFollowing code shows the default configuration...\n```js\n// karma.conf.js\nvar path = require('path');\nmodule.exports = function(config) {\n  config.set({\n    preprocessors: {\n      '**/*.eco': ['eco']\n    },\n\n    ecoPreprocessor: {\n      // options passed to the eco compiler\n      options: {\n        baseTemplatePath: path.join(__dirname, 'app/assets/templates'),\n        enableJSTGlobalVariable: true\n      },\n      // transforming the filenames\n      transformPath: function(path) {\n        return path.replace(/\\.js$/, '.eco');\n      }\n    }\n  });\n};\n```\n\n\n----\n\nFor more information on Karma see the [homepage].\n\n\n[homepage]: http://karma-runner.github.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettinghead%2Fkarma-eco-preprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettinghead%2Fkarma-eco-preprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettinghead%2Fkarma-eco-preprocessor/lists"}