diff --git a/todomvc/.gitignore b/todomvc/.gitignore new file mode 100644 index 0000000..38f2474 --- /dev/null +++ b/todomvc/.gitignore @@ -0,0 +1,2 @@ +js/*.js +js/*.js.map diff --git a/todomvc/README.md b/todomvc/README.md index 5210584..969ea93 100644 --- a/todomvc/README.md +++ b/todomvc/README.md @@ -11,8 +11,8 @@ TypeScript integration points are highlighted: ## Running ``` -tsc --sourcemap js\todos.ts -start index.html +npm install +npm start ``` ## Caveats diff --git a/todomvc/package.json b/todomvc/package.json new file mode 100644 index 0000000..f16a933 --- /dev/null +++ b/todomvc/package.json @@ -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" + } +}