{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/316","labels_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/316/comments","events_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/316/events","html_url":"https://github.com/TypeStrong/grunt-ts/issues/316","id":123324033,"number":316,"title":"Configuration options are confusing","user":{"login":"korya","id":148461,"avatar_url":"https://avatars.githubusercontent.com/u/148461?v=3","gravatar_id":"","url":"https://api.github.com/users/korya","html_url":"https://github.com/korya","followers_url":"https://api.github.com/users/korya/followers","following_url":"https://api.github.com/users/korya/following{/other_user}","gists_url":"https://api.github.com/users/korya/gists{/gist_id}","starred_url":"https://api.github.com/users/korya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korya/subscriptions","organizations_url":"https://api.github.com/users/korya/orgs","repos_url":"https://api.github.com/users/korya/repos","events_url":"https://api.github.com/users/korya/events{/privacy}","received_events_url":"https://api.github.com/users/korya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T17:38:51Z","updated_at":"2015-12-21T17:52:36Z","closed_at":null,"body":"Hi guys,\r\n\r\nI really don't get it. What is the **correct** `typescript` configuration that is equivalent to:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  config: {\r\n    tmp: 'build/tmp',\r\n  },\r\n  typescript: {\r\n    all: {\r\n      expand: true,\r\n      cwd: 'app/',\r\n      src: 'app/**/*.ts',\r\n      dest: '<%= config.tmp %>/',\r\n    },\r\n  },\r\n});\r\n``` \r\n\r\nWhat I want to achieve is:\r\n```\r\n  app/m1/a.ts ---> build/tmp/m1/a.js\r\n  app/m2/b.ts ---> build/tmp/m2/b.js\r\n  etc.\r\n```\r\n\r\nThe problems that I have:\r\n - `cwd` options is not supported.\r\n - `dest` is not honoured\r\n\r\nI tried \r\n\r\n```js\r\ngrunt.initConfig({\r\n  typescript: {\r\n    all: {\r\n      options: {\r\n        rootDir: 'app/',\r\n      },\r\n      expand: true,\r\n      src: 'app/**/*.ts',\r\n      outDir: '<%= config.web.tmp %>/',\r\n    },\r\n  },\r\n});\r\n```\r\n\r\nBut it did not work."},"comment":{"url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/comments/166373264","html_url":"https://github.com/TypeStrong/grunt-ts/issues/316#issuecomment-166373264","issue_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/316","id":166373264,"user":{"login":"korya","id":148461,"avatar_url":"https://avatars.githubusercontent.com/u/148461?v=3","gravatar_id":"","url":"https://api.github.com/users/korya","html_url":"https://github.com/korya","followers_url":"https://api.github.com/users/korya/followers","following_url":"https://api.github.com/users/korya/following{/other_user}","gists_url":"https://api.github.com/users/korya/gists{/gist_id}","starred_url":"https://api.github.com/users/korya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korya/subscriptions","organizations_url":"https://api.github.com/users/korya/orgs","repos_url":"https://api.github.com/users/korya/repos","events_url":"https://api.github.com/users/korya/events{/privacy}","received_events_url":"https://api.github.com/users/korya/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T17:52:35Z","updated_at":"2015-12-21T17:52:35Z","body":"OK, I should remove the `expand` options. The following config works as expected:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  typescript: {\r\n    all: {\r\n      options: {\r\n        rootDir: 'app/',\r\n      },\r\n      // expand: true,     <--- removed\r\n      src: 'app/**/*.ts',\r\n      outDir: '<%= config.web.tmp %>/',\r\n    },\r\n  },\r\n});\r\n```"}}