mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-24 16:34:09 +02:00
Cleanup, removed old e2e in favour of cypress
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const path = require('path')
|
||||
const path = require('path');
|
||||
|
||||
const jsRule = {
|
||||
test: /\.js$/,
|
||||
@@ -6,7 +6,7 @@ const jsRule = {
|
||||
use: {
|
||||
loader: 'babel-loader'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const jisonRule = {
|
||||
test: /\.jison$/,
|
||||
@@ -16,30 +16,26 @@ const jisonRule = {
|
||||
'token-stack': true
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const amdRule = {
|
||||
parser: {
|
||||
amd: false // https://github.com/lodash/lodash/issues/3052
|
||||
}
|
||||
}
|
||||
};
|
||||
const scssRule = {
|
||||
// load scss to string
|
||||
test: /\.scss$/,
|
||||
use: [
|
||||
{ loader: 'css-to-string-loader' },
|
||||
{ loader: 'css-loader' },
|
||||
{ loader: 'sass-loader' }
|
||||
]
|
||||
}
|
||||
use: [{ loader: 'css-to-string-loader' }, { loader: 'css-loader' }, { loader: 'sass-loader' }]
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
target: 'web',
|
||||
entry: {
|
||||
mermaid: './src/mermaid.js',
|
||||
e2e: './e2e/platform/viewer.js',
|
||||
'bundle-test': './e2e/platform/bundle-test.js'
|
||||
e2e: './cypress/platform/viewer.js',
|
||||
'bundle-test': './cypress/platform/bundle-test.js'
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison']
|
||||
@@ -55,10 +51,7 @@ module.exports = {
|
||||
libraryExport: 'default'
|
||||
},
|
||||
devServer: {
|
||||
contentBase: [
|
||||
path.join(__dirname, 'e2e', 'platform'),
|
||||
path.join(__dirname, 'dist')
|
||||
],
|
||||
contentBase: [path.join(__dirname, 'cypress', 'platform'), path.join(__dirname, 'dist')],
|
||||
compress: true,
|
||||
port: 9000
|
||||
},
|
||||
@@ -69,4 +62,4 @@ module.exports = {
|
||||
mermaid: 'mermaid'
|
||||
},
|
||||
devtool: 'source-map'
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user