{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/576","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/576/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/576/events","html_url":"https://github.com/wallabyjs/public/issues/576","id":152014395,"number":576,"title":"Wallaby webpack ts and js issues","user":{"login":"LPCmedia","id":5975736,"avatar_url":"https://avatars.githubusercontent.com/u/5975736?v=3","gravatar_id":"","url":"https://api.github.com/users/LPCmedia","html_url":"https://github.com/LPCmedia","followers_url":"https://api.github.com/users/LPCmedia/followers","following_url":"https://api.github.com/users/LPCmedia/following{/other_user}","gists_url":"https://api.github.com/users/LPCmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/LPCmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LPCmedia/subscriptions","organizations_url":"https://api.github.com/users/LPCmedia/orgs","repos_url":"https://api.github.com/users/LPCmedia/repos","events_url":"https://api.github.com/users/LPCmedia/events{/privacy}","received_events_url":"https://api.github.com/users/LPCmedia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wallabyjs/public/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-30T06:55:11Z","updated_at":"2016-04-30T07:57:15Z","closed_at":null,"body":"### Issue description or question\r\nNeed help with a setup for a mixed angular webpack js and ts project. \r\n\r\nThe entry file is in typescript and the modules use require.context to bundle. However, I keep getting module not found errors. \r\n\r\n### Wallaby.js configuration file\r\n\r\n```javascript\r\n'use strict';\r\n\r\n/**eslint-disable */\r\nvar chai = require('./node_modules/chai/chai.js');\r\nvar wallabyWebpack = require('wallaby-webpack');\r\nvar path = require('path');\r\nvar helpers = require('./config/helpers');\r\nvar webpack = require('webpack');\r\n\r\nmodule.exports = function(wallaby) {\r\n  var webpackPostprocessor = wallabyWebpack({\r\n    entryPatterns: [\r\n      'src/app/my.module.ts',\r\n      'test/spec-bundle.js',\r\n      'src/app/**/*.spec.js',\r\n      'src/app/**/*.spec.ts'\r\n    ],\r\n    resolve: {\r\n      context: [\r\n        path.join(wallaby.projectCacheDir, 'src')\r\n      ],\r\n      externals: {\r\n        'jquery': 'jQuery'\r\n      },\r\n      alias: {\r\n        'npm': helpers.root + '/node_modules',\r\n        'bower': helpers.root + '/bower_components',\r\n        'jquery': helpers.root + '/node_modules/jquery/dist/jquery.js',\r\n        'angular': helpers.root + '/node_modules/angular/angular.js'\r\n      },\r\n      modulesDirectories: [\r\n        path.join(__dirname, 'bower_components'),\r\n        path.join(__dirname, 'node_modules')\r\n      ]\r\n    },\r\n    module: {\r\n      loaders: [\r\n        {test: /\\.css$/, loader: 'raw-loader'}\r\n      ]\r\n    },\r\n    plugins: [\r\n      new webpack.ProvidePlugin({\r\n        $: 'jquery',\r\n        jQuery: 'jquery',\r\n        'window.jQuery': 'jquery'\r\n      }),\r\n      new webpack.NormalModuleReplacementPlugin(/\\.(html|gif|png|scss|css|sass)$/, 'node-noop')\r\n    ]\r\n\r\n  });\r\n  return {\r\n    // set `load: false` to all source files and tests processed by webpack\r\n    // (except external files),\r\n    // as they should not be loaded in browser,\r\n    // their wrapped versions will be loaded instead\r\n    files: [\r\n      {pattern: 'node_modules/angular/angular.js', instrument: false, load: true},\r\n      {pattern: 'node_modules/angular-mocks/angular-mocks.js', instrument: false, load: true},\r\n      {pattern: 'src/**/*.spec.ts', ignore: true},\r\n      {pattern: 'src/**/*.spec.js', ignore: true},\r\n      {pattern: 'node_modules/es5-shim/es5-shim.js', instrument: false },\r\n      {pattern: 'test/befoetest.js', load: false },\r\n\r\n      // TEST Lib \r\n      'node_modules/chai/chai.js',\r\n      'node_modules/chai-as-promised/lib/chai-as-promised.js',\r\n      'node_modules/sinon/pkg/sinon.js',\r\n      'node_modules/sinon-chai/lib/sinon-chai.js',\r\n      'test/bootstrap.js',\r\n//      'test/mock/**/*.module.js',\r\n//      'test/mock/**/*.js',\r\n      {pattern: 'src/app/**/*.js', load: false},\r\n      {pattern: 'src/app/**/*.ts', load: false}\r\n    ],\r\n    tests: [\r\n      {pattern: 'src/app/**/*.spec.js', load: false},\r\n      {pattern: 'src/app/**/*.spec.ts', load: false}\r\n    ],\r\n    compilers: {\r\n      'src/**/*.ts': wallaby.compilers.typeScript({})\r\n    },\r\n    testFramework: 'mocha@2.0.1',\r\n    postprocessor: webpackPostprocessor,\r\n    bootstrap: function() {\r\n      window.angular = angular;\r\n      window.expect = chai.expect;\r\n      window.__moduleBundler.loadTests();\r\n    },\r\n    debug: true\r\n  };\r\n};\r\n```\r\n\r\n### Code editor or IDE name and version\r\n\r\nVisual Studio Code v0.10.x <=\r\n\r\n### OS name and version\r\n\r\nOSX\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wallabyjs/public/issues/comments/215945261","html_url":"https://github.com/wallabyjs/public/issues/576#issuecomment-215945261","issue_url":"https://api.github.com/repos/wallabyjs/public/issues/576","id":215945261,"user":{"login":"LPCmedia","id":5975736,"avatar_url":"https://avatars.githubusercontent.com/u/5975736?v=3","gravatar_id":"","url":"https://api.github.com/users/LPCmedia","html_url":"https://github.com/LPCmedia","followers_url":"https://api.github.com/users/LPCmedia/followers","following_url":"https://api.github.com/users/LPCmedia/following{/other_user}","gists_url":"https://api.github.com/users/LPCmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/LPCmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LPCmedia/subscriptions","organizations_url":"https://api.github.com/users/LPCmedia/orgs","repos_url":"https://api.github.com/users/LPCmedia/repos","events_url":"https://api.github.com/users/LPCmedia/events{/privacy}","received_events_url":"https://api.github.com/users/LPCmedia/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T07:57:15Z","updated_at":"2016-04-30T07:57:15Z","body":"Eureka ! "}}