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
* Update the README with more installation info.
- notes on use in add-ons
- clarify the normal installation process
- clarify the way that broccoli-typescript and IDEs interact
* Add notes to README (from mike-north) on what doesn't work.
To support shipping add-ons with TypeScript, move `ember-cli-typescript` from
26
+
`devDependencies` to `dependencies` in your `package.json`.
27
+
28
+
This is a function of the way Ember CLI add-ons work, not specific to TypeScript
29
+
or this add-on. *Any* transpiler support (including this, CoffeeScript, or even
30
+
Babel) needs to be specified in the `dependencies`, not `devDependencies`, to
31
+
use it for developing the add-on itself: that's how its compiled output can be
32
+
used in consuming apps or add-ons.
19
33
20
-
All dependencies will be added to your package.json, and you're ready to roll!
21
34
22
35
## Configuration file notes
23
36
24
-
If you make changes to the paths included in your `tsconfig.json`, you will need to restart the server to take the changes into account.
37
+
If you make changes to the paths included in your `tsconfig.json`, you will need
38
+
to restart the server to take the changes into account.
39
+
40
+
### Quirks with `tsconfig.json`
25
41
26
-
### Problem ###
42
+
Additionally, depending on what you're doing, you may notice that your tweaks to
43
+
`tsconfig.json` don't get picked up by the compiler at all.
27
44
28
-
The configuration file is used by both Ember CLI/[broccoli](http://broccolijs.com/) and [VS Code](http://code.visualstudio.com/)/`tsc` command line compiler.
45
+
#### The Problem
46
+
47
+
The configuration file is used by both Ember CLI/[broccoli](http://broccolijs.com/)
48
+
and `tsc` command line compiler (used by e.g. [VS Code](http://code.visualstudio.com/),
49
+
JetBrains IDEs, etc.).
29
50
30
51
Broccoli controls the inputs and the output folder of the various build steps
31
52
that make the Ember build pipeline. Its expectation are impacted by Typescript
32
53
configuration properties like "include", "exclude", "outFile", "outDir".
33
54
34
55
We want to allow you to change unrelated properties in the tsconfig file.
35
56
36
-
###Solution ###
57
+
#### The Solution
37
58
38
59
This addon takes the following approach to allow this dual use:
39
60
@@ -45,16 +66,17 @@ This addon takes the following approach to allow this dual use:
45
66
46
67
- before calling broccoli the addon removes "outDir" and sets "noEmit" and "includes"
47
68
48
-
### Customization ###
69
+
### Customization
49
70
50
-
You can customize this file further for your use case. For example to see the
51
-
output of the compilation in a separate folder you are welcome to set and
52
-
outDir and set noEmit to false. Then VS Code and tsc will generate files here
53
-
while the broccoli pipeline will use its own temp folder.
71
+
You can customize the `tsconfig.json`file further for your use case. For
72
+
example to see the output of the compilation in a separate folder you are
73
+
welcome to set and outDir and set noEmit to false. Then VS Code and tsc will
74
+
generate files here while the broccoli pipeline will use its own temp folder.
54
75
55
-
Please see the wiki for additional how to tips from other users or to add
76
+
Please see [the wiki] for additional how to tips from other users or to add
56
77
your own tips. If an use case is frequent enough we can codify in the plugin.
0 commit comments