Skip to content

Commit

Permalink
fix: fixed description and keys
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Feb 4, 2021
1 parent 93cc65e commit ca4aae7
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 122 deletions.
4 changes: 2 additions & 2 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ repository:
archived: false
default_branch: master
delete_branch_on_merge: true
description: "Leverages on icons to automatically generate your icons for you."
description: "Various awesome ESLint rules."
has_downloads: true
has_issues: true
has_pages: false
Expand All @@ -104,4 +104,4 @@ repository:

# https://developer.github.com/v3/repos/branches/#remove-branch-protection

topics: "anolilab, typescript, nextjs, icons, manifest, webpack, plugin, png, svg, android, ios, pwa, progressive-web-app, favicon, icon, image-generation, html-tags, splash-screen, progressive-web-apps, favicon-generator, splash-screens, launch-image, icon-sizes, manifest-specs, pwa-assets, mstile"
topics: "anolilab, typescript, nodejs, javascript, eslint, eslint-plugin, unicorns, eslint-config, linting-rules, eslint-rules, lint, styleguide, stylelint, eslint, eslintconfig, config, javascript, es2015, es2016, es2017, es2018, es2020, babel, browserslist"
128 changes: 64 additions & 64 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
name: Build and deploy

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: check consistent dependencies
run: node ./common/scripts/install-run-rush.js check
- name: check changelog
run: node ./common/scripts/install-run-rush.js change -v
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: install
run: node ./common/scripts/install-run-rush.js install --no-link
- name: link
run: node ./common/scripts/install-run-rush.js link
- name: build
run: node ./common/scripts/install-run-rush.js rebuild --verbose
- name: lint
run: node ./common/scripts/install-run-rush.js lint
- name: run unit tests
run: node ./common/scripts/install-run-rush.js test:unit
- name: upload code coverage to codecov
uses: codecov/codecov-action@v1
- name: run integration tests
run: node ./common/scripts/install-run-rush.js test:integration
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: check consistent dependencies
run: node ./common/scripts/install-run-rush.js check
- name: check changelog
run: node ./common/scripts/install-run-rush.js change -v
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: install
run: node ./common/scripts/install-run-rush.js install
# - name: link
# run: node ./common/scripts/install-run-rush.js link
- name: build
run: node ./common/scripts/install-run-rush.js rebuild --verbose
- name: lint
run: node ./common/scripts/install-run-rush.js lint
- name: run unit tests
run: node ./common/scripts/install-run-rush.js test:unit
- name: upload code coverage to codecov
uses: codecov/codecov-action@v1
- name: run integration tests
run: node ./common/scripts/install-run-rush.js test:integration

publish:
needs: build
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install
run: node ./common/scripts/install-run-rush.js install --no-link
- name: link
run: node ./common/scripts/install-run-rush.js link
- name: build
run: node ./common/scripts/install-run-rush.js rebuild --verbose
- name: set git credentials
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: set npm credentials
run: echo //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN > ~/.npmrc
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Bump versions
run: node ./common/scripts/install-run-rush.js version --bump --target-branch main
- name: publish
run: node ./common/scripts/install-run-rush.js publish -a -b main -p --set-access-level public --include-all
publish:
needs: build
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install
run: node ./common/scripts/install-run-rush.js install
# - name: link
# run: node ./common/scripts/install-run-rush.js link
- name: build
run: node ./common/scripts/install-run-rush.js rebuild --verbose
- name: set git credentials
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: set npm credentials
run: echo //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN > ~/.npmrc
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Bump versions
run: node ./common/scripts/install-run-rush.js version --bump --target-branch main
- name: publish
run: node ./common/scripts/install-run-rush.js publish -a -b main -p --set-access-level public --include-all
12 changes: 6 additions & 6 deletions common/autoinstallers/rush-eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "rush-eslint",
"version": "1.0.0",
"private": true,
"dependencies": {
"eslint": "^7.19.0"
}
"name": "rush-eslint",
"version": "1.0.0",
"private": true,
"dependencies": {
"eslint": "^7.19.0"
}
}
13 changes: 7 additions & 6 deletions common/autoinstallers/rush-jest/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "rush-jest",
"version": "1.0.0",
"private": true,
"dependencies": {
"jest": "^26.6.3"
}
"name": "rush-jest",
"version": "1.0.0",
"private": true,
"dependencies": {
"jest": "^26.6.3",
"ts-jest": "^26.5.0"
}
}
14 changes: 7 additions & 7 deletions common/autoinstallers/rush-prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "rush-prettier",
"version": "1.0.0",
"private": true,
"dependencies": {
"prettier": "^2.2.1",
"pretty-quick": "^3.1.0"
}
"name": "rush-prettier",
"version": "1.0.0",
"private": true,
"dependencies": {
"prettier": "^2.2.1",
"pretty-quick": "^3.1.0"
}
}
12 changes: 6 additions & 6 deletions common/autoinstallers/rush-sort-package-json/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "rush-sort-package-json",
"version": "1.0.0",
"private": true,
"dependencies": {
"sort-package-json": "^1.48.1"
}
"name": "rush-sort-package-json",
"version": "1.0.0",
"private": true,
"dependencies": {
"sort-package-json": "^1.48.1"
}
}
29 changes: 26 additions & 3 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"commandKind": "global",
"summary": "Used by the pre-commit Git hook. This command invokes Prettier to reformat staged changes.",
"autoinstallerName": "rush-prettier",
"shellCommand": "pretty-quick --staged"
"shellCommand": "pretty-quick"
},
{
"name": "eslint",
Expand All @@ -178,19 +178,26 @@
"autoinstallerName": "rush-textlint",
"shellCommand": "textlint ./.build/ISSUE_TEMPLATE/** ./src/** ./docs/** ./README.md ./UPGRADE.md --fix"
},
{
"name": "commitlint",
"commandKind": "global",
"summary": "Used to run commitlint.",
"autoinstallerName": "rush-commitlint",
"shellCommand": "commitlint"
},
{
"name": "jest",
"commandKind": "global",
"summary": "Used to run jest.",
"autoinstallerName": "rush-jest",
"shellCommand": "jest"
"shellCommand": "jest --coverageDirectory ./coverage"
},
{
"name": "jest-coverage",
"commandKind": "global",
"summary": "Used to run jest with coverage.",
"autoinstallerName": "rush-jest",
"shellCommand": "jest --coverage --coverageDirectory ./coverage"
"shellCommand": "jest --coverage "
},
{
"name": "sort-package-json",
Expand Down Expand Up @@ -326,5 +333,21 @@
// }
// ]
// }

{
"parameterKind": "flag",
"longName": "--staged",
"description": "A custom flag parameter that is passed to the scripts that are invoked when prettier",
"associatedCommands": ["prettier"],
"required": false
},
{
"parameterKind": "flag",
"longName": "--edit",
"shortName": "-E",
"description": "A custom flag parameter that is passed to the scripts that are invoked when commitlint",
"associatedCommands": ["commitlint"],
"required": false
}
]
}
28 changes: 3 additions & 25 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/git-hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
echo --------------------------------------------
echo Starting Git hook: commit-msg

node common/scripts/install-run-rush.js commitlint -E $1 || exit $?
node common/scripts/install-run-rush.js commitlint --edit $1 || exit $?

echo Finished Git hook: commit-msg
echo --------------------------------------------
2 changes: 1 addition & 1 deletion common/git-hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo Starting Git hook: pre-commit

node common/scripts/install-run-rush.js prettier --staged

node common/scripts/install-run-rush.js sort-package-json */*/package.json
node common/scripts/install-run-rush.js sort-package-json

echo Finished Git hook: pre-commit
echo --------------------------------------------
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
transform: {
"^.+\\.tsx?$": "ts-jest",
},
verbose: true,
};
1 change: 0 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"css",
"anolilab",
"lint",
"styled-components",
"styleguide",
"stylelint",
"eslint",
Expand Down

0 comments on commit ca4aae7

Please sign in to comment.