build(cordova): simplify build, use cordova in a more standard way

This commit is contained in:
Jason Dreyzehner 2016-10-06 00:18:29 -04:00
commit d5e6b8fab8
14 changed files with 175 additions and 133 deletions

View file

@ -1,9 +1,4 @@
{
"//":"PLEASE! Do not edit this file directly",
"//":" Modify it at app-template/",
"name": "bitpay-wallet",
"description": "Secure Bitcoin Storage",
{
"author": "BitPay",
"version": "0.14.0",
"keywords": [
@ -14,27 +9,6 @@
"multisignature",
"bitcore"
],
"main": "public/index.html",
"window": {
"title": "BitPay Wallet - Secure Bitcoin Storage",
"icon": "./public/img/icons/icon-256.png",
"toolbar": false,
"show": true,
"visible": true,
"resizable": true,
"frame": true,
"width": 400,
"height": 600,
"position": "center",
"fullscreen": false
},
"webkit": {
"page-cache": false,
"java": false,
"plugin": false
},
"dom_storage_quota": 200,
"id": "jid1-x7bV5evAaI1P9Q",
"homepage": "https://github.com/bitpay/copay",
"license": "MIT",
"repository": {
@ -85,22 +59,41 @@
"mocha": "^2.4.5",
"pbkdf2": "^3.0.4",
"phantomjs-prebuilt": "^2.1.7",
"shelljs": "^0.3.0",
"xcode": "^0.8.2"
"shelljs": "^0.3.0"
},
"scripts": {
"preinstall": "bower install && npm i fs-extra",
"build": "grunt",
"apply:copay": "cd app-template && node apply.js",
"apply:bitpay-wallet": "cd app-template && node apply.js bitpay-wallet",
"start": "npm run build && node app.js",
"watch": "grunt watch",
"test": "./node_modules/.bin/grunt test-coveralls",
"clean": "git clean -dfx",
"start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj",
"start:android": "npm run build && cd cordova && trash project-android && make android && open -a /Applications/Android\\ Studio.app project-android/platforms/android"
"preinstall": "bower install && npm i fs-extra",
"postinstall": "npm run apply:bitpay && cordova prepare",
"start": "npm run build:www && ionic serve --nolivereload --nogulp",
"start:ios": "npm run build:www && npm run build:ios && npm run open:ios",
"start:android": "npm run build:www && npm run build:android && npm run open:android",
"watch": "grunt watch",
"build:www": "grunt",
"build:www-release": "grunt prod",
"build:ios": "cordova prepare ios && cordova build ios --debug",
"build:android": "cordova prepare android && cordova build android --debug",
"build:ios-release": "cordova prepare ios && cordova build ios --release",
"build:android-release": "cordova prepare android && cordova build android --release",
"open:ios": "open platforms/ios/*.xcodeproj",
"open:android": "open -a open -a /Applications/Android\\ Studio.app platforms/android",
"final:www": "npm run clean && npm run build:www-release",
"final:ios": "npm run final:www && npm run build:ios-release && npm run open:ios",
"final:android": "npm run final:www && npm run build:android-release && npm run open:android",
"final:all-mac": "npm run final:www npm run build:ios-release npm run build:android-release && npm run open:ios && npm run open:android",
"run:android": "cordova run android --device",
"log:android": "adb logcat | grep chromium",
"apply:copay": "cd app-template && node apply.js",
"apply:bitpay": "cd app-template && node apply.js bitpay-wallet",
"test": "./node_modules/.bin/grunt test-coveralls",
"clean": "git clean -dfx && npm install"
},
"devDependencies": {
"trash-cli": "^1.4.0"
"androidmanifest": "^2.0.0",
"cordova": "^5.4.1",
"globby": "^6.0.0",
"ionic": "^2.1.0",
"plist": "^2.0.1",
"trash-cli": "^1.4.0",
"xcode": "^0.8.2"
}
}