Skip to content

Commit

Permalink
Merge pull request #60 from KPMP/develop
Browse files Browse the repository at this point in the history
Merge develop into master for release 0.1
  • Loading branch information
rlreamy authored Nov 2, 2021
2 parents 9de9e20 + de5ae28 commit b384e14
Show file tree
Hide file tree
Showing 71 changed files with 31,316 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_IMAGE_PATH="s3://kpmp-knowledge-environment/"
REACT_APP_SPATIAL_DATA_PATH="/spatial-viewer/files/Spatial Viewer Dataset Metadata - Metadata.tsv"
REACT_APP_API_HOST="https://qa-atlas.kpmp.org"
32 changes: 32 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm ci
- run: npm run build --if-present
- run: npm test
49 changes: 48 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 @@ -103,3 +103,50 @@ 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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[![Node.js CI](https://github.com/KPMP/hubble-web/actions/workflows/node.js.yml/badge.svg)](https://github.com/KPMP/hubble-web/actions/workflows/node.js.yml)

# Inital Setup
- Install NVM (https://github.com/nvm-sh/nvm)
- `$ nvm use v14` // Use Node.js version 14
- (optional) `$ nvm alias default 14` // Set nvm to always use Node.js v14
- `$ npm i` // install required dependencies
- `$ cp .env.example .env`
- `$ npm run start`
16 changes: 16 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const CracoAlias = require("craco-alias");

module.exports = {
plugins: [
{
plugin: CracoAlias,
options: {
source: "options",
baseUrl: "./",
aliases: {
"txml/txml": "./node_modules/txml/dist/txml",
}
}
}
]
}
Loading

0 comments on commit b384e14

Please sign in to comment.