coffeescript - How is it possible that .coffee files are being included directly by karma even though I have preproccessors defined in my karma.conf? -


question

how possible .coffee files being included directly index.html (like this: <script type="text/javascript" src="/base/specs/demo.coffee"></script>) karma though have preproccessors: {'**/*.coffee': 'coffee'} defined in karma.conf.js? appears not being preprocessed. how can make them preprocessed?

background

  • my karma.conf.js
    • note, basepath: ''
    • also, different revisions of gist show different variations tried, none successful.
  • karma start outputs:

    info [karma]: karma v0.12.1 server started @ http://localhost:9876/ info [launcher]: starting browser chrome info [chrome 33.0.1750 (mac os x 10.9.2)]: connected on socket sdb2-ko0hajpmpqhbjej   id 81292980 chrome 33.0.1750 (mac os x 10.9.2) error   uncaught syntaxerror: unexpected token >   @ /path/to/repo/specs/demo.coffee:1  chrome 33.0.1750 (mac os x 10.9.2) error   uncaught syntaxerror: unexpected string   @ /path/to/repo/specs/nglodashspec.coffee:1  ...
  • karma.conf.js located @ root of project folder.

  • i run karma start @ root of project folder.
  • coffee --version: coffeescript version 1.7.1
  • karma --version: karma version: 0.12.1
  • karma-cli: 0.0.4
  • karma-coffee-preprocessor: 0.2.1

there lot of things might relevant, if miss above list, tell me , i'll add it!

as per comment on vojta's answer, question contains significant spelling error:

preproccessors should preprocessors

(posing answer question can tidied up)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -