-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
index.js
file such that only require 'mixco'
is needed
This also makes the compilation process simpler, because the index.js also selects whether to use the sources or the compiled library based on the `MIXCO_USE_SOURCE` environment variable.
- Loading branch information
1 parent
85396c5
commit a643365
Showing
7 changed files
with
66 additions
and
71 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,23 @@ | ||
// mixco | ||
// ===== | ||
|
||
if (process.env.MIXCO_USE_SOURCE) { | ||
require('coffee-script/register') | ||
module.exports = { | ||
behaviour: require('./src/behaviour'), | ||
control: require('./src/control'), | ||
script: require('./src/script'), | ||
transform: require('./src/transform'), | ||
util: require('./src/util'), | ||
value: require('./src/value') | ||
} | ||
} else { | ||
module.exports = { | ||
behaviour: require('./lib/behaviour'), | ||
control: require('./lib/control'), | ||
script: require('./lib/script'), | ||
transform: require('./lib/transform'), | ||
util: require('./lib/util'), | ||
value: require('./lib/value') | ||
} | ||
} |
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
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
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
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
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
This file was deleted.
Oops, something went wrong.