doronsever / generator-gulp-angular-subtask

A helper generator for generator-gulp-angular to create sub tasks
49 stars 19 forks source link

generator creates .js in spec folder when coffee selected #13

Open stephancom opened 8 years ago

stephancom commented 8 years ago
stephancom$ npm ls -g --depth=0 2> /dev/null | grep subtask
├── generator-gulp-angular-subtask@0.9.1
stephancom$ yo gulp-angular-subtask:factory factoryTest --script-type coffee
   create src/app/factoryTest/factories/factoryTest-factory.coffee
   create src/app/factoryTest/spec/factories/factoryTest-factory.spec.js
stephancom$ yo gulp-angular-subtask:service serviceTest
   create src/app/serviceTest/services/serviceTest-service.coffee
   create src/app/serviceTest/spec/services/serviceTest-service.spec.js

using --script-type js creates js for both as expected. Same behavior with coffeescript default and no --script-type. I see there are .coffee templates for the tests. What gives? Am I doing something wrong?

stephancom commented 8 years ago

I made a fix for this and gave you a pull request - seems to work.

doronsever commented 8 years ago

Sorry but i was mega busy at work. I will look at it next week + upgrade the generator