diff --git a/.gitignore b/.gitignore index 70e1670..355ff70 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ upload.sh !docs/**/*.js.map docs/CNAME + +*.metadata.json diff --git a/.npmignore b/.npmignore index 2656a81..4a84b66 100644 --- a/.npmignore +++ b/.npmignore @@ -14,3 +14,5 @@ config/ scripts/ server/ Makefile + +!*.metadata.json diff --git a/Makefile b/Makefile index 7bebb32..b71e2ed 100644 --- a/Makefile +++ b/Makefile @@ -16,5 +16,6 @@ build: npm run build publish: + npm run ngc tsc -d npm publish --registry http://registry.npmjs.org diff --git a/package.json b/package.json index 43834e0..2ecaf2a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/doxiaodong/ng2-clip" }, - "version": "1.0.0-beta.0", + "version": "1.0.0-beta.1", "license": "MIT", "scripts": { "tslint": "tslint", @@ -15,7 +15,8 @@ "server:dev:hmr": "npm run server:dev -- --inline --hot", "build": "npm run clean && webpack --config config/webpack.prod.js --progress --profile --bail", "clean": "rm -rf docs", - "start": "npm run server:dev:hmr" + "start": "npm run server:dev:hmr", + "ngc": "ngc" }, "dependencies": { "clipboard": "^1.5.16" @@ -23,6 +24,7 @@ "devDependencies": { "@angular/common": "^2.4.1", "@angular/compiler": "^2.4.1", + "@angular/compiler-cli": "^2.4.1", "@angular/core": "^2.4.1", "@angular/forms": "^2.4.1", "@angular/platform-browser": "^2.4.1", @@ -39,7 +41,7 @@ "raw-loader": "^0.5.1", "rxjs": "^5.0.2", "tslint": "^4.2.0", - "typescript": "^2.1.4", + "typescript": "2.0.10", "typescript-formatter": "^4.0.1", "webpack": "2.2.0-rc.3", "webpack-dev-server": "2.2.0-rc.0", diff --git a/tsconfig.json b/tsconfig.json index f5bb849..1deab62 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,6 +21,10 @@ "forkChecker": true, "useWebpackText": true }, + "angularCompilerOptions": { + "strictMetadataEmit": true, + "skipTemplateCodegen": true + }, "compileOnSave": false, "buildOnSave": false, "atom": {