Skip to content

name TBD; a npm installable neuroimaging viewer, hopefully

License

Notifications You must be signed in to change notification settings

akeshavan/neurobrain

Repository files navigation

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: '_'
    }
  }
}

About

name TBD; a npm installable neuroimaging viewer, hopefully

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors