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