Created
April 22, 2016 20:49
-
-
Save Vaccano/bfd47c88853954b8cda2daf6193ac315 to your computer and use it in GitHub Desktop.
Configs For "Require Missing" issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpackConfig = require('./webpack.config'); | |
var path = require('path'); | |
module.exports = function (config) { | |
config.set({ | |
basePath: '', | |
frameworks: ['mocha', 'chai', 'sinon'], | |
files: [ | |
'plugins/log4javascript/log4javascript.js', | |
'node_modules/core-js/library/fn/reflect/get-own-metadata.js', | |
//'node_modules/aurelia-polyfills/dist/commonjs/aurelia-polyfills.js', | |
'test/unit/**/*.spec.ts' | |
], | |
exclude: [ | |
], | |
preprocessors: { | |
'test/**/*.ts': ['webpack'] | |
}, | |
webpack: { | |
module: webpackConfig.module, | |
resolve: webpackConfig.resolve, | |
plugins: webpackConfig.plugins | |
}, | |
reporters: ['progress'], | |
port: 9876, | |
colors: true, | |
logLevel: config.LOG_INFO, | |
//autoWatch: true, | |
//browsers: ['PhantomJS2'], | |
browsers: ['Chrome'], | |
singleRun: true, | |
concurrency: Infinity | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "myApp", | |
"version": "1.0.0", | |
"private": true, | |
"description": "Stuff", | |
"main": "index.js", | |
"scripts": { | |
"postinstall": "node copy-typings.js", | |
"dev": "webpack-dev-server --config webpack.config.js --hot --inline --progress --devtool source-map", | |
"build": "webpack --config webpack.config.js --progress --profile --display-error-details", | |
"prod": "webpack -p --config webpack.config.js --progress --devtool source-map", | |
"test": "karma start --display-error-details" | |
}, | |
"author": "d", | |
"license": "", | |
"dependencies": { | |
"aurelia-animator-css": "^1.0.0-beta.1.2.0", | |
"aurelia-binding": "^1.0.0-beta.1.3.1", | |
"aurelia-bootstrapper-webpack": "^0.1.0", | |
"aurelia-breeze": "^1.0.0", | |
"aurelia-dependency-injection": "^1.0.0-beta.1.2.0", | |
"aurelia-dialog": "^0.5.10", | |
"aurelia-event-aggregator": "^1.0.0-beta.1.2.0", | |
"aurelia-fetch-client": "^1.0.0-beta.1.2.1", | |
"aurelia-framework": "^1.0.0-beta.1.2.1", | |
"aurelia-history": "^1.0.0-beta.1.2.0", | |
"aurelia-history-browser": "^1.0.0-beta.1.2.0", | |
"aurelia-http-client": "^1.0.0-beta.1.2.0", | |
"aurelia-loader": "^1.0.0-beta.1.2.0", | |
"aurelia-loader-webpack": "^1.0.0-beta.1.0.0", | |
"aurelia-logging": "^1.0.0-beta.1.2.0", | |
"aurelia-logging-console": "^1.0.0-beta.1.2.0", | |
"aurelia-metadata": "^1.0.0-beta.1.2.0", | |
"aurelia-pal-browser": "^1.0.0-beta.1.2.0", | |
"aurelia-path": "^1.0.0-beta.1.2.1", | |
"aurelia-polyfills": "^1.0.0-beta.1.1.1", | |
"aurelia-route-recognizer": "^1.0.0-beta.1.2.0", | |
"aurelia-router": "^1.0.0-beta.1.2.0", | |
"aurelia-task-queue": "^1.0.0-beta.1.2.0", | |
"aurelia-templating": "^1.0.0-beta.1.2.1", | |
"aurelia-templating-binding": "^1.0.0-beta.1.2.1", | |
"aurelia-templating-resources": "^1.0.0-beta.1.2.1", | |
"aurelia-templating-router": "^1.0.0-beta.1.2.0", | |
"bootstrap": "^3.3.6", | |
"breeze": "^1.1.8", | |
"breeze-client": "^1.5.6", | |
"core-js": "^2.2.2", | |
"css": "^2.2.1", | |
"font-awesome": "^4.5.0", | |
"isomorphic-fetch": "^2.2.1", | |
"jquery": "^2.2.3", | |
"moment": "^2.12.0", | |
"q": "^1.4.1" | |
}, | |
"devDependencies": { | |
"aurelia-breeze": "^1.0.0", | |
"aurelia-tools": "^0.1.18", | |
"aurelia-webpack-plugin": "^1.0.0-beta.1.0.1", | |
"chai": "^3.5.0", | |
"css-loader": "^0.23.1", | |
"file-loader": "^0.8.5", | |
"glob-copy": "^0.1.0", | |
"harmony-collections": "^0.3.8", | |
"html-webpack-plugin": "^2.9.0", | |
"karma": "^0.13.22", | |
"karma-chai": "^0.1.0", | |
"karma-mocha": "^0.2.2", | |
"karma-phantomjs-launcher": "^1.0.0", | |
"karma-phantomjs2-launcher": "^0.5.0", | |
"karma-sinon": "^1.0.4", | |
"karma-typescript-preprocessor2": "^1.1.1", | |
"karma-webpack": "^1.7.0", | |
"mocha": "^2.4.5", | |
"phantomjs-prebuilt": "^2.1.7", | |
"phantomjs2": "^2.2.0", | |
"raw-loader": "^0.5.1", | |
"safe-mkdir": "^1.0.3", | |
"sinon": "^1.17.3", | |
"style-loader": "^0.13.0", | |
"ts-loader": "^0.8.1", | |
"typescript": "^1.8.7", | |
"url-loader": "^0.5.7", | |
"webpack": "^1.12.14", | |
"webpack-dev-server": "^1.14.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var AureliaWebpackPlugin = require('aurelia-webpack-plugin'); | |
var ProvidePlugin = require('webpack/lib/ProvidePlugin'); | |
module.exports = { | |
resolve: { | |
extensions: ['', '.js', '.ts'], | |
alias: { | |
'breeze': 'breeze-client/build/breeze.debug', | |
'src': path.join(__dirname, 'src'), | |
'images': path.join(__dirname, 'plugins/jqwidgets/images'), | |
'Scripts': path.join(__dirname, 'Scripts') | |
} | |
}, | |
devServer: { | |
host: 'localhost', | |
port: 3000 | |
}, | |
entry: { | |
main: [ | |
'./src/main' | |
] | |
}, | |
output: { | |
path: path.join(__dirname, 'build'), | |
filename: 'bundle.js' | |
}, | |
plugins: [ | |
new AureliaWebpackPlugin({ | |
includeSubModules: [ | |
{ | |
moduleId: 'aurelia-dialog' | |
} | |
] | |
}), | |
new ProvidePlugin( | |
{ | |
$: "jquery", | |
jQuery: "jquery", | |
"window.jQuery": 'jquery', | |
Promise: 'bluebird' | |
}) | |
], | |
module: { | |
loaders: [ | |
{ test: /\.css?$/, loader: 'style!css', exclude: /aurelia-dialog/ }, | |
{ test: /\.css?$/, loader: 'raw', include: /aurelia-dialog/ }, | |
{ test: /\.ts$/, loader: 'ts-loader' }, | |
{ test: /\.html$/, loader: 'raw' }, | |
{ test: /\.(png|gif|jpg|ico)$/, loader: 'url-loader?limit=8192' }, | |
{ test: /\.woff2(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&minetype=application/font-woff2' }, | |
{ test: /\.woff(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&minetype=application/font-woff' }, | |
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file-loader' } | |
] | |
}, | |
node: { | |
fs: "empty" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment