Skip to content

Instantly share code, notes, and snippets.

@mohanramphp
Created June 17, 2018 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohanramphp/31489e0ee260c176410800b3ab14864c to your computer and use it in GitHub Desktop.
Save mohanramphp/31489e0ee260c176410800b3ab14864c to your computer and use it in GitHub Desktop.
To show how library is configured with the angular.json file
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular-component-library": {
"root": "",
"sourceRoot": "src",
...
...
},
"angular-component-library-e2e": {
"root": "e2e/",
"projectType": "application",
...
...
},
"ratify": {
"root": "projects/ratify",
"sourceRoot": "projects/ratify/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ratify/tsconfig.lib.json",
"project": "projects/ratify/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/ratify/ng-package.prod.json"
}
}
},
...
...
}
}
},
"defaultProject": "angular-component-library"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment