Skip to content

Commit

Permalink
Merge pull request #54 from KPMP/develop
Browse files Browse the repository at this point in the history
Prep for release 1.0
  • Loading branch information
rlreamy authored Jun 30, 2023
2 parents 982c977 + bb041f5 commit 937dc55
Show file tree
Hide file tree
Showing 60 changed files with 17,310 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_SEARCH_KEY=
REACT_APP_SEARCH_ENDPOINT="/spatial-viewer/search"
51 changes: 50 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ typings/
.node_repl_history

# Output of 'npm pack'
*.tgz
# *.tgz # disabling until vitessce can merge into mainline

# Yarn Integrity file
.yarn-integrity
Expand Down Expand Up @@ -102,3 +102,52 @@ dist

# TernJS port file
.tern-port

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.css
*.css.map
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# hydra-web
This is the front-end code for the KPMP data repository.

# Notes.

Currently the app-search is using the spatial-viewers elastic-search index, this requires the src/App.js file has an "endpointBase" variable set to "/spatial-viewer/search" instead of "/repository/search". This is a temporary solution until the repository has its own elastic-search index.
27 changes: 27 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const CracoAlias = require("craco-alias");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin

const isProductionBuild = process.env.NODE_ENV === "production"
const shouldAnalyze = process.env.REACT_APP_RUN_ANALYZER === "true"
const plugins = []
if (isProductionBuild && shouldAnalyze ) {
plugins.push(new BundleAnalyzerPlugin({ analyzerMode: 'server' }))
}
module.exports = {
plugins: [
{
plugin: CracoAlias,
options: {
source: "options",
baseUrl: "./",
aliases: {
"txml/txml": "./node_modules/txml/dist/txml",
}
}
}
],
webpack: {
plugins,
},
}
Loading

0 comments on commit 937dc55

Please sign in to comment.