我一直在使用这些链接来使用Ng Cli创建库:
https://blog.angularindepth.com/creating-a-library-in-angular-6-87799552e7e5
https://blog.angularindepth.com/creating-a-library-in-angular-6-part-2-6e2bc1e14121
我记得第一次打包它们时使用的库是自己的node_modules文件夹,但现在却不知道该如何打包打包。现在,我不知道该怎么做。 / p>
这是该库的 package.json 文件:
{
"name": "@clc/clc-snack-bar",
"version": "0.0.13",
"peerDependencies": {
"@angular/common": "6.1.7",
"@angular/core": "6.1.7",
"@angular/material": "6.4.7",
"@angular/platform-browser": "6.1.7",
"@angular/flex-layout": "6.0.0-beta.16",
"@angular/cdk": "6.4.7",
"@angular/animations": "6.1.7",
"rxjs": "6.2.2",
"rxjs-compat": "6.2.2"
}
}
我安装的Angular Cli版本是:6.2.8