Skip to content

Commit 3ca2007

Browse files
authored
Merge pull request #12 from yiliansource/feature/development-assistance
Feature/development assistance, closes #11
2 parents 7853499 + 23446ff commit 3ca2007

File tree

113 files changed

+1248
-1340
lines changed

Some content is hidden

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

113 files changed

+1248
-1340
lines changed

.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ignore configs
2+
.eslintrc.js
3+
babel.config.js
4+
docusaurus.config.js
5+
6+
# ignore built directories
7+
node_modules
8+
build
9+
.docusaurus

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
},
6+
plugins: ["@typescript-eslint", "prettier"],
7+
rules: {
8+
"prettier/prettier": "error",
9+
},
10+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
11+
};

.github/workflows/cd.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# This workflow builds and deploys the site whenever the main branch changes, to ensure that it
3+
# doesn't have to be done manually. It can also be triggered manually, if desired.
4+
#
5+
6+
name: Continuous Deployment
7+
8+
on:
9+
workflow_dispatch:
10+
11+
push:
12+
branches:
13+
- main
14+
15+
jobs:
16+
CD:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Use Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 12.x
26+
27+
# Install using the frozen lockfile, to maximize speed.
28+
- name: Install dependancies
29+
run: yarn install --frozen-lockfile
30+
31+
# Build the Docusaurus source to static files.
32+
- name: Build
33+
run: yarn build
34+
35+
# Deploy the resulting static files to the 'gh-pages' branch.
36+
- name: Deploy to GitHub Pages
37+
uses: JamesIves/github-pages-deploy-action@4.1.1
38+
with:
39+
branch: gh-pages
40+
folder: ./build

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# This workflow builds the site on pull requests to the main branch, to ensure that, prior to deployment,
3+
# the site can be successfully built without errors. This also verifies linting and style guides.
4+
#
5+
6+
name: Continuous Integration
7+
8+
on:
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
CI:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Use Node.js
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 12.x
25+
26+
# Install using the frozen lockfile, to maximize speed.
27+
- name: Install dependancies
28+
run: yarn install --frozen-lockfile
29+
30+
# Verify the style guides.
31+
- name: Lint codebase
32+
run: yarn lint
33+
34+
# Build the Docusaurus source to static files.
35+
# If this command succeeds, a valid build can be produced.
36+
- name: Build
37+
run: yarn build

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/node_modules
2+
/build
3+
.docusaurus
4+
5+
*.md

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": false,
6+
"printWidth": 120,
7+
"endOfLine": "auto",
8+
"importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
9+
"importOrderSeparation": true
10+
}

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
33
};

deploy.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/.nojekyll

Whitespace-only changes.

docs/404.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)