forked from kscience/visionforge
Update threejs server
This commit is contained in:
parent
2bdaea2e82
commit
35fc7a7042
@ -12,7 +12,7 @@ val fxVersion by extra("11")
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "space.kscience"
|
group = "space.kscience"
|
||||||
version = "0.3.0-dev-5"
|
version = "0.3.0-dev-7"
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
@ -10,6 +10,11 @@ kotlin {
|
|||||||
webpackTask {
|
webpackTask {
|
||||||
this.outputFileName = "js/visionforge-three.js"
|
this.outputFileName = "js/visionforge-three.js"
|
||||||
}
|
}
|
||||||
|
commonWebpackConfig {
|
||||||
|
cssSupport{
|
||||||
|
enabled.set(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
binaries.executable()
|
binaries.executable()
|
||||||
}
|
}
|
||||||
@ -17,17 +22,18 @@ kotlin {
|
|||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain {
|
commonMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":visionforge-solid"))
|
api(projects.visionforgeSolid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
jvmMain {
|
jvmMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":visionforge-server"))
|
api(projects.visionforgeServer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
jsMain {
|
jsMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":visionforge-threejs"))
|
api(projects.visionforgeThreejs)
|
||||||
|
api(projects.ui.ring)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package space.kscience.visionforge.three
|
package space.kscience.visionforge.three
|
||||||
|
|
||||||
import space.kscience.dataforge.misc.DFExperimental
|
import space.kscience.dataforge.misc.DFExperimental
|
||||||
|
import space.kscience.visionforge.ring.ThreeWithControlsPlugin
|
||||||
import space.kscience.visionforge.runVisionClient
|
import space.kscience.visionforge.runVisionClient
|
||||||
import space.kscience.visionforge.solid.three.ThreePlugin
|
|
||||||
|
|
||||||
|
|
||||||
@DFExperimental
|
@DFExperimental
|
||||||
public fun main(): Unit = runVisionClient {
|
public fun main(): Unit = runVisionClient {
|
||||||
plugin(ThreePlugin)
|
plugin(ThreeWithControlsPlugin)
|
||||||
}
|
}
|
23
visionforge-threejs/visionforge-threejs-server/webpack.config.d/01.ring.js
vendored
Normal file
23
visionforge-threejs/visionforge-threejs-server/webpack.config.d/01.ring.js
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
const ringConfig = require('@jetbrains/ring-ui/webpack.config').config;
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
config.module.rules.push(...ringConfig.module.rules)
|
||||||
|
|
||||||
|
config.module.rules.push(
|
||||||
|
{
|
||||||
|
test: /\.css$/,
|
||||||
|
exclude: [
|
||||||
|
path.resolve(__dirname, "../../node_modules/@jetbrains/ring-ui")
|
||||||
|
],
|
||||||
|
use: [
|
||||||
|
{
|
||||||
|
loader: 'style-loader',
|
||||||
|
options: {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'css-loader',
|
||||||
|
options: {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
)
|
10
visionforge-threejs/visionforge-threejs-server/webpack.config.d/02.bundle.js
vendored
Normal file
10
visionforge-threejs/visionforge-threejs-server/webpack.config.d/02.bundle.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
new BundleAnalyzerPlugin({
|
||||||
|
analyzerMode: "static",
|
||||||
|
reportFilename: "bundle-report.html"
|
||||||
|
})
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user