Skip to content

Commit 78424de

Browse files
authored
Remove src imports from JBrowse (#215)
* Update to latest version of JBrowse * Refactor VariantTable to let columns be driven by the VCF
1 parent e224958 commit 78424de

File tree

65 files changed

+16864
-14097
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+16864
-14097
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SIVmac239 SS_probe probe 2691 2805 . + . gene_id=Gag; transcript_id=Gag; Identity=94.6
2-
SIVmac239 SS_probe probe 4165 4237 . + . gene_id=Gag; transcript_id=Gag; Identity=93
3-
SIVmac239 SS_probe probe 5251 5370 . + . gene_id=Gag; transcript_id=Gag; Identity=92.4
4-
SIVmac239 SS_probe probe 8510 8630 . + . gene_id=Gag; transcript_id=Gag; Identity=95
5-
SIVmac239 SS_probe probe 10373 10493 . + . gene_id=Gag; transcript_id=Gag; Identity=95
1+
SIVmac239 SS_probe probe 2691 2805 . + . gene_id=Gene0; transcript_id=Gene0; Identity=94.6
2+
SIVmac239 SS_probe probe 4165 4237 . + . gene_id=Gene1; transcript_id=Gene1; Identity=93
3+
SIVmac239 SS_probe probe 5251 5370 . + . gene_id=Gene1; transcript_id=Gene1; Identity=92.4
4+
SIVmac239 SS_probe probe 8510 8630 . + . gene_id=Gene3; transcript_id=Gene3; Identity=95
5+
SIVmac239 SS_probe probe 10373 10493 . + . gene_id=Gene4; transcript_id=Gene4; Identity=95

jbrowse/api-src/org/labkey/api/jbrowse/JBrowseFieldDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public JSONObject toJSON() {
180180
fieldDescriptorJSON.put("name", _fieldName);
181181
fieldDescriptorJSON.put("label", _label == null ? _fieldName : _label);
182182
fieldDescriptorJSON.put("description", _description);
183-
fieldDescriptorJSON.put("type", _type.toString());
183+
fieldDescriptorJSON.put("type", _type == null ? null : _type.toString());
184184
fieldDescriptorJSON.put("isInDefaultColumns", _isInDefaultColumns);
185185
fieldDescriptorJSON.put("isIndexed", _isIndexed);
186186
fieldDescriptorJSON.put("isMultiValued", _isMultiValued);

jbrowse/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def jbPkgTask = project.tasks.named("npm_run_jb-pkg")
3737
jbPkgTask.configure {
3838
outputs.cacheIf {false}
3939

40-
inputs.dir(project.file("./node_modules/@jbrowse/cli")).withPathSensitivity(PathSensitivity.RELATIVE)
4140
outputs.dir(project.file("./resources/external/jb-cli"))
4241
}
4342

jbrowse/config/dev.config.js

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,14 @@ const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
1212

1313
const clientConfig = devConfig
1414

15+
// See: https://stackoverflow.com/questions/68707553/uncaught-referenceerror-buffer-is-not-defined
1516
clientConfig.resolve.fallback =
1617
{
17-
"buffer": require.resolve("buffer"),
18-
"path": require.resolve("path-browserify"),
19-
"stream": require.resolve("stream-browserify"),
20-
"zlib": require.resolve("browserify-zlib"),
21-
"vm": require.resolve("vm-browserify"),
22-
"fs": false
18+
"buffer": require.resolve("buffer")
2319
}
2420

25-
clientConfig.resolve.alias["react/jsx-dev-runtime"] = "react/jsx-dev-runtime.js"
26-
clientConfig.resolve.alias["react/jsx-runtime"] = "react/jsx-runtime.js"
27-
clientConfig.resolve.alias["process/browser"] = "process/browser.js"
28-
2921
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
3022

31-
clientConfig.module.rules = clientConfig.module.rules.concat(
32-
{
33-
test: /\.m?js$/,
34-
exclude: /node_modules/,
35-
use: {
36-
loader: 'babel-loader',
37-
options: {
38-
presets: [
39-
['@babel/preset-env', { targets: "defaults" }],
40-
['@babel/preset-react']
41-
]
42-
}
43-
}
44-
})
23+
clientConfig.output.publicPath = 'auto'
4524

4625
module.exports = [clientConfig]

jbrowse/config/prod.config.js

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,19 @@ const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
1212

1313
const clientConfig = prodConfig
1414

15+
// See: https://stackoverflow.com/questions/68707553/uncaught-referenceerror-buffer-is-not-defined
1516
clientConfig.resolve.fallback =
1617
{
17-
"buffer": require.resolve("buffer"),
18-
"path": require.resolve("path-browserify"),
19-
"stream": require.resolve("stream-browserify"),
20-
"zlib": require.resolve("browserify-zlib"),
21-
"vm": require.resolve("vm-browserify"),
22-
"fs": false
18+
"buffer": require.resolve("buffer")
2319
}
2420

25-
clientConfig.resolve.alias["react/jsx-dev-runtime"] = "react/jsx-dev-runtime.js"
26-
clientConfig.resolve.alias["react/jsx-runtime"] = "react/jsx-runtime.js"
27-
clientConfig.resolve.alias["process/browser"] = "process/browser.js"
21+
clientConfig.resolve.fallback =
22+
{
23+
"buffer": require.resolve("buffer")
24+
}
2825

2926
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
3027

31-
clientConfig.module.rules = clientConfig.module.rules.concat(
32-
{
33-
test: /\.m?js$/,
34-
exclude: /node_modules/,
35-
use: {
36-
loader: 'babel-loader',
37-
options: {
38-
presets: [
39-
['@babel/preset-env', { targets: "defaults" }],
40-
['@babel/preset-react']
41-
]
42-
}
43-
}
44-
})
28+
clientConfig.output.publicPath = 'auto'
4529

4630
module.exports = [clientConfig]

jbrowse/config/watch.config.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,10 @@ const clientConfig = watchConfig
1515
clientConfig.resolve.fallback =
1616
{
1717
"buffer": require.resolve("buffer"),
18-
"path": require.resolve("path-browserify"),
19-
"stream": require.resolve("stream-browserify"),
20-
"zlib": require.resolve("browserify-zlib"),
21-
"vm": require.resolve("vm-browserify"),
22-
"fs": false
2318
}
2419

25-
clientConfig.resolve.alias["react/jsx-dev-runtime"] = "react/jsx-dev-runtime.js"
26-
clientConfig.resolve.alias["react/jsx-runtime"] = "react/jsx-runtime.js"
27-
clientConfig.resolve.alias["process/browser"] = "process/browser.js"
28-
2920
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
3021

31-
clientConfig.module.rules = clientConfig.module.rules.concat(
32-
{
33-
test: /\.m?js$/,
34-
exclude: /node_modules/,
35-
use: {
36-
loader: 'babel-loader',
37-
options: {
38-
presets: [
39-
['@babel/preset-env', { targets: "defaults" }],
40-
['@babel/preset-react']
41-
]
42-
}
43-
}
44-
})
22+
clientConfig.output.publicPath = 'auto'
4523

4624
module.exports = [clientConfig]

0 commit comments

Comments
 (0)