Skip to content

Commit

Permalink
feat. Kjørt prettier + oppdatert commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikv committed Feb 15, 2024
1 parent fc670df commit af06796
Show file tree
Hide file tree
Showing 274 changed files with 3,098 additions and 2,173 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
8 changes: 6 additions & 2 deletions .github/workflows/bygg-og-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ jobs:
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Typescript
run: npm run ts
- name: Prettier
run: npm run prettier
- name: Kjør tester
run: npm run test
- name: Build
run: npm run build
- name: Server build
working-directory: ./server
run: npm run build
- name: Build
run: npm run build
- name: Sentry release
run: npm run release
- name: Remove source maps
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/bygg-og-deploy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@ jobs:
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Typescript
run: npm run ts
- name: Prettier
run: npm run prettier
- name: Kjør tester
run: npm run test
- name: Build
run: npm run build
- name: Server build
working-directory: ./server
run: npm run build
- name: Build
run: npm run build
- name: Sentry release
run: npm run release
- name: Remove source maps
- name: Fjerne source maps
run: |
rm dist/assets/*.map
- name: Bygg, tag og push Docker-image
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
7 changes: 2 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# .prettierrc or .prettierrc.yaml
trailingComma: 'es5'
tabWidth: 4
semi: true
singleQuote: true
printWidth: 120
singleQuote: true
tabWidth: 4
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Kjør container
Åpnes i browser: [http://localhost:3000/tiltaksgjennomforing](http://localhost:3000/tiltaksgjennomforing)

## Installere

Før du kjører `install` så må du sette opp autentisering mot @navikt.

`@navikt` pakker publiseres nå kun i GitHub Packages registry'et.
Expand Down
Loading

0 comments on commit af06796

Please sign in to comment.