name TBD; a npm installable neuroimaging viewer, hopefully
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
src
test
.babelrc
.editorconfig
.eslintrc
.gitignore
.nvmrc
.travis.yml
LICENSE
README.md
package-lock.json
package.json
webpack.config.js
yarn.lock

README.md

neuroimage (not the journal)

Get started

Clone this repo, cd into the folder, then do:

yarn install --ignore-engines
yarn build #or yarn dev for hot reload

In another webpack build (like https://github.com/akeshavan/neurobrain_example), symlink to this repo in the node_modules folder, and then you should be able to import:

import { Viewer } from 'neurobrain';

const v = new Viewer("foo");

Readings

Misc

An example of using dependencies that shouldn’t be resolved by webpack, but should become dependencies of the resulting bundle

In the following example we are excluding React and Lodash:

{
  devtool: 'source-map',
  output: {
    path: '...',
    libraryTarget: 'umd',
    library: '...'
  },
  entry: '...',
  ...
  externals: {
    react: 'react'
    // Use more complicated mapping for lodash.
    // We need to access it differently depending
    // on the environment.
    lodash: {
      commonjs: 'lodash',
      commonjs2: 'lodash',
      amd: '_',
      root: '_'
    }
  }
}