Skip to content

Commit

Permalink
feat: allow windows env (#15)
Browse files Browse the repository at this point in the history
* adapat for a Windows environment

* feat: allow windows env
  • Loading branch information
levalleux-ludo authored May 6, 2022
1 parent c9cb69c commit 6c321b8
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
"plugins": ["react", "@typescript-eslint", "react-hooks", "simple-import-sort"],
"rules": {
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error"
"simple-import-sort/imports": "error",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"extends": [
"eslint:recommended",
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"semi": true,
"tabWidth": 2,
"singleQuote": false,
"trailingComma": "none"
"trailingComma": "none",
"endOfLine":"auto"
}
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,19 @@ The required steps to develop and test the dApp interface locally are as follows
2. Navigate into the directory & install dependencies: i.e. Run `cd interface && npm ci`
3. Copy the `.env.example` file to `.env` and fill out any necessary values.
4. Start the application: i.e. Run `npm run dev`
5. Navigate to `http://localhost:3000/` in a browser.
5. Navigate to `http://localhost:3000/` in a browser.

## e2e tests

### Prerequisites

Playwright browsers need to be installed on your system
```
npx playwright install
```

### Run e2e tests

```
npm run e2e
```
28 changes: 28 additions & 0 deletions package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"test": "react-app-rewired test --testPathIgnorePatterns .spec.ts",
"eject": "react-app-rewired eject",
"lint": "eslint --ignore-path ./.gitignore --ext .js,.ts,.tsx . --quiet --fix",
"prettier": "prettier --write 'src/**/*.{ts,tsx}'",
"prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
"prepare": "husky install",
"e2e": "playwright test --project=chromium",
"e2e:ci": "CI=true playwright test --project=chromium",
"e2e:debug": "PWDEBUG=console playwright test --project=chromium",
"e2e:ci": "cross-env CI=true playwright test --project=chromium",
"e2e:debug": "cross-env PWDEBUG=console playwright test --project=chromium",
"e2e:report": "playwright show-report"
},
"dependencies": {
Expand Down Expand Up @@ -49,6 +49,7 @@
"@types/styled-components": "^5.1.25",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"cross-env": "^7.0.3",
"customize-cra": "^1.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^2.7.1",
Expand Down

0 comments on commit 6c321b8

Please sign in to comment.