diff --git a/demo/component.ts b/demo/component.ts index 9b921d0..8201af5 100644 --- a/demo/component.ts +++ b/demo/component.ts @@ -8,7 +8,7 @@ export class App { name: string; constructor(){ this.name = 'Angular2 Electron!'; - + setTimeout(() => { this.name = 'Angular2 Electron!!!'; },1000); diff --git a/demo/main.ts b/demo/main.ts index 70b9f6a..2887747 100644 --- a/demo/main.ts +++ b/demo/main.ts @@ -1,5 +1,5 @@ import 'reflect-metadata'; -import 'zone.js/dist/zone'; +import 'zone.js/dist/zone-node'; import {bootstrap} from '../dist/main'; import {App} from './component'; diff --git a/package.json b/package.json index b753a40..95957f8 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,10 @@ "main": "index.js", "scripts": { "clean": "rimraf dist", - "typings-install": "typings install", - "setup": "npm install --no-optional && npm run typings-install", + "setup": "npm install --no-optional", "setup-demo": "npm install --no-optional angular2@2.0.0-beta.12 es6-promise@^3.1.2 es6-shim@0.35.0 reflect-metadata@0.1.2 rxjs@5.0.0-beta.2 zone.js@^0.6.6", "build": "npm run clean && tsc", - "build_demo": "tsc typings/browser.d.ts demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata", + "build_demo": "tsc demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata", "test": "echo Not supported yet", "demo": "npm run build && npm run build_demo && electron ./demo", "start": "npm run demo" @@ -29,14 +28,18 @@ }, "homepage": "https://github.com/angular/angular-electron#readme", "devDependencies": { - "electron-prebuilt": "^0.37.2", - "typescript": "^1.8.9", - "rimraf": "^2.5.2" + "@types/core-js": "^0.9.34", + "@types/electron": "^1.4.25", + "@types/node": "^6.0.46", + "electron": "^1.4.5", + "rimraf": "^2.5.2", + "typescript": "^2.0.7" }, "peerDependencies": { "angular2": "2.0.0-beta.12" }, "dependencies": { - "parse5": "^1.5.1" + "parse5": "^1.5.1", + "zone.js": "^0.6.26" } } diff --git a/tsconfig.json b/tsconfig.json index 62e4495..a1d7555 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,6 @@ "moduleResolution": "node" }, "files": [ - "typings/browser.d.ts", "./src/renderer.ts", "./src/main.ts" ] diff --git a/typings.json b/typings.json deleted file mode 100644 index 3594715..0000000 --- a/typings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "@angular2/electron", - "devDependencies": {}, - "ambientDependencies": { - "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2", - "github-electron": "github:DefinitelyTyped/DefinitelyTyped/github-electron/github-electron.d.ts#f16c4922a7dd6d359a197e4cc5103463ba68cf9e", - "node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#138ad74b9e8e6c08af7633964962835add4c91e2" - } -}