UNPKG

angular-webpack-quickstart

Version:

Angular QuickStart with Webpack 2 - source from the documentation.

73 lines (59 loc) 2.56 kB
module.exports = function (config) { var appBase = 'src/'; // transpiled app JS and map files var appSrcBase = appBase; // app source TS files // Testing helpers (optional) are conventionally in a folder called `testing` var testingBase = appBase; // transpiled test JS and map files var testingSrcBase = testingBase; // test source TS files config.set({ basePath: '', frameworks: ['jasmine'], // plugins: [ // require('karma-jasmine'), // require('karma-chrome-launcher'), // require('karma-jasmine-html-reporter') // ], // client: { // builtPaths: [appBase, testingBase], // add more spec base paths as needed // clearContext: false // leave Jasmine Spec Runner output visible in browser // }, customLaunchers: { // From the CLI. Not used here but interesting // chrome setup for travis CI using chromium Chrome_travis_ci: { base: 'Chrome', flags: ['--no-sandbox'] } }, files: [ // Polyfills 'node_modules/core-js/client/shim.js', 'node_modules/zone.js/dist/zone.js', 'node_modules/zone.js/dist/proxy.js', // 'TypeError: Cannot read property 'assertPresent' of undefined' 'node_modules/zone.js/dist/sync-test.js', // 'TypeError: Cannot read property 'assertPresent' of undefined' 'node_modules/zone.js/dist/async-test.js', // Error: AsyncTestZoneSpec is needed for the async() test helper but could not be found. 'node_modules/zone.js/dist/jasmine-patch.js', // 'TypeError: Cannot read property 'assertPresent' of undefined' // ANY OTHER FILES TO LOAD FOR YOUR TESTS { pattern: 'test/index.js', watched: false } ], exclude: [], // // Proxied base paths for loading assets // proxies: { // }, preprocessors: { 'test/index.js': ['webpack', 'sourcemap'] }, webpack: require('./webpack.config')({ env: 'test' }), reporters: [ 'spec', // 'progress', // 'kjhtml' ], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: false, browsers: ['Chrome'], singleRun: true, //concurrency: Infinity }) }