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
+25
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,31 @@ We will push new beta releases once a week, including work from the backlog. We
23
23
24
24
To participate in technical discussions and ask questions, join us in [Slack], where a number of Page Builder team members are present.
25
25
26
+
## TypeScript
27
+
This module utilises TypeScript within our adminhtml web directory. This requires an additional build step or watch command to be running during development on this module.
28
+
29
+
We use a combination of `tsc` from TypeScript and Babel 7.* with the TypeScript env. This enables us to have fast build times for the large TypeScript code base we have.
30
+
31
+
#### `npx ts:build`
32
+
Runs a single build of all TypeScript files within the defined directory. This utilises Babel with the TypeScript present.
33
+
34
+
#### `npx ts:watch`
35
+
Runs a continuous watch of files and builds them as it detects file changes.
36
+
37
+
#### `npx ts:lint`
38
+
Runs TSLint to verify linting of all TypeScript files
39
+
40
+
#### `npx ts:defs`
41
+
Generates TypeScript definitions for the whole module to be published as a types package.
42
+
43
+
#### `npx ts:errors`
44
+
Displays any TypeScript errors currently within the code base. This utilises `tsc` with the no emit flag.
45
+
46
+
#### `npx ts:errors:watch`
47
+
Same as above but watches for file changes.
48
+
49
+
#### `npx start`
50
+
Command used to start development on this module, uses `concurrently` to spawn instances of `npx ts:watch` and `npx ts:errors:watch`.
0 commit comments