You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,19 +248,19 @@ grunt.initConfig({
248
248
249
249
#### reference
250
250
251
-
Grunt-ts can generate a reference TypeScript file which will contains a reference to all other found `.ts` files.
252
-
253
-
This means that the developer will not need to cross-reference files manually; instead they can just reference `reference.ts`.
251
+
Grunt-ts can automatically generate a TypeScript file containing a reference to all other found `.ts` files. This means that the developer will not need to cross-reference each of their TypeScript files manually; instead, they can just reference the single `reference` file in each of their code files.
254
252
255
253
````javascript
256
254
grunt.initConfig({
257
255
ts: {
258
256
default: {
257
+
src: ["references.ts","some/other/path/**/*.ts"],
259
258
reference:"references.ts"
260
259
}
261
260
}
262
261
});
263
262
````
263
+
**Note:** the TypeScript file identified in the `reference` property *must* be included in the `src` or `files` property in the Grunt target, or `reference` won't work (either directly or via wildcard/glob).
264
264
265
265
*Warning:* Using the compiler with `out` and `reference` will prevent grunt-ts from using its fast compile feature. Consider using external modules with transforms instead.
0 commit comments