File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,18 @@ Scalable JavaScript development with types, classes and modules.
36
36
37
37
## Usage
38
38
39
- tsc --module commonjs hello .ts
39
+ tsc --module commonjs index .ts
40
40
or:
41
41
42
- tsc --module amd hello .ts
42
+ tsc --module amd index .ts
43
43
44
44
The ` --module ` flag is required when using DCI because some features are achieved at runtime, so the ` typescript-dci/dci ` module
45
45
needs to be available to every DCI program. For server-side or desktop programs, use ` commonjs ` and it should work out of the box.
46
46
47
47
To generate client-side code that will run in the browser, use ` amd ` to compile your project into [ AMD] ( http://requirejs.org/docs/whyamd.html )
48
48
modules. You will also need to ensure that your project has access to the ` typescript-dci/dci ` module. To do this, copy the
49
- file ` typescript-dci/dci/dci-amd.js ` to your project directory and rename it to ` dci.js ` . In the future this process will be
50
- simplified.
49
+ file ` typescript-dci/dci/dci-amd.js ` to your project as ` typescript- dci/dci .js` (relative to
50
+ the root directory of your project). In the future this process will be simplified.
51
51
52
52
In order to run the client-side code you will need an AMD loader. Some good AMD loaders include:
53
53
You can’t perform that action at this time.
0 commit comments