wulfsolter / angular2-signaturepad

Angular2 Component for szimek / signature_pad
MIT License
176 stars 157 forks source link

Angular 11 updates with project structure changes #100

Closed zainniazi closed 3 years ago

zainniazi commented 3 years ago

There are the following changes in this PR

zainniazi commented 3 years ago

Hi @wulfsolter, As per your suggestions, I have divided the PR is two sections. In this PR as explained above, I have added an Angular 11 update which interlinked with the project structure change.

Project structure changes is as per https://angular.io/guide/creating-libraries

Please have a look, I appreciate your help in releasing it because it causing problem with Angular 11 projects.

Thanks

wulfsolter commented 3 years ago

Are you prepared to release a timely patch if this PR breaks the ~18,000 weekly downloads who rely on the project currently?

I understand it may be causing problems with Angualr11, but I also see it is serving 18,000 people every week.

zainniazi commented 3 years ago

@wulfsolter Yes, I'm here to release the timely patches if needed. However, I have added the test project as well where we can run tests. I'll send the test project in next PR.

andreialecu commented 3 years ago

One option to prevent any breaking changes might be to merge this to a next branch and publish it as angular2-signaturepad@next on npm and get some feedback there before merging to master.

zainniazi commented 3 years ago

Okay, @andreialecu. I hope we release it asap in any format, this will fix angular 11 issues and the following mentioned issues https://github.com/wulfsolter/angular2-signaturepad/issues/95 https://github.com/wulfsolter/angular2-signaturepad/issues/91 https://github.com/wulfsolter/angular2-signaturepad/issues/78

wulfsolter commented 3 years ago

thanks @andreialecu

Is published on tag 'next'

┌─[wulf@WULF-THINKPAD]-[2020-11-28 10:50 - 1606513852]-[~/code/foo]
└─[$]-> npm install angular2-signaturepad@next

+ angular2-signaturepad@3.0.0-beta
added 14 packages from 10 contributors and audited 14 packages in 12.15s
found 0 vulnerabilities

@zainniazi let me know if @next is working for you.

zainniazi commented 3 years ago

@wulfsolter I just checked and it seems like we have published the root directory. Here are the guidelines for the new structure https://angular.io/guide/creating-libraries

These are the commands you are going to need

ng build angular2-signaturepad --prod
cd dist/angular2-signaturepad
npm publish
wulfsolter commented 3 years ago

thanks @zainniazi! have republished tag next

zainniazi commented 3 years ago

@wulfsolter Thanks for the update. There is only one change required which is to rename Angular2SignaturepadModule to SignaturePadModule, I have updated it. Rest of it working perfectly on Angular 8-11.

As we merge this, I'll send another PR with the demo project in it.

wulfsolter commented 3 years ago

Thanks man, republished!

zainniazi commented 3 years ago

Hi @wulfsolter, I just checked the latest published version and I think we might have released the wrong folder. Instead of dist/angular2-signaturepad, it seems like its from projects/angular2-signaturepad

https://github.com/wulfsolter/angular2-signaturepad/pull/100#issuecomment-735190634

wulfsolter commented 3 years ago

ah gosh damn it, sorry!

Republished!

zainniazi commented 3 years ago

@wulfsolter Thanks, works perfectly now.

zainniazi commented 3 years ago

Hi @wulfsolter, It seems we don't have any issues reported regarding our latest beta release. Should we plan to release it on the normal stream?

wulfsolter commented 3 years ago

Thanks @zainniazi :) Published as 3.0.4