We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ed2314 commit a30cd42Copy full SHA for a30cd42
1 file changed
doc/handbook/Integrating with Build Tools.md
@@ -1,5 +1,6 @@
1
Build tools
2
3
+* [Babel](#babel)
4
* [Browserify](#browserify)
5
* [Duo](#duo)
6
* [Grunt](#grunt)
@@ -9,6 +10,43 @@ Build tools
9
10
* [MSBuild](#msbuild)
11
* [NuGet](#nuget)
12
13
+# Babel
14
+
15
+### 安装
16
17
+```sh
18
+npm install @babel/cli @babel/core @babel/preset-typescript --save-dev
19
+```
20
21
+### .babelrc
22
23
+```js
24
+{
25
+ "presets": ["@babel/preset-typescript"]
26
+}
27
28
+### 使用命令行工具
29
30
31
+./node_modules/.bin/babel --out-file bundle.js src/index.ts
32
33
34
+### package.json
35
36
37
38
+ "scripts": {
39
+ "build": "babel --out-file bundle.js main.ts"
40
+ },
41
42
43
44
+### 在命令行上运行Babel
45
46
47
+npm run build
48
49
50
# Browserify
51
52
### 安装
0 commit comments