Skip to content

Commit

Permalink
Add a package.json file to run the TodoMVC example
Browse files Browse the repository at this point in the history
fix Microsoft/TypeScriptSamples/microsoft#146
  • Loading branch information
ryanbraganza committed Oct 13, 2018
1 parent 1a9d4f9 commit ad4118f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions todomvc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
js/*.js
js/*.js.map
4 changes: 2 additions & 2 deletions todomvc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ TypeScript integration points are highlighted:

## Running
```
tsc --sourcemap js\todos.ts
start index.html
npm install
npm start
```

## Caveats
Expand Down
18 changes: 18 additions & 0 deletions todomvc/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "typescript-todomvc",
"version": "1.0.0",
"description": "TodoMVC/TypeScript demo",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/TypeScriptSamples.git"
},
"dependencies": {
"http-server": "^0.11.1"
},
"devDependencies": {
"typescript": "^3.0.0"
},
"scripts": {
"start": "tsc && http-server -o"
}
}

0 comments on commit ad4118f

Please sign in to comment.