How to use the platform function from commander
Find comprehensive JavaScript commander.platform code examples handpicked from public code repositorys.
32 33 34 35 36 37 38 39 40 41
dotenv.config({ path: envFile }); process.env['ENV_FILE'] = envFile; process.env['ENV'] = program.env; process.env['BUILD_TYPE'] = 'electron'; // use mas, appx app for mas-dev and appx-dev build process.env['BUILD_PLATFORM'] = program.platform.replace('-dev', ''); const webpackConfig = require('../webpack.prod'); const RELEASE = `${pkg.name}.electron-${program.platform}@${pkg.version}`; const PLATFORM = `electron-${program.platform}`;
169
265
0
commander.Option is the most popular function in commander (1786 examples)