UNPKG

643 BJavaScriptView Raw
1#!/usr/bin/env node
2
3const shell = require('shelljs')
4const project = require('../package.json')
5
6process.env.CORDOVA = true
7
8shell.rm('-rf', '.cordova/www/*')
9shell.cp('-r', '.build/*', '.cordova/www')
10
11shell.cp('res/config.xml', '.cordova/config.xml')
12shell.sed('-i', '{!cordova-author!}', project.author, '.cordova/config.xml')
13shell.sed('-i', '{!cordova-description!}', project.description, '.cordova/config.xml')
14shell.sed('-i', '{!cordova-id!}', project.cordova.id, '.cordova/config.xml')
15shell.sed('-i', '{!cordova-name!}', 'Vuedoo', '.cordova/config.xml')
16shell.sed('-i', '{!cordova-version!}', project.version, '.cordova/config.xml')