bannertime / generator-bannertime

Yeoman generator to help build and manage HTML5 banner campaigns.
https://bannertime.github.io/
58 stars 35 forks source link

fix: bannertime:copy throws error if master banner is not the same bannerType as chosen copy #43

Closed joemidi closed 8 years ago

joemidi commented 8 years ago

For example, if you have a DoubleClick banner and use yo bannertime:copy and select Sizmek in the options, you will encounter the following error:

AssertionError: Trying to copy from a source that does not exist: /Users/bannertime/Sites/test/src/test-300x250/js/AdformDHTML.js
    at EditionInterface.exports._copySingle (/Users/bannertime/Sites/generator-bannertime/node_modules/mem-fs-editor/actions/copy.js:45:3)
    at EditionInterface.exports.copy (/Users/bannertime/Sites/generator-bannertime/node_modules/mem-fs-editor/actions/copy.js:23:17)
    at Bannertime.js (/Users/bannertime/Sites/generator-bannertime/generators/copy/modules/files.js:114:15)
    at Object.<anonymous> (/Users/bannertime/Sites/generator-bannertime/node_modules/yeoman-generator/lib/base.js:436:25)
    at /Users/bannertime/Sites/generator-bannertime/node_modules/run-async/index.js:24:25
    at /Users/bannertime/Sites/generator-bannertime/node_modules/yeoman-generator/lib/base.js:448:8
    at processImmediate [as _immediateCallback] (timers.js:383:17)