Skip to content

Commit 1256b8e

Browse files
committed
Migrated to Webpack, MobX
1 parent c1ae765 commit 1256b8e

13 files changed

+2449
-7207
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules/
2-
typings/
3-
public/js/bundle.js
2+
static/bundle.js

README.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
# React-TypeScript
22

3-
Minimal boilerplate for a single-page app using Mobservable, Mobservable-React, React, TypeScript 1.6 with TSX, and Visual Studio Code.
3+
Minimal boilerplate for a single-page app using MobX, React and TypeScript with TSX.
44

5-
Initial install:
5+
Initial run:
66

77
* Install Node.js
8-
* `npm install -g tsd`
98
* `npm install`
10-
* `tsd install`
11-
12-
Build:
13-
14-
* `npm run build`
15-
16-
To view the app:
17-
189
* `npm start`
19-
20-
## Credits
21-
22-
This repo has been forked from the [React Typescript boilerplate](https://github.com/bvanreeven/react-typescript) repo.

index.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<head>
3+
<title>MobX Boilerplate</title>
4+
</head>
5+
<body>
6+
<div id="root"></div>
7+
<script src="/static/bundle.js"></script>
8+
</body>
9+
</html>

package.json

+30-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
11
{
2-
"name": "mobservable-react-typescript",
2+
"name": "mobx-react-typescript-boilerplate",
33
"version": "1.0.0",
4-
"description": "Minimal boilerplate for a single-page app using React, TypeScript with JSX (TSX), and Visual Studio Code.",
4+
"description": "Boilerplate for MobX + React project with Typescript, ES6 compilation and hot code reloading",
5+
"scripts": {
6+
"start": "node server.js"
7+
},
58
"repository": {
69
"type": "git",
7-
"url": "https://github.com/mweststrate/mobservable-react-typescript.git"
10+
"url": "https://github.com/mobxjs/mobx-react-typescript-boilerplate.git"
811
},
9-
"main": "index.js",
10-
"dependencies": {
11-
"mobservable": "^1.1.4",
12-
"mobservable-react": "^2.1.0",
13-
"mobservable-react-devtools": "^2.0.4",
14-
"react": "^0.14",
15-
"react-dom": "^0.14"
12+
"keywords": [
13+
"react",
14+
"reactjs",
15+
"boilerplate",
16+
"mobx",
17+
"starter-kit"
18+
],
19+
"author": "Michel Weststrate <[email protected]> (http://github.com/mweststrate)",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/mobxjs/mobx/issues"
1623
},
24+
"homepage": "http://mobxjs.github.com/mobx",
1725
"devDependencies": {
18-
"browserify": "^11.1.0",
19-
"http-server": "^0.8.5",
20-
"tsify": "^0.13.1",
21-
"typescript": "^1.6.2"
26+
"react-hot-loader": "^1.2.7",
27+
"ts-loader": "^0.8.1",
28+
"typescript": "^1.8.2",
29+
"webpack": "^1.9.6",
30+
"webpack-dev-server": "^1.8.2"
2231
},
23-
"scripts": {
24-
"build": "browserify src/index.tsx -p tsify -o public/js/bundle.js",
25-
"start": "cd public && http-server -o index.html"
26-
},
27-
"author": "Michel Weststrate",
28-
"license": "MIT"
32+
"dependencies": {
33+
"mobx": "^2.0.0",
34+
"mobx-react": "^3.0.0",
35+
"mobx-react-devtools": "^4.0.0",
36+
"react": "^0.14.0",
37+
"react-dom": "^0.14.0"
38+
}
2939
}

0 commit comments

Comments
 (0)