![Monty Taylor](/assets/img/avatar_default.png)
The openstack eslint package is just really not needed at this point. Use standardjs and run --fix on it. Switch away from using node 8 to run linters and tests. Change-Id: I51f68d4ec30c8da5d1601ef00045e53f90d0554b
36 lines
792 B
JavaScript
36 lines
792 B
JavaScript
import path from 'path'
|
|
import webpack from 'webpack'
|
|
import cloudsYamlPath from './test/functional/helpers/cloudsYamlPath'
|
|
|
|
export default {
|
|
entry: ['./src/index.js'],
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'js-openstack-lib.js',
|
|
library: 'JSOpenStackLib',
|
|
libraryTarget: 'umd'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.m?js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
presets: ['@babel/preset-env'],
|
|
plugins: ['transform-inline-environment-variables']
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.NormalModuleReplacementPlugin(/helpers\/cloudsConfig/,
|
|
'json!yaml!' + cloudsYamlPath)
|
|
],
|
|
node: {
|
|
fs: 'empty'
|
|
}
|
|
}
|