Skip to content

Commit d4039f6

Browse files
committed
fix(performance): downgrade ts version
1 parent ecff90a commit d4039f6

File tree

7 files changed

+15
-493
lines changed

7 files changed

+15
-493
lines changed

config/webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ var ionicWebpackFactory = require(process.env.IONIC_WEBPACK_FACTORY);
1414
const Dotenv = require('dotenv-webpack');
1515

1616
var ModuleConcatPlugin = require('webpack/lib/optimize/ModuleConcatenationPlugin');
17-
var PurifyPlugin = require('@angular-devkit/build-optimizer').PurifyPlugin;
1817

1918
var optimizedProdLoaders = [
2019
{

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
"url": "https://github.com/bitpay/copay/issues"
3232
},
3333
"scripts": {
34-
"postinstall": "npm run env:dev && npm run prompt",
34+
"postinstall": "npm run env:dev && npm run prompt && npm run patch:bwc",
3535
"electron:patch": "(! grep -q 'com.apple.security.app-sandbox' ./node_modules/app-builder-lib/templates/entitlements.mac.plist && sed -i -e \"/<dict>/ a\\ \n<key>com.apple.security.app-sandbox</key><true/>\" ./node_modules/app-builder-lib/templates/entitlements.mac.plist) | echo 'electron patched.'",
36+
"patch:bwc": "(sed -i -e 's/\\#private;//' ./node_modules/bitcore-wallet-client/ts_build/lib/key.d.ts) | echo 'BWC patched.'",
3637
"prompt": "\n\n\n\n\n\n#\n# Choose a distribution with:\n#\n# $ npm run apply:copay\n# or\n# $ npm run apply:bitpay\n#\n",
3738
"start": "npm run ionic:serve",
3839
"clean": "rm -rf platforms && rm -rf plugins && rm -f config.xml",
@@ -42,6 +43,7 @@
4243
"lint": "ionic-app-scripts lint",
4344
"ionic:build": "ionic-app-scripts build",
4445
"ionic:serve": "ionic-app-scripts serve --nolivereload",
46+
"ionic:test": "npm run env:prod && node --max-old-space-size=8192 ./node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js build --release --aot true --environment prod --output-hashing all --sourcemaps false --extract-css true --named-chunks false --build-optimizer true",
4547
"watch": "ng test --browsers=Chrome",
4648
"test": "npm run env:dev && npm run test:lint && npm run test:ci",
4749
"test:coverage": "ng test --code-coverage",
@@ -119,7 +121,6 @@
119121
"@ionic-native/vibration": "4.14.0",
120122
"@ionic/storage": "2.1.3",
121123
"@ngx-translate/core": "9.1.1",
122-
"@walletconnect/client": "1.3.1",
123124
"angular2-moment": "1.7.1",
124125
"apexcharts": "3.15.5",
125126
"apple-wallet-ng": "1.1.1",
@@ -193,14 +194,13 @@
193194
"@types/cordova-plugin-qrscanner": "1.0.31",
194195
"@types/jasmine": "2.8.6",
195196
"@types/lodash": "4.14.121",
196-
"@types/node": "14.14.4",
197+
"@types/node": "12.12.6",
197198
"@types/papaparse": "4.1.34",
198199
"@types/prismjs": "1.9.1",
199200
"adm-zip": "0.4.13",
200201
"codecov": "3.7.2",
201202
"core-js": "2.6.10",
202203
"electron": "9.3.5",
203-
"electron-builder": "22.9.1",
204204
"fs-extra": "9.0.1",
205205
"ionic": "4.10.4",
206206
"ionic-mocks": "1.2.1",
@@ -219,7 +219,7 @@
219219
"ts-node": "5.0.0",
220220
"tslint": "5.8.0",
221221
"tslint-config-prettier": "1.18.0",
222-
"typescript": "4.0.3",
222+
"typescript": "2.6.2",
223223
"webpack": "3.12.0",
224224
"webpack-obfuscator": "0.17.3"
225225
},

src/app/app.scss

-8
Original file line numberDiff line numberDiff line change
@@ -559,14 +559,6 @@ ion-alert .alert-message {
559559
overflow-y: auto;
560560
}
561561

562-
.mdToastAfterHeader {
563-
top: $toolbar-md-height;
564-
}
565-
566-
.iosToastAfterHeader {
567-
top: $toolbar-ios-height;
568-
}
569-
570562
.header-extend {
571563
background: $toolbar-background;
572564
height: 180px;

0 commit comments

Comments
 (0)