Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Make example buildable using distributed library (closes #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
michadvorak-cen38289 committed Feb 16, 2018
1 parent 1c101d1 commit 2f9b668
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 7 deletions.
26 changes: 25 additions & 1 deletion .angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,31 @@
"environments": {
"dev": "app/environments/environment.ts",
"hash": "app/environments/environment.hash.ts",
"remote": "app/environments/environment.remote.ts",
"prod": "app/environments/environment.prod.ts"
}
},
{
"root": "src",
"outDir": "dist/example-aot",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "app/main.ts",
"polyfills": "app/polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.aot.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"app/styles.css"
],
"scripts": [],
"environmentSource": "app/environments/environment.ts",
"environments": {
"dev": "app/environments/environment.ts",
"hash": "app/environments/environment.hash.ts",
"prod": "app/environments/environment.prod.ts"
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"start": "ng serve",
"prebuild": "ng lint && ng test --watch=false",
"build": "ng-packagr -p src/lib/ng-package.json && cpr README.md dist/angular-resource-router/README.md && cpr LICENSE dist/angular-resource-router/LICENSE",
"buildapp": "ng build --target=production --env=prod --sourcemaps",
"buildapp": "ng build --app 1 --target=production --env=prod --sourcemaps",
"test": "ng test --browsers Chrome",
"lint": "ng lint",
"predocs": "rimraf dist/docs",
Expand Down
5 changes: 0 additions & 5 deletions src/app/environments/environment.remote.ts

This file was deleted.

22 changes: 22 additions & 0 deletions src/tsconfig.aot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": ".",
"module": "es2015",
"types": [],
"paths": {
"angular-resource-router": [
"../dist/angular-resource-router"
],
"angular-resource-router/testing": [
"../dist/angular-resource-router/testing"
]
}
},
"exclude": [
"test.ts",
"**/*.spec.ts",
"lib/testing/**"
]
}

0 comments on commit 2f9b668

Please sign in to comment.