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.
- note,
karma startoutputs: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.jslocated @ root of project folder.- i run
karma start@ root of project folder. coffee --version: coffeescript version 1.7.1karma --version: karma version: 0.12.1karma-cli: 0.0.4karma-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
Post a Comment