crank-ui v0.3.18
Angular-cli Library builder
As the cli currently does not support the ability to build to lib
A quick search around the community gave us a yeoman generator which did not include the cli :(
So here is a combination of the two.
angular-cli
all functionality is vanilla cli, follow standard cli usage
https://github.com/angular/angular-cli
Jurgen Van de Moere's Yeoman generator
https://github.com/jvandemo/generator-angular2-library
The main files required from jvandemo's repo were:
gulpfile.js
src/app/lib/tsconfig.es5.json
Build to Lib
npm run build
npm publish library
Notes:
You do not have permission to publish 'package_name'. Are you logged in as the correct user? : package_name
If you're new to building npm packages, please note that you'll need to change the name field of your package.json to something unique on npm or you will get the above error
// src/app/lib/package.json
"name": "sample-module"
remember to update sample-module
to a name of your choice
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago