{"id":21906648,"url":"https://github.com/enlight/grunt-tsc","last_synced_at":"2026-04-17T17:32:09.180Z","repository":{"id":137247340,"uuid":"40312823","full_name":"enlight/grunt-tsc","owner":"enlight","description":"Grunt plugin that executes the TypeScript compiler, optionally passing in a project directory","archived":false,"fork":false,"pushed_at":"2016-02-01T08:59:58.000Z","size":125,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T07:29:34.693Z","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/enlight.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":"2015-08-06T15:35:07.000Z","updated_at":"2016-01-19T10:12:40.000Z","dependencies_parsed_at":"2023-04-24T02:54:57.889Z","dependency_job_id":null,"html_url":"https://github.com/enlight/grunt-tsc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enlight/grunt-tsc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Fgrunt-tsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Fgrunt-tsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Fgrunt-tsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Fgrunt-tsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enlight","download_url":"https://codeload.github.com/enlight/grunt-tsc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Fgrunt-tsc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31938675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-28T16:54:00.582Z","updated_at":"2026-04-17T17:32:09.154Z","avatar_url":"https://github.com/enlight.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-tsc\n\n\u003e Just executes the TypeScript compiler, passing through any options you wish to provide.\n\nGah, another TypeScript plugin for Grunt? But, WHY?! Because I wanted to set up `tsconfig.json`\nbased builds using the nightly TypeScript builds, and none of the existing TypeScript plugins fit\nthe job at the time. These days I prefer using this plugin because it's dead simple, and it lets\nme use any TypeScript compiler and compiler options I want. If you need something more fully\nfeatured I recommend using [grunt-ts](https://github.com/TypeStrong/grunt-ts).\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the\n[Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a\n[Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins.\nOnce you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-tsc --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line:\n\n```js\ngrunt.loadNpmTasks('grunt-tsc');\n```\n\n## The \"grunt-tsc\" task\n\n### Overview\nIn your project's `Gruntfile.js`, add a section named `tsc` to the data object passed into\n`grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  tsc: {\n    options: {\n      // Default options for all targets.\n    },\n    your_target: {\n      options: {\n        // Target-specific options that override default options.\n      }\n    },\n    your_other_target: {\n      options: {\n        // Target-specific options that override default options.\n      }\n    }\n  }\n});\n```\n\n### Options\n\n#### options.tscPath\nType: `string`\nDefault value: `undefined`\n\nPath to the TypeScript compiler `grunt-tsc` should use, when this is left undefined the\nglobally installed TypeScript package will be used. If you'd like to use a nightly build of\nTypeScript install `typescript@next` as a dev dependency of your package and then set `tscPath`\nto `path.resolve('node_modules', 'typescript', 'bin', 'tsc')`.\n\n#### options.tscOptions\nType: `Array\u003cstring\u003e`\nDefault value: `undefined`\n\nAdditional command line options to pass to the TypeScript compiler, these aren't checked by\n`grunt-tsc` in any way. The full list of available options is available on the\n[TypeScript Wiki](https://github.com/Microsoft/TypeScript/wiki/Compiler-Options).\n\n#### options.project\nType: `string`\nDefault value: `undefined`\n\nPath to a directory containing a `tsconfig.json`. In TypeScript 1.8+ this can be a path to\nany [TypeScript config file](https://github.com/Microsoft/TypeScript/wiki/tsconfig.json)\n(e.g. `path/to/my-es5-tsconfig.json`). Alternatively you could simply specify the\n`--project` or `-p` option in `tscOptions`.\n\n### Usage Examples\n\n#### Default Options\nIf a `project` path is not specified for a target then the TypeScript compiler will look for a\n`tsconfig.json` in the same directory as `Gruntfile.js`.\n\n```js\ngrunt.initConfig({\n  tsc: {\n    default: {}\n  }\n});\n```\n\n#### Custom Options\n\n```js\ngrunt.initConfig({\n  tsc: {\n    options: {\n      tscPath: path.resolve('node_modules', 'typescript', 'bin', 'tsc')\n    },\n    production: {\n      options: {\n        project: './tsconfig/production'\n      }\n    },\n    testing: {\n      options: {\n        project: './tsconfig/testing'\n      }\n    },\n    watchTesting: {\n      options: {\n        project: './tsconfig/testing',\n        tscOptions: ['--watch']\n      }\n    },\n    subproject1: {\n      options: {\n        project: './path-to-subproject1'\n      }\n    },\n    subproject2: {\n      options: {\n        project: './path-to-subproject2'\n      }\n    }\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenlight%2Fgrunt-tsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenlight%2Fgrunt-tsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenlight%2Fgrunt-tsc/lists"}