Skip to content

Instantly share code, notes, and snippets.

@mohanramphp
Last active June 17, 2018 07:16
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/27f84ebeea77f1c0d99a366ea255bb3e to your computer and use it in GitHub Desktop.
Save mohanramphp/27f84ebeea77f1c0d99a366ea255bb3e to your computer and use it in GitHub Desktop.
This is to show the commands to built angular component library
{
"name": "angular-component-library",
"version": "0.0.0",
"scripts": {
"prestart": "npm install",
"ng": "ng",
"start": "ng serve",
...
...
"build-lib": "ng build --prod ratify", // To built the library for production
"npm-pack": "cd dist/ratify && npm pack", // This command is to pack the library as .tgz for local npm installation from .tgz file
"package": "npm run build-lib && npm run npm-pack" // This command sequence the execution of above
},
"private": true,
"dependencies": {
"@angular/common": "^6.0.3", // Peer dependencies for angular-ratify library
"@angular/core": "^6.0.3", // Peer dependencies for angular-ratify library
"font-awesome": "^4.7.0" // Peer dependencies for angular-ratify library
...
...
},
"devDependencies": {
...
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment