Skip to content

Commit

Permalink
build: Update commands and docs around them
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin committed Dec 12, 2020
1 parent e143018 commit fc8e6f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ l lint:
t test:
yarn test:unit

build: lint
yarn build

s serve:
s serve: lint test
yarn start


build: lint test
yarn build

# Build, increment tag and push release.
tag:
npm version minor
9 changes: 6 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

## Run dev server

This will perform lint fixes, compile TS to JS and serve the app.

This will compile TS to JS and serve the app.
```sh
$ yarn start
$ # Or
```

This does the same but adds lint fixes and tests first.

```sh
$ make serve
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint:check": "vue-cli-service lint --no-fix",
"test:unit": "vue-cli-service test:unit",
"serve": "vue-cli-service serve",
"start": "yarn lint:fix && yarn run serve",
"start": "yarn serve",
"compile": "rm -rf dist && tsc -p . --outDir dist --sourceMap false",
"build": "vue-cli-service build",
"preversion": "git fetch --tags && yarn lint:check && yarn test:unit",
Expand Down

0 comments on commit fc8e6f5

Please sign in to comment.