start upgrading toolchain, doesn't build yet
This commit is contained in:
parent
9945bc5f76
commit
e2aef6b052
29
package.json
29
package.json
|
@ -15,23 +15,25 @@
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"audio-buffer-utils": "^3.1.2",
|
"@babel/core": "^7.7.7",
|
||||||
|
"@babel/preset-env": "^7.7.7",
|
||||||
|
"audio-buffer-utils": "^5.1.2",
|
||||||
"audio-context": "^1.0.3",
|
"audio-context": "^1.0.3",
|
||||||
"babel-core": "^6.18.2",
|
"babel-core": "^6.18.2",
|
||||||
"babel-loader": "^6.2.8",
|
"babel-loader": "^8.0.6",
|
||||||
"babel-plugin-transform-runtime": "^6.15.0",
|
"babel-plugin-transform-runtime": "^6.15.0",
|
||||||
"babel-preset-es2015": "^6.14.0",
|
"babel-preset-es2015": "^6.14.0",
|
||||||
"babel-runtime": "^6.18.0",
|
"babel-runtime": "^6.18.0",
|
||||||
"brfs": "^1.4.3",
|
"brfs": "^2.0.2",
|
||||||
"bytebuffer": "^5.0.1",
|
"bytebuffer": "^5.0.1",
|
||||||
"css-loader": "^0.26.0",
|
"css-loader": "^3.4.0",
|
||||||
"dompurify": "^0.8.9",
|
"dompurify": "^0.8.9",
|
||||||
"drop-stream": "^1.0.0",
|
"drop-stream": "^1.0.0",
|
||||||
"duplex-maker": "^1.0.0",
|
"duplex-maker": "^1.0.0",
|
||||||
"extract-loader": "^0.1.0",
|
"extract-loader": "^3.1.0",
|
||||||
"file-loader": "^0.9.0",
|
"file-loader": "^4.3.0",
|
||||||
"getusermedia": "^2.0.0",
|
"getusermedia": "^2.0.0",
|
||||||
"html-loader": "^0.4.4",
|
"html-loader": "^0.5.5",
|
||||||
"json-loader": "^0.5.4",
|
"json-loader": "^0.5.4",
|
||||||
"keyboardjs": "^2.3.4",
|
"keyboardjs": "^2.3.4",
|
||||||
"knockout": "^3.4.0",
|
"knockout": "^3.4.0",
|
||||||
|
@ -46,12 +48,19 @@
|
||||||
"to-arraybuffer": "^1.0.1",
|
"to-arraybuffer": "^1.0.1",
|
||||||
"transform-loader": "^0.2.3",
|
"transform-loader": "^0.2.3",
|
||||||
"voice-activity-detection": "johni0702/voice-activity-detection#9f8bd90",
|
"voice-activity-detection": "johni0702/voice-activity-detection#9f8bd90",
|
||||||
"webpack": "^1.13.3",
|
"webpack": "^4.41.4",
|
||||||
"webworkify-webpack": "^1.1.8",
|
"webpack-cli": "^3.3.10",
|
||||||
|
"webworkify-webpack": "^2.1.5",
|
||||||
"libsamplerate.js": "^1.0.0",
|
"libsamplerate.js": "^1.0.0",
|
||||||
"mumble-client-codecs-browser": "^1.2.0",
|
"mumble-client-codecs-browser": "^1.2.0",
|
||||||
"mumble-client-websocket": "^1.0.0",
|
"mumble-client-websocket": "^1.0.0",
|
||||||
"mumble-client": "^1.3.0",
|
"mumble-client": "^1.3.0",
|
||||||
"web-audio-buffer-queue": "^1.1.0"
|
"web-audio-buffer-queue": "^1.1.0"
|
||||||
}
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/plugin-transform-runtime": "^7.7.6",
|
||||||
|
"@babel/runtime": "^7.7.7",
|
||||||
|
"fs": "0.0.1-security"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,70 +1,53 @@
|
||||||
var theme = 'MetroMumbleLight'
|
var path = require('path');
|
||||||
|
|
||||||
var path = require('path')
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
mode: 'development',
|
||||||
entry: {
|
entry: {
|
||||||
index: [
|
index: [
|
||||||
'./app/index.js',
|
'./app/index.js',
|
||||||
'./app/index.html'
|
'./app/index.html'
|
||||||
],
|
],
|
||||||
config: './app/config.js',
|
config: './app/config.js'
|
||||||
theme: './app/theme.js',
|
|
||||||
matrix: './app/matrix.js'
|
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
path: path.join(__dirname, 'dist'),
|
||||||
path: './dist'
|
filename: '[name].js'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
postLoaders: [
|
rules: [
|
||||||
{
|
|
||||||
include: /mumble-streams\/lib\/data.js/,
|
|
||||||
loader: 'transform-loader?brfs'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
loaders: [
|
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
|
use: {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
query: {
|
options: {
|
||||||
presets: ['es2015'],
|
presets: ['@babel/preset-env'],
|
||||||
plugins: ['transform-runtime']
|
plugins: ['@babel/plugin-transform-runtime']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.html$/,
|
test: /\.html$/,
|
||||||
loaders: [
|
use: [
|
||||||
'file-loader?name=[name].[ext]',
|
'file-loader?name=[name].[ext]',
|
||||||
'extract-loader',
|
'extract-loader',
|
||||||
'html-loader?' + JSON.stringify({
|
'html-loader?' + JSON.stringify({
|
||||||
attrs: ['img:src', 'link:href'],
|
attrs: ['img:src', 'link:href'],
|
||||||
interpolate: 'require',
|
interpolate: 'require'
|
||||||
root: theme
|
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
loaders: [
|
use: [
|
||||||
'file-loader',
|
'file-loader',
|
||||||
'extract-loader',
|
'extract-loader',
|
||||||
'css-loader'
|
'css-loader'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
test: /\.scss$/,
|
|
||||||
loaders: [
|
|
||||||
'file-loader?name=[hash].css',
|
|
||||||
'extract-loader',
|
|
||||||
'css-loader',
|
|
||||||
'sass-loader'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
test: /manifest\.json$|\.xml$/,
|
test: /manifest\.json$|\.xml$/,
|
||||||
loaders: [
|
use: [
|
||||||
'file-loader',
|
'file-loader',
|
||||||
'extract-loader',
|
'extract-loader',
|
||||||
'regexp-replace-loader?' + JSON.stringify({
|
'regexp-replace-loader?' + JSON.stringify({
|
||||||
|
@ -78,30 +61,24 @@ module.exports = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.json$/,
|
test: /\.(svg|png|ico)$/,
|
||||||
exclude: /manifest\.json$/,
|
use: [
|
||||||
loader: 'json-loader'
|
'file-loader'
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(svg|png|ico)$/,
|
enforce: 'post',
|
||||||
loader: 'file-loader'
|
test: /mumble-streams\/lib\/data.js/,
|
||||||
|
use: [
|
||||||
|
'transform-loader?brfs'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
webworkify: 'webworkify-webpack'
|
webworkify: 'webworkify-webpack'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
root: [
|
target: 'web'
|
||||||
path.resolve('./themes/')
|
|
||||||
]
|
|
||||||
},
|
|
||||||
includes: {
|
|
||||||
pattern: function (filepath) {
|
|
||||||
return {
|
|
||||||
re: /#require\((.+)\)/,
|
|
||||||
index: 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue