Skip to content

Commit

Permalink
chore: update configs only
Browse files Browse the repository at this point in the history
  • Loading branch information
jackson-dean committed Sep 21, 2023
1 parent 172961b commit 75d9df5
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci

on:
pull_request: {}
push:
branches:
- main

jobs:
quality-check:
name: Quality Check
runs-on: ubuntu-20.04

steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm

- name: Install dependencies
run: npm install

- name: Run quality-check
run: npm run quality-check
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit
1 change: 1 addition & 0 deletions e2e/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports.config = {
project: require('path').join(__dirname, './tsconfig.json'),
});
jasmine.getEnv().addReporter(
// @ts-ignore
new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
"version": "1.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --port 4201",
"start": "ng serve --port 4201 -c development",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build_prod": "./node_modules/.bin/ng build --configuration production --base-href / --deploy-url /",
"ngcc": "./node_modules/.bin/ngcc --properties es2015",
"format": "npx prettier --write ."
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
"format": "npx prettier --write .",
"prepare": "husky install",
"pre-commit": "tsc --noEmit && pretty-quick --staged",
"quality-check": "tsc --noEmit && npx prettier --check src"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -91,7 +89,7 @@
"@types/uuid": "^8.3.0",
"audit-ci": "^4.0.0",
"codelyzer": "^6.0.0",
"husky": "^8.0.1",
"husky": "^8.0.3",
"jasmine-core": "~3.8.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "^6.3.2",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"module": "es2020",
"allowJs": true,
"lib": [
"es2018",
"es2020",
"dom"
],
"types": [],
Expand Down

0 comments on commit 75d9df5

Please sign in to comment.