mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-09 22:14:10 +01:00
Update karma config
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
// Karma configuration
|
// Karma configuration
|
||||||
// Generated on Mon Nov 03 2014 07:53:38 GMT+0100 (CET)
|
// Generated on Mon Nov 03 2014 07:53:38 GMT+0100 (CET)
|
||||||
|
|
||||||
|
import { webConfig } from './webpack.config.base.js'
|
||||||
|
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
config.set({
|
config.set({
|
||||||
|
|
||||||
@@ -27,27 +29,8 @@ module.exports = function (config) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
webpack: {
|
webpack: {
|
||||||
externals: ['fs'],
|
externals: webConfig.externals,
|
||||||
module: {
|
module: webConfig.module
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.js$/,
|
|
||||||
exclude: /node_modules/,
|
|
||||||
use: {
|
|
||||||
loader: 'babel-loader',
|
|
||||||
options: {
|
|
||||||
presets: [
|
|
||||||
['env', {
|
|
||||||
'targets': {
|
|
||||||
'browsers': ['last 3 versions']
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// test results reporter to use
|
// test results reporter to use
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
"release": "yarn build -- -p --config webpack.config.prod.js",
|
"release": "yarn build -- -p --config webpack.config.prod.js",
|
||||||
"upgrade": "yarn-upgrade-all && yarn remove d3 && yarn add d3@3.5.17",
|
"upgrade": "yarn-upgrade-all && yarn remove d3 && yarn add d3@3.5.17",
|
||||||
"lint": "node_modules/.bin/standard",
|
"lint": "node_modules/.bin/standard",
|
||||||
"karma": "node node_modules/karma/bin/karma start karma.conf.js --single-run",
|
"karma": "node -r babel-register node_modules/.bin/karma start karma.conf.js --single-run",
|
||||||
"tape": "node node_modules/tape/bin/tape test/cli_test-*.js",
|
"tape": "node -r babel-register node_modules/.bin/tape test/cli_test-*.js",
|
||||||
"test": "yarn lint && yarn tape && yarn karma",
|
"test": "yarn lint && yarn tape && yarn karma",
|
||||||
"live": "live-server ./test/examples",
|
"live": "live-server ./test/examples",
|
||||||
"jison": "gulp jison_legacy",
|
"jison": "gulp jison_legacy",
|
||||||
|
|||||||
Reference in New Issue
Block a user