draggable/scripts/build/config.js
2018-04-04 09:26:26 -04:00

20 lines
547 B
JavaScript

/* eslint-disable no-process-env */
const args = process.argv.filter((value, index) => index >= 2);
const useAnalyser = args.find((value) => value === '--analyser');
const isProd = args.find((value) => value === '--production');
const rootPath = `${__dirname}/../../`;
const targetPath = isProd ? `${rootPath}lib/` : `${rootPath}examples/packages/@shopify/draggable`;
const resolveModules = ['node_modules', 'src/'];
module.exports = {
isProd,
rootPath,
targetPath,
resolveModules,
useAnalyser,
};
/* eslint-enable no-process-env */