I'm creating a build script using npm.
The build script includes typescript compiling.
The typescript compiling copies the folder structure from a ts folder to a dist/js folder.
The ts folder is like
"build:copy-html": "find ./app/ts -name '*.html' cp ./dist/js \\;",
I usually do the following:
(cd app/ts; tar -cf - `find . -name '*.html' `) | (cd app/dist/js ; tar -xf -)
I suppose that you want to copy all the '*.html' files from
app/js directory keeping the directory structure and there are no spaces in the file names.
There are some more methods.
cpio combination usually appears in the manual page of
find like here: https://linux.die.net/man/1/find