UNPKG

tarifa

Version:

Your friendly toolchain for mobile app development on top of Apache Cordova

17 lines (15 loc) 624 B
var fs = require('fs'), path = require('path'), pathHelper = require('../../../../helper/path'), log = require('../../../../helper/log'); module.exports.beforeCompile = function (conf, options) { options.argv = [ '--nosign' ]; options.device = conf.device ? !conf.device.value.match(/Simulator/) : true; var out = path.join(pathHelper.app(), 'platforms', 'ios', 'cordova', 'lib', 'build.js'); fs.writeFileSync( out, fs.readFileSync(path.resolve(__dirname, 'cordova-build.js')) ); log.send('success', '[ios] copy custom `%s` to ios platform', out); return options; };