Skip to content

Commit bf78ae8

Browse files
committedJun 11, 2021
feat: open source
0 parents  commit bf78ae8

File tree

207 files changed

+29961
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+29961
-0
lines changed
 

‎.eslintrc.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
extends: [
7+
"plugin:vue/essential",
8+
"eslint:recommended",
9+
"@vue/typescript/recommended",
10+
"@vue/prettier",
11+
"@vue/prettier/@typescript-eslint",
12+
],
13+
parserOptions: {
14+
ecmaVersion: 2020,
15+
},
16+
globals: {
17+
API: true,
18+
},
19+
rules: {
20+
"arrow-parens": ["error", "always"],
21+
camelcase: "off",
22+
"no-empty": "off",
23+
"@typescript-eslint/camelcase": ["off"],
24+
"@typescript-eslint/no-explicit-any": ["off"],
25+
"@typescript-eslint/explicit-module-boundary-types": ["off"],
26+
"@typescript-eslint/no-non-null-assertion": ["off"],
27+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
28+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
29+
},
30+
};

‎.github/workflows/deploy-develop.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and deploy to mulsig develop.
2+
3+
env:
4+
AWS_REGION: us-east-1
5+
APP_ENV: dev
6+
7+
on:
8+
push:
9+
branches:
10+
- develop
11+
pull_request:
12+
branches:
13+
- develop
14+
15+
jobs:
16+
build-deploy:
17+
runs-on: ubuntu-latest
18+
if: github.repository_owner == 'fox-one'
19+
steps:
20+
- uses: actions/checkout@master
21+
22+
- uses: actions/cache@v2
23+
with:
24+
path: |
25+
node_modules
26+
**/node_modules
27+
key: ${{ runner.os }}-${{ hashFiles('./yarn.lock') }}
28+
29+
- run: yarn --frozen-lockfile --non-interactive
30+
31+
- run: APP_ENV=${{ env.APP_ENV }} yarn build
32+
33+
# upload to aws
34+
- uses: aws-actions/configure-aws-credentials@v1
35+
with:
36+
aws-region: ${{ env.AWS_REGION }}
37+
aws-access-key-id: ${{ secrets.GLOBAL_AWS_ACCESS_KEY_ID }}
38+
aws-secret-access-key: ${{ secrets.GLOBAL_AWS_ACCESS_KEY_SECRET }}
39+
- run: aws s3 cp --recursive dist ${{ secrets.S3_URL_MULSIG_DEV }} --acl public-read --cache-control "max-age=604800"
40+
- run: aws s3 cp dist/index.html ${{ secrets.S3_URL_MULSIG_DEV }} --cache-control "no-cache" --acl public-read

0 commit comments

Comments
 (0)
Please sign in to comment.