Skip to content

Commit

Permalink
chore: wallet setup (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo authored Aug 1, 2023
1 parent 4b7d9ae commit 4a9d353
Show file tree
Hide file tree
Showing 1,253 changed files with 14,102 additions and 54,552 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# dev envs not needed in production
YATA_API_TOKEN=YOUR_YATA_API_TOKEN # yata api token for fetching translations
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/dist
/.nuxt
/.output
/public/assets/fonts
/functions
/translations/
/.yarn
84 changes: 84 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
module.exports = {
root: true,
env: {
node: true,
browser: true,
es6: true,
webextensions: true,
},
globals: {
INPAGE_SCRIPT: 'readonly',
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-strongly-recommended',
'plugin:import/recommended',
'plugin:json/recommended',
'prettier',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
tsconfigBaseDir: __dirname,
project: ['./tsconfig.json'],
extraFileExtensions: ['.vue', '.json'],
},
settings: {
'import/resolver': {
typescript: true,
node: true,
},
},
rules: {
'vue/multi-word-component-names': 'off',
'vue/component-tags-order': [
'error',
{
order: ['script', 'template', 'style'],
},
],
'vue/no-deprecated-slot-attribute': 'off', // to allow lit slot usage in vue
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-debugger': 2,
'no-unused-vars': 'off', // Using the ts rule above instead.
'import/order': [
'error',
{
groups: [
['builtin', 'external', 'index'],
['sibling', 'parent', 'internal'],
'object',
'type',
],
'newlines-between': 'always',
},
],
},
overrides: [
{
files: ['**/*.spec.ts'],
extends: ['plugin:playwright/playwright-test'],
rules: {
'import/order': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
{
files: ['**/dist/**/*.js', '**/.output/**/*.js'],
rules: {
complexity: 0,
},
},
{
files: ['./*.js', './*.cjs'],
parser: 'espree',
parserOptions: {
ecmaVersion: 2020,
},
},
],
}
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

8 changes: 0 additions & 8 deletions .gcloudignore

This file was deleted.

4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Ticket ID

### Description
29 changes: 0 additions & 29 deletions .github/workflows/ci.yaml

This file was deleted.

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: Tests
on:
pull_request:
branches:
- '*'
jobs:
test:
timeout-minutes: 60
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: ⚙️ Install dependencies
run: yarn install
- name: 🎨 Lint
run: yarn lint
- name: 🛠 Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: 🎯 Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
134 changes: 30 additions & 104 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,111 +1,37 @@
# Nuxt dev/build outputs
.output
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

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

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Misc
.DS_Store
.fleet
.idea
/public/assets/*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# Local env files
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

.DS_Store

out


# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
.env.*
!.env.example

# yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# tests
/test-results/
/playwright-report/
/playwright/.cache/
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
legacy-peer-deps=true
shamefully-hoist=true
strict-peer-dependencies=false
29 changes: 29 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# compiled output
/dist/

# dependencies
/node_modules/
/charts/

# misc
/coverage/
!.*
.eslintcache
/src/translations/
eslintrc
.lintstagedrc.json
tsconfig.json
.eslintrc
/CHANGELOG.md
/.release-please-manifest.json
/release-please-config.json
/public/assets/fonts

/dist
/.nuxt
/.output
/functions
/translations/
/playwright-report/
/.yarn
.yarnrc.yml
9 changes: 6 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"trailingComma": "all",
"arrowParens": "avoid",
"printWidth": 80,
"singleQuote": true,
"tabWidth": 2,
"semi": true,
"singleQuote": true
"trailingComma": "es5",
"semi": false,
"endOfLine": "lf"
}
Loading

0 comments on commit 4a9d353

Please sign in to comment.