johnsoftek / plugin-jade

Jade loader plugin for jspm
MIT License
13 stars 5 forks source link

running test with Karma #3

Closed gavriguy closed 9 years ago

gavriguy commented 9 years ago

Hi, Any idea how can I config Karma (karma.conf.js) to support js files that import jade files through plugin-jade.

I've tried using karma-jade-preprocessor but with no luck I get Uncaught Error loading "app/app.jade!github:johnsoftek/plugin-jade@0.2.0"

here is my conf file for reference: https://gist.github.com/gavriguy/7c55db0263ef367787aa/ca4547dd05a878f73dbc2c64e97a37d2d0a0a2f6

johnsoftek commented 9 years ago

Please try plugin-jade@0.4.0

gavriguy commented 9 years ago

Thanks I managed to make it work by adding the serveFiles options to the jspm config:

  jspm: {
        // Edit this to your needs
        serveFiles: [
          'app/**/*.jade',
          'app/**/*.css'
        ],
        loadFiles: [
          'app/**/*.js'
        ]
    },

see the update gist: https://gist.github.com/gavriguy/7c55db0263ef367787aa/revisions