-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: separate components into npm packages in monorepo; add log…
…istration-redirect (#97) BREAKING CHANGE: refactor to split ui components into separate packages using Lerna
- Loading branch information
1 parent
25d080b
commit 3e2a3ac
Showing
106 changed files
with
62,036 additions
and
27,484 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,38 @@ | ||
name: node_js CI | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Lint | ||
run: npm run lint | ||
- name: Test | ||
run: npm run test | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
- name: Preview semantic-release version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} | ||
run: npx semantic-release --dry-run --branches=${{ steps.extract_branch.outputs.branch }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
# lerna expects to be authenticated for publishing to NPM. This step will fail CI if NPM is not | ||
# authenticated, even though this build does _not_ attempt to publish, as an extra check before merge | ||
# that Lerna is set to publish. | ||
- name: Check NPM authentication | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}" >> .npmrc | ||
npm whoami | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Lerna Bootstrap | ||
run: npm run bootstrap | ||
- name: Lint | ||
run: npm run ci:lint | ||
- name: Test | ||
run: npm run ci:test | ||
- name: Coverage Report | ||
uses: codecov/codecov-action@v1 | ||
- name: Build | ||
run: npm run ci:build | ||
- name: Preview Changed Packages | ||
run: npm run changed |
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,29 +1,43 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
# lerna expects to be authenticated for publishing to NPM. This step will fail CI if NPM is not authenticated | ||
- name: Check NPM authentication | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}" >> .npmrc | ||
npm whoami | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Run Lerna Bootstrap | ||
run: npm run bootstrap | ||
- name: Lint | ||
run: npm run ci:lint | ||
- name: Test | ||
run: npm run test | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Release | ||
run: npm run ci:test | ||
- name: Coverage Report | ||
uses: codecov/codecov-action@v1 | ||
- name: Build | ||
run: npm run ci:build | ||
- name: Preview Changed Packages | ||
run: npm run changed | ||
- name: Publish Changed Packages | ||
run: npm run publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} | ||
run: npx semantic-release | ||
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,6 +1,4 @@ | ||
.vscode | ||
.idea | ||
coverage | ||
dist | ||
node_modules | ||
*~ | ||
lerna-debug.log |
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 +1 @@ | ||
12.10.0 | ||
12 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 0.10% | ||
catalog-search: | ||
target: auto | ||
threshold: 0.10% | ||
flags: | ||
- catalog-search | ||
logistration: | ||
target: auto | ||
threshold: 0.10% | ||
flags: | ||
- logistration | ||
utils: | ||
target: auto | ||
threshold: 0.10% | ||
flags: | ||
- utils | ||
|
||
flags: | ||
catalog-search: | ||
paths: | ||
- packages/catalog-search/src | ||
logistration: | ||
paths: | ||
- packages/logistration/src | ||
utils: | ||
paths: | ||
- packages/utils/src | ||
|
||
comment: | ||
layout: "reach,diff,flags,files,footer" | ||
behavior: default | ||
require_changes: no |
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,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-angular'], | ||
extends: ['@commitlint/config-conventional'], | ||
}; |
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,37 @@ | ||
================================ | ||
1. Record Architecture Decisions | ||
================================ | ||
|
||
****** | ||
Status | ||
****** | ||
|
||
Accepted | ||
|
||
******* | ||
Context | ||
******* | ||
|
||
We would like to keep a historical record on the architectural decisions we make with this app as it evolves over time. | ||
|
||
******** | ||
Decision | ||
******** | ||
|
||
We will use Architecture Decision Records, as described by | ||
Michael Nygard in `Documenting Architecture Decisions`_ | ||
|
||
.. _Documenting Architecture Decisions: http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions | ||
|
||
************ | ||
Consequences | ||
************ | ||
|
||
See Michael Nygard's article, linked above. | ||
|
||
********** | ||
References | ||
********** | ||
|
||
* https://resources.sei.cmu.edu/asset_files/Presentation/2017_017_001_497746.pdf | ||
* https://github.com/npryce/adr-tools/tree/master/doc/adr |
Oops, something went wrong.