Skip to content

Commit

Permalink
build: add ngc to build process for aot (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Supamiu committed Aug 10, 2017
1 parent fb2cb6b commit 116be83
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 2 deletions.
67 changes: 66 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "./index.d.ts",
"scripts": {
"build:umd": "webpack --config webpack.config.umd.ts",
"build:dist": "npm run build:umd",
"build:dist": "npm run build:umd && npm run build:ngc",
"build:ngc": "ngc -p tsconfig-ngc.json",
"build:clean": "del-cli dist",
"test": "karma start --single-run && npm run build:dist && npm run build:clean",
"test:watch": "karma start --auto-watch",
Expand Down Expand Up @@ -48,6 +49,9 @@
},
"homepage": "https://github.com/kaiu-lab/serializer#readme",
"devDependencies": {
"@angular/compiler": "^4.3.3",
"@angular/compiler-cli": "^4.3.3",
"@angular/core": "^4.3.3",
"@types/chai": "^4.0.0",
"@types/mocha": "^2.2.41",
"@types/node": "^8.0.10",
Expand All @@ -72,6 +76,7 @@
"karma-webpack": "^2.0.1",
"mocha": "^3.3.0",
"reflect-metadata": "^0.1.10",
"rxjs": "^5.0.1",
"sinon": "^3.1.0",
"sinon-chai": "^2.8.0",
"standard-version": "^4.0.0",
Expand Down
28 changes: 28 additions & 0 deletions tsconfig-ngc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
"declaration": true,
"experimentalDecorators": true,
"baseUrl": "",
"stripInternal": true,
"outDir": "./dist",
"sourceMap": true,
"inlineSources": true,
"types": [],
"lib": [
"es2015",
"dom"
]
},
"files": [
"src/index.ts"
],
"angularCompilerOptions": {
"strictMetadataEmit": true,
"genDir": "./dist/",
"skipTemplateCodegen": true,
"debug": true
}
}

0 comments on commit 116be83

Please sign in to comment.