Last active
June 17, 2018 07:16
-
-
Save mohanramphp/27f84ebeea77f1c0d99a366ea255bb3e to your computer and use it in GitHub Desktop.
This is to show the commands to built angular component library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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