{"id":23562059,"url":"https://github.com/lddubeau/karma-typescript-agile-preprocessor","last_synced_at":"2026-04-08T16:31:51.550Z","repository":{"id":22686560,"uuid":"97041575","full_name":"lddubeau/karma-typescript-agile-preprocessor","owner":"lddubeau","description":"Leverage the power of gulp-typescript for a simple yet powerful Karma preprocessor.","archived":false,"fork":false,"pushed_at":"2022-12-30T17:56:11.000Z","size":892,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T06:38:02.752Z","etag":null,"topics":["karma","karma-plugin","karma-preprocessor","typescript","typescript-compiler"],"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/lddubeau.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-07-12T18:46:06.000Z","updated_at":"2020-08-26T14:13:15.000Z","dependencies_parsed_at":"2023-01-11T21:43:42.724Z","dependency_job_id":null,"html_url":"https://github.com/lddubeau/karma-typescript-agile-preprocessor","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lddubeau/karma-typescript-agile-preprocessor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lddubeau%2Fkarma-typescript-agile-preprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lddubeau%2Fkarma-typescript-agile-preprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lddubeau%2Fkarma-typescript-agile-preprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lddubeau%2Fkarma-typescript-agile-preprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lddubeau","download_url":"https://codeload.github.com/lddubeau/karma-typescript-agile-preprocessor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lddubeau%2Fkarma-typescript-agile-preprocessor/sbom","scorecard":{"id":581323,"data":{"date":"2025-08-11","repo":{"name":"github.com/lddubeau/karma-typescript-agile-preprocessor","commit":"5333f657a2d109c8ac0b9a862969211cd5005466"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/26 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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"51 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c","Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T19:15:00.706Z","repository_id":22686560,"created_at":"2025-08-20T19:15:00.707Z","updated_at":"2025-08-20T19:15:00.707Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["karma","karma-plugin","karma-preprocessor","typescript","typescript-compiler"],"created_at":"2024-12-26T16:14:49.446Z","updated_at":"2026-04-08T16:31:51.535Z","avatar_url":"https://github.com/lddubeau.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a fork of\n[karma-typescript-preprocessor2](https://github.com/klaygomes/karma-typescript-preprocessor2). I\nwas having a number of problems with that plugin and decided to fork.\n\nWhy the \"agile\" in the name? The term \"agile\" is one of those terms that\nmarketing slaps all over the place without any good reason. I needed to\ndistinguish it from previous preprocessors and decided to slap \"agile\" in there\nas a joke. It is nicer than incrementing ``2`` to ``3``, which would be\nconfusing anyway because it has nothing to do with actual version numbers.\n\nThis preprocessor passes most of the work to\n[gulp-typescript](https://www.npmjs.com/package/gulp-typescript), a great plugin\nfor ``gulp``.\n\n# How to install\n\nInclude a reference to this plugin in your ``package.json``, and use ``npm\ninstall`` to install it.\n\n# Configuration Options\n\nHere is a full-featured example with all options that you can use to configure\nthe preprocessor:\n\n```javascript\n// karma.conf.js\nmodule.exports = function(config) {\n  config.set({\n    files: [\n      '**/*.ts'   // The preprocessor will convert Typescript to Javascript.\n    ],\n    preprocessors: {\n      '**/*.ts': ['typescript', 'sourcemap']   // Use karma-sourcemap-loader.\n    },\n    typescriptPreprocessor: {\n      // Options passed to the typescript compiler.\n      tsconfigPath: './tsconfig.json', // Mandatory.\n      compilerOptions: { // Optional.\n        removeComments: false\n      },\n      // Options passed to gulp-sourcemaps to create sourcemaps.\n      sourcemapOptions: {includeContent: true, sourceRoot: '/src'},\n      // Ignore all files that end with .d.ts (these files will not be served).\n      ignorePath: function(path){\n       return /\\.d\\.ts$/.test(path);\n      },\n      // Optional path transformations. You may pass more than one. They will be\n      // executed in order.\n      transformPath: [function(path) {\n        return path.replace(/\\.ts$/, '.js');\n      }, function(path) {\n         // Remove directory test and change to /.\n         return path.replace(/[\\/\\\\]test[\\/\\\\]/i, '/');\n      }]\n    }\n  });\n};\n```\n\n```javascript\n//tsconfig.json\n{\n  \"compilerOptions\": {\n    \"noImplicitAny\": false,\n    \"module\": \"amd\",\n    \"noEmitOnError\": false,\n    \"removeComments\": true,\n    \"sourceMap\": true,\n    \"listFiles\": true,\n    \"experimentalDecorators\": true,\n    \"outDir\": \"wwwroot\",\n    \"target\": \"es5\"\n  },\n  \"exclude\": [\n    \"node_modules\",\n    \"wwwroot\",\n    \"artifacts\"\n    \".git\",\n    \".vs\"\n  ]\n}\n```\n\nWe require a primary configuration from a ``tsconfig.json`` file. This solves a\nlot of problems, as your compiler's configuration in ``karma`` will be\nconsistent with other tools you use that read the same ``tsconfig.json``, but\nyou can override (or add) options by using the ``compilerOptions`` property.\n\n## Unsuported TypeScript configuration options\n\nAs we use ``gulp-typescript`` to transpile typescript code, we have the same\nunsuported options as ``gulp-typescript``, so:\n\n - Sourcemap options (``sourceMap``, ``inlineSources``, ``sourceRoot``)\n - ``rootDir`` - Use the ``base`` option of ``gulp.src()`` instead.\n - ``watch`` - Use karma ``singleRun: false`` configuration instead.\n - ``project`` - See \"Using tsconfig.json\".\n - and the obvious ones: ``help``, ``version``\n\n## Sourcemaps\n\nTranspiling with ``gulp-typescript`` requires the use of ``gulp-sourcemaps`` to\ncreate sourcemaps.\n\n## Plugin Options\n\nHere is the list of plugin options.\n\n### transformPath:  (string) =\u003e string | ((string) =\u003e string)[]\n\nDefault value:\n```\nfunction(path){\n return path.replace(/\\.ts$/, '.js');\n}\n\n```\n\nIt is used to change the virtual path of served files. It may sometimes be\nnecessary to change the virtual directory of a served file to allow tests,\nexample:\n\nLet's suppose that you have the following folder hierarchy:\n\n```\n\\basedir\n \\wwwroot\n  module\n     file1.js\n     file2.js\n \\src\n   module\n     file1.ts\n     file2.ts\n \\test\n   module\n     file1.spec.ts\n     file2.spec.ts\n```\n\nIf ``file1.spec.ts`` and ``file2.spec.ts`` reference ``file1.ts`` and\n``file2.ts``, and you are using typescript ``module`` option, you will need to\nremove virtual directory ``test``, so all modules referenced by ``*.specs.ts``\nwill be solved successfully. To make it work, you need something like:\n\n```\ntransformPath: [function(path) {\n // First change .ts to .js.\n return path.replace(/\\.ts$/, '.js');\n}, function(path) {\n  // Then replace /test/ with /.\n  return path.replace(/[\\/\\\\]test[\\/\\\\]/i, '/');\n}]\n```\n\n### ignorePath: (string) =\u003e boolean\n\nIt could be used to ignore files that you don't want to serve. Keep in mind that\n``ignorePath`` runs before ``transformPath``.\n\nDefault value:\n```\nfunction(path){\n return /\\.d\\.ts$//.test(path);\n}\n\n```\n\n### sourcemapOptions: any\n\nSpecify ``gulp-sourcemaps``' write options. Inline sourcemaps are the easiest to\nconfigure for testing. For more info [see gulp-sourcemaps' write\noptions](https://www.npmjs.com/package/gulp-sourcemaps).\n\n### compilerOptions: any\n\nYou can provide or override any compiler options avaliable to\n``gulp-typescript``, for more info\n[see the gulp-typescript project](https://github.com/ivogabe/gulp-typescript#options).\n\n# License\n\nLicensed under the [MIT license](https://github.com/lddubea/karma-typescript-agile-preprocessor/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flddubeau%2Fkarma-typescript-agile-preprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flddubeau%2Fkarma-typescript-agile-preprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flddubeau%2Fkarma-typescript-agile-preprocessor/lists"}