Yes, a few folks have done it. Off the top of my head Ozzy and 7-11 among others, if memory serves. What are you thinking, ebike and 2 stroke or some thing like that? Post lots of pics!
I always thought a hub motor with a 4 smoker would be the perfect set up. Use the hub motor as back up and use a solar charger. Dunno but would be cool.