Skip to content

Commit

Permalink
bcs one
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-foster-wallace committed Jul 23, 2021
0 parents commit 53ae034
Show file tree
Hide file tree
Showing 96 changed files with 18,390 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"vue/no-v-html": "off",
"vue/html-indent": [
"error",
4
],
"vue/component-tags-order": [
"error",
{
"order": ["template", "script", "style"]
}
]
}
}
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install, build, and lint
run: |
npm ci
npm run build
npm run lint
78 changes: 78 additions & 0 deletions .github/workflows/pinata-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Pinata Deploy

on:
push:
branches:
- main
- develop

jobs:
deploy-main:
name: Deploy-Main

runs-on: ubuntu-latest

if: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1

- name: Install ipfs-deploy
run: npm install -g ipfs-deploy

- name: Install dependencies
run: npm install

- name: Build Kovan
run: npm run build-pinata
env:
APP_CHAIN_ID: 42
APP_GAS_PRICE: 100000000000

- name: Deploy Kovan
run: ipfs-deploy ./dist -p pinata
env:
IPFS_DEPLOY_PINATA__API_KEY: ${{ secrets.IPFS_DEPLOY_PINATA__API_KEY }}
IPFS_DEPLOY_PINATA__SECRET_API_KEY: ${{ secrets.IPFS_DEPLOY_PINATA__SECRET_API_KEY }}

- name: Build Mainnet
run: npm run build-pinata
env:
APP_CHAIN_ID: 1
APP_GAS_PRICE: 100000000000

- name: Deploy Mainnet
run: ipfs-deploy ./dist -p pinata
env:
IPFS_DEPLOY_PINATA__API_KEY: ${{ secrets.IPFS_DEPLOY_PINATA__API_KEY }}
IPFS_DEPLOY_PINATA__SECRET_API_KEY: ${{ secrets.IPFS_DEPLOY_PINATA__SECRET_API_KEY }}

deploy-develop:
name: Deploy-Develop

runs-on: ubuntu-latest

if: github.ref == 'refs/heads/develop'

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1

- name: Install ipfs-deploy
run: npm install -g ipfs-deploy

- name: Install dependencies
run: npm install

- name: Build Beta
run: npm run build-pinata
env:
APP_CHAIN_ID: 1
APP_GAS_PRICE: 100000000000

- name: Deploy Beta
run: ipfs-deploy ./dist -p pinata
env:
IPFS_DEPLOY_PINATA__API_KEY: ${{ secrets.IPFS_DEPLOY_PINATA__API_KEY }}
IPFS_DEPLOY_PINATA__SECRET_API_KEY: ${{ secrets.IPFS_DEPLOY_PINATA__SECRET_API_KEY }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist/
node_modules/
.env
.idea
6 changes: 6 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 4
}
}
Loading

0 comments on commit 53ae034

Please sign in to comment.