Skip to content

Commit ab1ec28

Browse files
authored
Merge pull request #1 from CaiYiLiang/master
init project
2 parents bbab3ee + 0c80433 commit ab1ec28

File tree

669 files changed

+69531
-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.

669 files changed

+69531
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

apps/.123trigger

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2

apps/.babelrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('./babel.config.js');

apps/.codeclimate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exclude_patterns:
2+
- "**/*.spec.js"
3+
- "**/*.spec.ts"

apps/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

apps/.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
[*]
3+
indent_style=space
4+
indent_size=2
5+
tab_width=2
6+
end_of_line=lf
7+
charset=utf-8
8+
trim_trailing_whitespace=true
9+
max_line_length=120
10+
insert_final_newline=true

apps/.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/build/*
2+
**/coverage/*
3+
**/node_modules/*
4+
i18next-scanner.config.js

apps/.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const base = require('@polkadot/dev-react/config/eslint');
2+
3+
// add override for any (a metric ton of them, initial conversion)
4+
module.exports = {
5+
...base,
6+
parserOptions: {
7+
...base.parserOptions,
8+
project: [
9+
'./tsconfig.json'
10+
]
11+
},
12+
rules: {
13+
...base.rules,
14+
'@typescript-eslint/no-explicit-any': 'off'
15+
}
16+
};

apps/.github/workflows/pr-any.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: PR
2+
on: [pull_request]
3+
4+
jobs:
5+
lint:
6+
name: Linting
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [12.x]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: lint
18+
run: |
19+
yarn install --frozen-lockfile
20+
yarn lint
21+
22+
test:
23+
name: Testing
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
node-version: [12.x]
28+
steps:
29+
- uses: actions/checkout@v1
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- name: test
35+
run: |
36+
yarn install --frozen-lockfile
37+
yarn test
38+
39+
build_code:
40+
name: Build Code
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
node-version: [12.x]
45+
steps:
46+
- uses: actions/checkout@v1
47+
- name: Use Node.js ${{ matrix.node-version }}
48+
uses: actions/setup-node@v1
49+
with:
50+
node-version: ${{ matrix.node-version }}
51+
- name: build
52+
run: |
53+
yarn install --frozen-lockfile
54+
yarn build:code
55+
56+
build_i18n:
57+
name: Build i18n
58+
runs-on: ubuntu-latest
59+
strategy:
60+
matrix:
61+
node-version: [12.x]
62+
steps:
63+
- uses: actions/checkout@v1
64+
- name: Use Node.js ${{ matrix.node-version }}
65+
uses: actions/setup-node@v1
66+
with:
67+
node-version: ${{ matrix.node-version }}
68+
- name: build
69+
run: |
70+
yarn install --frozen-lockfile
71+
yarn build:i18n
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Master
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build_code:
9+
name: Build Code
10+
if: "! contains(github.event.head_commit.message, '[CI Skip]')"
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [12.x]
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: build
22+
env:
23+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
24+
GH_PAGES_SRC: packages/apps/build
25+
GH_PAT: ${{ secrets.GH_PAT }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
run: |
29+
yarn install --frozen-lockfile
30+
yarn polkadot-dev-ghact-build
31+
yarn polkadot-dev-ghact-docs

0 commit comments

Comments
 (0)