Skip to content

Commit

Permalink
Merge pull request #12 from black7375/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jan 10, 2023
2 parents 521c5cd + 9e24ff4 commit 1c71451
Show file tree
Hide file tree
Showing 527 changed files with 26,112 additions and 9,606 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@
"plugin:jest/recommended",
"prettier"
],
"rules": {}
"rules": {
"@typescript-eslint/no-empty-function": [
"error", {
"allow": ["private-constructors"]
}
],
"@typescript-eslint/no-unused-vars": [
"warn", {
"argsIgnorePattern": "^_"
}
]
}
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.css linguist-detectable=false
*.otf binary
*.zip binary
17 changes: 17 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# These are supported funding model platforms

## Example
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
# patreon: # Replace with a single Patreon username
# open_collective: # Replace with a single Open Collective username
# ko_fi: # Replace with a single Ko-fi username
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
# liberapay: # Replace with a single Liberapay username
# issuehunt: # Replace with a single IssueHunt username
# otechie: # Replace with a single Otechie username
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

github: [black7375]
23 changes: 5 additions & 18 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- uses: actions/checkout@v3
- name: pip cache
id: pip-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: node cache
id: node-cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: pip install -r ./requirements.txt
- name: npm install
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm install
- run: npm ci --no-audit
- run: npm run lint --if-present
- run: npm test
- run: npm run build --if-present
- run: yarn run lint
- run: yarn run build
env:
CI: true
- run: yarn test
49 changes: 12 additions & 37 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: volta-cli/action@v1
- name: pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: node cache
id: node-cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: pip install -r ./requirements.txt
- name: npm install
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm install
- run: npm ci --no-audit
- run: npm run build --if-present
- run: yarn build
env:
CI: true
- run: npm test
- run: yarn test
- name: Commit Build File
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand All @@ -62,7 +49,7 @@ jobs:
token: GITHUB_TOKEN
registry: https://npm.pkg.github.com/
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- name: Merge master -> github-repo
Expand All @@ -73,34 +60,22 @@ jobs:
from_branch: master
target_branch: github-repo
github_token: ${{ secrets[matrix.token] }}
- uses: volta-cli/action@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
registry-url: ${{ matrix.registry }}
- name: pip cache
id: pip-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: node cache
id: node-cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: pip install -r ./requirements.txt
- name: npm install
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm install
- run: npm ci
- run: npm run build --if-present
- run: yarn build
env:
CI: true
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets[matrix.token] }}
- name: npm publish
run: |
yarn config set npmAuthToken ${{ secrets[matrix.token] }}
yarn run publish
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,15 @@ coverage
# Optional eslint cache
.eslintcache

# Zero install
# .pnp.* # If not zero install
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Misc
.DS_Store
Loading

0 comments on commit 1c71451

Please sign in to comment.