package: add test script for prettier (not yet for CI)

This commit is contained in:
Jason Dreyzehner 2018-02-13 19:18:24 -05:00
parent 0ba00286cd
commit 2fd40a717e
2 changed files with 8 additions and 7 deletions

View File

@ -14,7 +14,7 @@ env:
script: script:
- npm run apply:$DISTRIBUTION - npm run apply:$DISTRIBUTION
- npm run test-ci - npm run test:ci
- npm run e2e - npm run e2e
after_success: after_success:

View File

@ -22,7 +22,7 @@
"url": "https://github.com/bitpay/copay/issues" "url": "https://github.com/bitpay/copay/issues"
}, },
"scripts": { "scripts": {
"postinstall": "sed -i -e \"s/.*require(...\\/...);//g\" node_modules/asn1.js-rfc5280/index.js && npm run e2e-update", "postinstall": "sed -i -e \"s/.*require(...\\/...);//g\" node_modules/asn1.js-rfc5280/index.js && npm run e2e:update",
"start": "ionic serve --no-open", "start": "ionic serve --no-open",
"clean": "rm -rf platforms && rm -rf plugins && rm -f config.xml", "clean": "rm -rf platforms && rm -rf plugins && rm -f config.xml",
"prepare:copay": "npm run clean && npm run apply:copay && cordova prepare && npm run fix:fcm", "prepare:copay": "npm run clean && npm run apply:copay && cordova prepare && npm run fix:fcm",
@ -33,13 +33,14 @@
"ionic:build": "ionic-app-scripts build", "ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve", "ionic:serve": "ionic-app-scripts serve",
"test": "ng test --browsers=Chrome", "test": "ng test --browsers=Chrome",
"test-coverage": "ng test --code-coverage", "test:coverage": "ng test --code-coverage",
"test-ci": "ng test --watch=false --code-coverage --no-progress", "test:ci": "ng test --watch=false --code-coverage --no-progress",
"test:prettier": "prettier --list-different 'src/**/*.ts'",
"fix:prettier": "prettier 'src/**/*.ts' --write", "fix:prettier": "prettier 'src/**/*.ts' --write",
"fix:tslint": "tslint --fix --project . src/**/*.ts", "fix:tslint": "tslint --fix --project . src/**/*.ts",
"e2e": "npm run ionic:build && npm run e2e-test", "e2e": "npm run ionic:build && npm run e2e:test",
"e2e-test": "protractor", "e2e:test": "protractor",
"e2e-update": "webdriver-manager update --gecko false", "e2e:update": "webdriver-manager update --gecko false",
"extract": "ngx-translate-extract --input ./src --output ./src/assets/i18n/app.pot --clean --sort --format pot", "extract": "ngx-translate-extract --input ./src --output ./src/assets/i18n/app.pot --clean --sort --format pot",
"start:ios": "npm run build:ios && npm run open:ios", "start:ios": "npm run build:ios && npm run open:ios",
"start:android": "npm run run:android", "start:android": "npm run run:android",