Skip to content

Commit

Permalink
initial vite init
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Bulat committed Mar 9, 2023
1 parent 42fe297 commit caebd9f
Show file tree
Hide file tree
Showing 99 changed files with 1,646 additions and 8,627 deletions.
11 changes: 11 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# disable all mentioning of fiat values and token prices
# VITE_DISABLE_FIAT=1

# display an organisation label in the network bar
# VITE_ORGANISATION="© Parity Technologies"

# provide a privacy policy url in the network bar
# VITE_PRIVACY_URL=https://www.parity.io/privacy/

# toggle i18n to be in debug mode. Not debug by default
# VITE_DEBUG_I18N=1
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
*.webmanifest
LICENSE
build
webpack.config.js
vite.config.ts
9 changes: 3 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"env": {
"browser": true,
"es2021": true,
"jest/globals": true
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
// "airbnb-typescript",
"plugin:prettier/recommended"
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -25,11 +24,9 @@
"plugins": [
"react",
"@typescript-eslint",
"prefer-arrow-functions",
"jest"
"prefer-arrow-functions"
],
"rules": {
"import/no-webpack-loader-syntax": "off",
"react/require-default-props": "off",
"react/no-access-state-in-setstate": "off",
"react/destructuring-assignment": "off",
Expand Down
46 changes: 22 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# environment
.env
.vscode

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
build
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
4 changes: 0 additions & 4 deletions .licenserc.json

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"arrowParens": "always",
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Reach out to [email protected] for clarification of any content within this documen
Optionally apply the following envrionment variables in an environment file such as `.env` or with `yarn build` to customise the build of staking dashboard:
```
# disable all mentioning of fiat values and token prices
REACT_APP_DISABLE_FIAT=1
VITE_DISABLE_FIAT=1
# display an organisation label in the network bar
REACT_APP_ORGANISATION="© Parity Technologies"
VITE_ORGANISATION="© Parity Technologies"
# provide a privacy policy url in the network bar
REACT_APP_PRIVACY_URL=https://www.parity.io/privacy/
VITE_PRIVACY_URL=https://www.parity.io/privacy/
```
## Config Files
There are some ad-hoc files defining app configuration where needed. These just provide a means of bootstrapping app data, and further abstraction could be explored in the future.
Expand Down
6 changes: 0 additions & 6 deletions babel.config.json

This file was deleted.

106 changes: 0 additions & 106 deletions config/env.js

This file was deleted.

68 changes: 0 additions & 68 deletions config/getHttpsConfig.js

This file was deleted.

31 changes: 0 additions & 31 deletions config/jest/babelTransform.js

This file was deleted.

16 changes: 0 additions & 16 deletions config/jest/cssTransform.js

This file was deleted.

Loading

0 comments on commit caebd9f

Please sign in to comment.