Refactor background page to use Typescript
Also, this CL adds clean-terminal-webpack-plugin to make it easier to
debug Typescript errors while developing the extension.
Bug: translateselectedtext:15
Change-Id: If9b97cb7508859e2e05f5dc82940808fd935bf1a
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..d22d747
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,15 @@
+{
+ "compilerOptions": {
+ "sourceMap": true,
+ "noImplicitAny": true,
+ "noImplicitReturns": true,
+ "noFallthroughCasesInSwitch": true,
+ "module": "es6",
+ "target": "es5",
+ "allowJs": true
+ },
+ "include": [
+ "src/**/*.ts",
+ "node_modules/chrome-types/*"
+ ]
+}