Skip to content

Commit 943849c

Browse files
committed
initial commit
0 parents  commit 943849c

8 files changed

+113
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
.vscode/

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# TypeScript-Getting-Started
2+
3+
This is the official repository for my Pluralsight course titled [*TypeScript: Getting Started*](https://app.pluralsight.com/library/courses/typescript-getting-started/table-of-contents).
4+
The *master* branch contains code as it
5+
exists at the start of the course. There are separate branches named after the modules in the course that contain the code as it
6+
exists at the end of that module.
7+
8+
I will update this repo below with any problems or small issues reported between updates to the actual course.
9+
10+
Thanks for watching and good luck on your TypeScript projects!

app/app.ts

Whitespace-only changes.

css/united.bootstrap.min.css

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

favicon.png

715 Bytes
Loading

index.html

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<html>
2+
<head lang="en">
3+
<meta charset="UTF-8">
4+
<link rel="stylesheet" href="css/united.bootstrap.min.css">
5+
<link rel="icon" type="image/png" href="favicon.png">
6+
<title>MultiMath</title>
7+
</head>
8+
<body>
9+
10+
<nav class="navbar navbar-default">
11+
<div class="container-fluid">
12+
<div class="navbar-header">
13+
<span class="navbar-brand">MultiMath</span>
14+
</div>
15+
</div>
16+
</nav>
17+
18+
<div class="form-horizontal" id="nameform">
19+
<div class="form-group">
20+
<label for="playername" class="col-sm-2 control-label">Player Name</label>
21+
<div class="col-sm-2">
22+
<input type="text" class="form-control" id="playername" size="20" placeholder="Player Name" />
23+
</div>
24+
</div>
25+
26+
<div class="form-group">
27+
<label for="factor" class="col-sm-2 control-label">Factor</label>
28+
<div class="col-sm-2">
29+
<input type="text" class="form-control" id="factor" size="20" value="5" placeholder="Factor" />
30+
</div>
31+
</div>
32+
33+
<div class="form-group">
34+
<label for="problemCount" class="col-sm-2 control-label">Number of Problems</label>
35+
<div class="col-sm-2">
36+
<input type="text" class="form-control" id="problemCount" size="20" placeholder="Number of Problems" />
37+
</div>
38+
</div>
39+
40+
<div class="form-group">
41+
<div class="col-sm-offset-2 col-sm-10">
42+
<button class="btn btn-primary" id="startGame">Start Game</button>
43+
<button class="btn btn-success" id="calculate" disabled>Calculate Score</button>
44+
</div>
45+
</div>
46+
</div>
47+
48+
<div class="form-horizontal" id="game"></div>
49+
50+
<div class="col-sm-offset-2 col-sm-10" id="scores">
51+
<h2>Scoreboard</h2>
52+
<h4>No scores yet</h4>
53+
</div>
54+
55+
<div class="col-sm-offset-2 col-sm-10" id="messages"></div>
56+
57+
<!-- add script tags here -->
58+
59+
60+
</body>
61+
</html>

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "multimath",
3+
"version": "4.0.0",
4+
"description": "Simple math game built with TypeScript.",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "webpack-dev-server"
8+
},
9+
"author": "Brice Wilson",
10+
"license": "ISC",
11+
"devDependencies": {
12+
"webpack": "4.38.0",
13+
"webpack-cli": "3.3.6",
14+
"webpack-dev-server": "3.7.2"
15+
}
16+
}

webpack.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
entry: './app/app.ts',
3+
devtool: 'inline-source-map',
4+
resolve: {
5+
extensions: [ '.tsx', '.ts', '.js' ]
6+
},
7+
output: {
8+
filename: 'bundle.js'
9+
},
10+
devServer: {
11+
inline: false
12+
}
13+
};

0 commit comments

Comments
 (0)