Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Autoformat the code
  • Loading branch information
janaagaard75 committed Jun 29, 2019
1 parent c616d99 commit 540a238
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/extensions.json
@@ -1,5 +1,6 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"ms-azuretools.vscode-azurefunctions",
"orta.vscode-jest",
"redhat.vscode-yaml"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -46,6 +46,10 @@ Clean up. This simply deletes the distribution folder `dist`.

yarn clean

Auto format the files using [Prettier](https://prettier.io/). If you're using VSCode and have the recommended extension installed, this is done automatically when saving files.

yarn format

## Continuous Deployment

Continuous deployment is done with [CircleCI](https://circleci.com/), and configured in `config.yml`.
Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn run clean && tsc && copyfiles --up 1 \"src/**/*.json\" dist",
"clean": "yarn install --frozen-lockfile && rimraf dist",
"format": "prettier --write '{./,./src/**/}*.{js,json,ts}'",
"start": "yarn run build && (cd dist; func host start)",
"test": "jest --testRegex \"\\.test\\.ts$\"",
"test-save-results": "cross-env JEST_JUNIT_OUTPUT=test-results/test-results-local.xml jest --ci --runInBand --reporters=default --reporters=jest-junit --testRegex \"\\.test\\.ts$\"",
Expand All @@ -31,6 +32,7 @@
"jest": "24.8.0",
"jest-junit": "6.4.0",
"node-fetch": "2.6.0",
"prettier": "1.18.2",
"rimraf": "2.6.3",
"ts-jest": "24.0.2",
"typescript": "3.5.1"
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -2987,6 +2987,11 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=

prettier@1.18.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==

pretty-format@^24.8.0:
version "24.8.0"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.8.0.tgz#8dae7044f58db7cb8be245383b565a963e3c27f2"
Expand Down

0 comments on commit 540a238

Please sign in to comment.