-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
2,134 additions
and
2,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
module.exports = { | ||
extends: '@osdoc-dev/eslint-config-preset-react', | ||
env: { | ||
node: true, | ||
jest: true, | ||
}, | ||
rules: { | ||
'import/prefer-default-export': 0, | ||
'import/extensions': 0, | ||
'jsx-quotes': 0, | ||
'unicorn/consistent-destructuring': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'comma-dangle': 0, | ||
'unicorn/filename-case': 0, | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'unicorn/no-null': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'unicorn/prevent-abbreviations': 0, | ||
'class-methods-use-this': 0, | ||
'brace-style': 0, | ||
'unicorn/no-array-reduce': 0, | ||
'operator-linebreak': 0, | ||
'arrow-parens': 0, | ||
'@typescript-eslint/no-redeclare': 0, | ||
'no-underscore-dangle': 0, | ||
'@typescript-eslint/no-namespace': 0, | ||
'space-before-function-paren': 0, | ||
}, | ||
} | ||
module.exports = { | ||
extends: '@osdoc-dev/eslint-config-preset-react', | ||
env: { | ||
node: true, | ||
jest: true, | ||
}, | ||
rules: { | ||
'import/prefer-default-export': 0, | ||
'import/extensions': 0, | ||
'jsx-quotes': 0, | ||
'unicorn/consistent-destructuring': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'comma-dangle': 0, | ||
'unicorn/filename-case': 0, | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'unicorn/no-null': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'unicorn/prevent-abbreviations': 0, | ||
'class-methods-use-this': 0, | ||
'brace-style': 0, | ||
'unicorn/no-array-reduce': 0, | ||
'operator-linebreak': 0, | ||
'arrow-parens': 0, | ||
'@typescript-eslint/no-redeclare': 0, | ||
'no-underscore-dangle': 0, | ||
'@typescript-eslint/no-namespace': 0, | ||
'space-before-function-paren': 0, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master # default branch | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} #使用action安装node环境 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.0.0 | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build:website | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.CI_TOKEN }} | ||
publish_dir: ./dist-website | ||
name: github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master # default branch | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} #使用action安装node环境 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.0.0 | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build:website | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.CI_TOKEN }} | ||
publish_dir: ./dist-website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
name: Node.js Package | ||
# master push | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.19.2] #指定node版本 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} #使用action安装node环境 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Set Npm Info | ||
run: | | ||
npm config set registry http://registry.npmjs.org | ||
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ahwgs" | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.0.0 | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Publish | ||
run: npm publish | ||
|
||
name: Node.js Package | ||
# master push | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.19.2] #指定node版本 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} #使用action安装node环境 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Set Npm Info | ||
run: | | ||
npm config set registry http://registry.npmjs.org | ||
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ahwgs" | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.0.0 | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Publish | ||
run: npm publish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
*.log | ||
.DS_Store | ||
node_modules | ||
.cache | ||
dist | ||
yarn.lock | ||
.umi | ||
*.log | ||
.DS_Store | ||
node_modules | ||
.cache | ||
dist | ||
yarn.lock | ||
.umi | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.