Cleanup, removed old e2e in favour of cypress

This commit is contained in:
Knut Sveidqvist
2019-09-18 18:37:53 +02:00
parent 21622f575b
commit 4411a26002
47 changed files with 39 additions and 1551 deletions

View File

@@ -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'
}
};