diff options
author | Chris Rebert <code@rebertia.com> | 2015-01-03 10:51:34 +0300 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2015-01-03 11:15:03 +0300 |
commit | 9ffc34ea5c5e3a3db8af1b357a3b71594e0c9c51 (patch) | |
tree | 6bc02a0f761385b07b3ca5ed29dede416ac1cf0d /src | |
parent | e167f0dd1cfc8710d9d07cb69a083d97b85b1f02 (diff) |
Make npm module expose paths to client-side files; fixes #1
Diffstat (limited to 'src')
-rw-r--r-- | src/nodejs/index.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nodejs/index.js b/src/nodejs/index.js new file mode 100644 index 0000000..96f0772 --- /dev/null +++ b/src/nodejs/index.js @@ -0,0 +1,15 @@ +/*eslint-env node */ +'use strict'; + +var path = require('path'); +var CLIENT_SIDE_FEATURE_DETECTOR_FILENAME = 'mq4-hover-hover-shim.js'; + + +module.exports = { + postprocessor: require('./postprocessor'), + featureDetector: { + es6: path.join(__dirname, '../browser', CLIENT_SIDE_FEATURE_DETECTOR_FILENAME), + cjs: path.join(__dirname, '../../dist/cjs', CLIENT_SIDE_FEATURE_DETECTOR_FILENAME), + umdGlobal: path.join(__dirname, '../../dist/browser', CLIENT_SIDE_FEATURE_DETECTOR_FILENAME) + } +}; |