Skip to content

Commit

Permalink
Add preinstall and settings configs (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-t-james authored Apr 14, 2022
1 parent 176fe63 commit 63827d3
Show file tree
Hide file tree
Showing 9 changed files with 456 additions and 45,369 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ typings/
.DS_Store

# Editors
.vscode/*
.idea/*

# jest coverage report
Expand Down
9 changes: 8 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run format
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')

if [[ $BRANCH_NAME != *"no branch"* ]]
then
# your regularly scheduled hook
npm run format
fi

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint"]
}
29 changes: 29 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev"
},
{
"name": "Next.js: debug client-side",
"type": "pwa-chrome",
"request": "launch",
"url": "http://localhost:3000"
},
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ You should be able to view the website locally at `http://localhost:3000/`.

**All Content from Contentful is is mocked locally. If you need api keys please reach out in the `#product` channel in slack.**

### Create a new `.env` file in the root of your project

```sh
cp .env.example .env
```

### Add necessary api keys to your new `.env` file.

<!-- ## Tests -->
Expand Down Expand Up @@ -92,7 +86,7 @@ In a terminal window run these commands if you need to update a snapshot.

```sh
$ cd vets-who-code-app
$ npm run test --updateSnapshot
$ npm run test -- --updateSnapshot
```

<!-- ## Deployment -->
Expand Down
Loading

1 comment on commit 63827d3

@vercel
Copy link

@vercel vercel bot commented on 63827d3 Apr 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.