-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for transpiling the code without also bundling it (fixes #204)
Also added a simple entry-point module that exports the essentials if you just import the "dalliance" module. Can still import dalliance/lib/whatever if you need something specific.
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["es2015"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */ | ||
|
||
// | ||
// Dalliance Genome Explorer | ||
// (c) Thomas Down 2006-2016 | ||
// | ||
// module-exports.js: entry point when loading as an NPM-style module | ||
// | ||
|
||
"use strict"; | ||
|
||
const cbrowser = require('./cbrowser'); | ||
const sourceadapters = require('./sourceadapters'); | ||
|
||
module.exports = { | ||
Browser: cbrowser.Browser, | ||
registerSourceAdapterFactory: sourceadapters.registerSourceAdapterFactory, | ||
registerParserFactory: sourceadapters.registerParserFactory, | ||
makeParser: sourceadapters.makeParser | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters