Change the configuration of glob to get all the files including files in directories in the dist/<project-name/ directory.
A wrong configuration resulted in ignoring the files in subdirectories. Also, the result file paths were prefixed with '/' which needed to be removed. The fix prevents this.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How to Test
Add files to the assets folder in the Angular project.
Build the project.
Run the deploy command. Make sure the assets folder with its content is deployed.
Unit testing:
Mock a directory with files and subdirectories with files. (Empty subdirectories should not be deployed)
Test the getFiles() function in src/builders/actions/deploy.ts to return a list of files which includes the files in the subdirectory.
Description
Change the configuration of glob to get all the files including files in directories in the dist/<project-name/ directory. A wrong configuration resulted in ignoring the files in subdirectories. Also, the result file paths were prefixed with '/' which needed to be removed. The fix prevents this.
Type of change
How to Test
Unit testing:
getFiles()
function insrc/builders/actions/deploy.ts
to return a list of files which includes the files in the subdirectory.Closing issues
closes #26
Assignee
@shmool