Repository navigation
Expand file tree
/
Copy pathdocumentation.en.tsx
More file actions
261 lines (230 loc) · 6.81 KB
/
Copy pathdocumentation.en.tsx
File metadata and controls
261 lines (230 loc) · 6.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
import React from "react"
import { Layout } from "../components/layout"
import "./css/documentation.scss"
import { ButtonGrid, GridProps } from "../components/display/ButtonGrid"
import { Intl } from "../components/Intl"
const headlineGrid: GridProps = {
buttons: [
{
title: "TS in 5m",
href: "/docs/handbook/typescript-in-5-minutes.html",
blurb: "5 minute overview of the language",
}, {
title: "TS Tooling",
href: "/docs/handbook/typescript-in-5-minutes.html",
blurb: "5 minute overview of the tooling",
}, {
title: "Handbook",
href: "/docs/handbook/basic-types.html",
blurb: "The TypeScript language reference",
}, {
title: "Examples",
href: "/play/index.html?#show-examples",
blurb: "Comprehensive hands-on playground tutorials",
}
],
headline: true
}
const apis = [
{
href: "https://code.visualstudio.com/tutorials/functions-extension/getting-started",
blurb: "Build and deploy from VS Code in minutes",
title: "Azure Functions"
},
{
href: "https://feathersjs.com",
blurb: "A framework for real-time applications and REST APIs",
title: "Feathers JS"
},
{
href: "https://github.com/graphql-boilerplates/typescript-graphql-server",
blurb: "Bootstrap your GraphQL server within seconds",
title: "GraphQL"
},
{
href: "https://nestjs.com",
blurb: "A progressive Node.js framework for building efficient and scalable server-side applications",
title: "Nest JS"
},
{
href: "https://github.com/Microsoft/TypeScript-Node-Starter",
blurb: "A documented starter template from the TS team",
title: "Node Starter"
},
{
href: "https://github.com/microsoft/TypeScript-WeChat-Starter/blob/master/README.md",
badge: "Guide",
blurb: "Use the WeChat JSSDK with TypeScript",
title: "WeChat"
}
]
const webFrameworks = [
{
href: "/docs/handbook/typescript-in-5-minutes.html",
blurb: "Makes writing beautiful apps be joyful and fun",
title: "Angular"
},
{
href: "https://reactjs.org",
badge: "Examples below",
blurb: "A JavaScript library for building user interfaces",
title: "React"
},
{
href: "https://vuejs.org",
blurb: "The Progressive JavaScript Framework",
title: "Vue"
},
{
href: "https://github.com/typescript-ruby/typescript-rails",
badge: "Plugin",
blurb: "Convention over configuration web framework",
title: "Ruby on Rails"
},
{
href: "https://www.typescriptlang.org/docs/handbook/asp-net-core.html",
badge: "Guide",
blurb: "Framework for building modern, cloud-based, Internet-connected applications",
title: "ASP.NET Core"
},
]
const nodeNPM = [
{
href: "https://github.com/jaredpalmer/tsdx#readme",
blurb: "Zero config tool for building TypeScript libraries",
title: "TSDX"
},
{
href: "https://oclif.io",
blurb: "Create command line tools your users love",
title: "oclif"
},
{
href: "https://github.com/infinitered/gluegun#readme",
blurb: "A delightful toolkit for building TypeScript-powered command-line apps",
title: "Gluegun"
}
]
const react = [
{
href: "https://create-react-app.dev",
blurb: "Set up a modern web app by running one command",
title: "Create React App"
},
{
href: "https://www.gatsbyjs.org",
badge: "Plugin",
blurb: "Helps developers build blazing fast websites and apps",
title: "Gatsby"
},
{
href: "https://nextjs.org",
blurb: "The React Framework",
title: "Next.js"
},
{
href: "https://github.com/jaredpalmer/razzle",
blurb: "Server-rendered universal JavaScript applications with no configuration",
title: "Razzle"
},
{
href: "https://reactjs.org/community/starter-kits.html",
blurb: "Recommendations from the React Team",
title: "Starter Kits"
}
]
const apps = [
{
href: "https://babeljs.io/docs/en/babel-preset-typescript",
badge: "Plugin",
blurb: "Set up a modern web app by running one command",
title: "Electron"
},
{
href: "https://expo.io/",
blurb: "The fastest way to build an app",
title: "Expo"
},
{
href: "https://facebook.github.io/react-native/",
blurb: "Learn once, write anywhere",
title: "React Native"
},
{
href: "https://www.nativescript.org/",
blurb: "Open source framework for building truly native mobile apps",
title: "NativeScript"
},
{
href: "https://www.microsoft.com/en-us/makecode/",
blurb: "Brings computer science to life for all students with fun projects",
title: "MakeCode"
}
]
const tooling = [
{
href: "https://babeljs.io/docs/en/babel-preset-typescript",
badge: "Plugin",
blurb: "Use next generation JavaScript, today",
title: "Babel"
},
{
href: "https://parceljs.org",
blurb: "Blazing fast, zero configuration web application bundler",
title: "Parcel"
},
{
href: "https://webpack.js.org/guides/typescript/",
badge: "Plugin",
blurb: "Bundle your assets, scripts, images and styles",
title: "Webpack"
}
]
const learn = [
{
href: "/docs/handbook/release-notes/typescript-3-5.html",
blurb: "3.5 Release Notes",
title: "Release Notes"
},
{
href: "/docs/handbook/basic-types.html",
blurb: "The TypeScript language reference",
title: "Handbook"
},
{
href: "/docs/handbook/declaration-files/introduction.html",
blurb: "Learn how to declare the shape of JS",
title: "d.ts Guide"
},
{
href: "/play/index.html",
blurb: "Explore and share TypeScript online",
title: "Playground"
}
]
const Index = () =>
<Layout title="The starting point for learning TypeScript" description="Find TypeScript starter projects: from Angular to React or Node.js and CLIs." >
<div id="documentation" className="raised" style={{ backgroundColor: "white", maxWidth: 960, margin: "1rem auto", padding: "2rem" }}>
<h1>Start Learning</h1>
<ButtonGrid {...headlineGrid} />
<h1>Start a Project</h1>
<p>Because TypeScript is a super-set of JavaScript, it doesn't have a default template - there would be too many.
Instead, other projects have their own TypeScript bootstrap templates with their own context. These projects provide
templates which include TypeScript support.</p>
<h2>Node with NPM</h2>
<ButtonGrid buttons={nodeNPM} />
<h2>Web Frameworks</h2>
<ButtonGrid buttons={webFrameworks} />
<h2>Node APIs</h2>
<ButtonGrid buttons={apis} />
<h2>React Projects</h2>
<ButtonGrid buttons={react} />
<h2>Building Apps</h2>
<ButtonGrid buttons={apps} />
<h2>Tooling</h2>
<ButtonGrid buttons={tooling} />
<h1>Familiar With TypeScript already?</h1>
<ButtonGrid buttons={learn} />
</div >
</Layout >
export default (props: any) => <Intl><Index {...props} /></Intl>