angular-seed icon indicating copy to clipboard operation
angular-seed copied to clipboard

copy images results in ePerm error for build.dev

Open keslavi opened this issue 10 years ago • 5 comments

adding *.jpg, *.png to /app causes build to fail.

in reading through tickets, tried to include images in various folders as indicated; build fails with a message about unable to open.

Expected/desired behavior image files are copied to same relative location in dist/dev|prod folder

keslavi avatar Sep 09 '16 03:09 keslavi

Hey, thanks for the issue! Please share some more details:

How does the build fail? What message do you get? How do you copy the resources?

mgechev avatar Sep 09 '16 03:09 mgechev

  1. npm start
  2. copy using windows explorer to move the files to /apps/img
    • initially everything appears to work.
  3. stop and run npm start again
  4. observe error: occurs on different files when run regardless of type (jpg|png)

files are copied, error seems to occur after first copy.

npm-debug.log.txt

console.txt

keslavi avatar Sep 09 '16 13:09 keslavi

root cause:
1. clean.dev is commented initially in build.dev 2. coder was up too late and needed rest .then(coffee)

perhaps clean.dev should not be commented initially, or a more friendly error message somehow? This seems like it will become a common issue that would be perceived as an error as the seed is adopted.

// -------------- // Build dev. gulp.task('build.dev', (done: any) => runSequence(//'clean.dev', // 'tslint', // 'css-lint', 'build.assets.dev', 'build.html_css', 'build.js.dev', 'build.index.dev', done));

tslint, css-lint makes potential sense to have commented; maybe clean.dev should be uncommented by default.

that resolves my issue, though it could be a problem in a different or larger project than mine. I'll let you determine whether to close.

Thanks!

keslavi avatar Sep 09 '16 14:09 keslavi

Yes, the dist/dev directory gets cleaned each time you change any of the watched fines in app. You need to add a gulp task which copies the resources you need.

mgechev avatar Sep 09 '16 16:09 mgechev

um, negative. currently, by default, it does NOT get cleaned. I had to uncomment the clean statement. As is, the build correctly copied the files once the clean statement was uncommented.

by default gulp.task('build.dev', (done: any) => runSequence(//'clean.dev',

should probably be: gulp.task('build.dev', (done: any) => runSequence('clean.dev',

keslavi avatar Sep 10 '16 15:09 keslavi