-
-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR merges the core and ui packages into one monorepo for easier maintenance. Husky has been added to automate eslint, prettier and jest execution. Commit messages are now validated both by the pre-commit hook and GitHub Actions. Closes: #23 Closes: #86 Closes: #49
- Loading branch information
1 parent
a3a2e06
commit 6c8d190
Showing
152 changed files
with
18,433 additions
and
18,597 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,20 +1,26 @@ | ||
name: Release Package to GitHub | ||
name: Publish Packages to GitHub | ||
|
||
on: workflow_dispatch | ||
|
||
env: | ||
HUSKY: 0 | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: https://npm.pkg.github.com/ | ||
cache: npm | ||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
- run: git config --global user.name "github-actions[bot]" | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run docs | ||
- run: npm run release | ||
- run: npx lerna run build | ||
- run: npx lerna publish --yes | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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,18 +1,31 @@ | ||
name: Test and Build the Package | ||
name: Verify Pull Request | ||
|
||
on: | ||
pull_request: {} | ||
|
||
env: | ||
HUSKY: 0 | ||
|
||
jobs: | ||
build: | ||
verification: | ||
name: Verification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run prettier | ||
- run: npm run test | ||
- run: npm run build | ||
- name: Commit name | ||
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --verbose | ||
- name: ESLint | ||
run: npx lerna run lint | ||
- name: Prettier | ||
run: npx lerna run prettier | ||
- name: Tests | ||
run: npx lerna run test | ||
- name: Build | ||
run: npx lerna run build |
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,5 +1,6 @@ | ||
node_modules | ||
lib | ||
api | ||
dist | ||
test | ||
.idea | ||
.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit $1 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
npx --no -- jest --onlyChanged --config=packages/core/jest.config.js |
This file was deleted.
Oops, something went wrong.
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
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.