generator-gulp-angular-subtask icon indicating copy to clipboard operation
generator-gulp-angular-subtask copied to clipboard

generator creates .js in spec folder when coffee selected

Open stephancom opened this issue 10 years ago • 2 comments
trafficstars

stephancom$ npm ls -g --depth=0 2> /dev/null | grep subtask
├── [email protected]
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 avatar Oct 22 '15 00:10 stephancom

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

stephancom avatar Oct 22 '15 02:10 stephancom

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

doronsever avatar Apr 25 '16 07:04 doronsever