-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit f93ec64
Showing
20 changed files
with
5,266 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,126 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: ~/grc | ||
docker: | ||
- image: cimg/node:16.17 | ||
|
||
jobs: | ||
build: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} # fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
- run: npm install | ||
- run: npm run build | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
- persist_to_workspace: | ||
root: ~/grc | ||
paths: . | ||
|
||
test: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/grc | ||
- run: | ||
name: Run tests | ||
command: npm run test:prod | ||
|
||
lint_commit_message: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/grc | ||
- run: | ||
name: Define environment variable with lastest commit's message | ||
command: | | ||
echo 'export COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")' >> $BASH_ENV | ||
source $BASH_ENV | ||
- run: | ||
name: Lint commit message | ||
command: echo "$COMMIT_MESSAGE" | npx commitlint | ||
|
||
typecheck: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/grc | ||
- run: | ||
name: "Typecheck" | ||
command: npm run typecheck | ||
|
||
deploy-npm: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/grc | ||
- run: | ||
name: Semantic release | ||
command: npm run semantic-release | ||
|
||
deploy-docs: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/grc | ||
- run: | ||
name: Deploy docs | ||
command: npm run deploy:docs | ||
|
||
workflows: | ||
version: 2 | ||
test-deploy: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
ignore: gh-pages | ||
- lint_commit_message: | ||
filters: | ||
branches: | ||
ignore: gh-pages | ||
requires: | ||
- build | ||
- typecheck: | ||
filters: | ||
branches: | ||
ignore: gh-pages | ||
requires: | ||
- build | ||
- test: | ||
filters: | ||
branches: | ||
ignore: gh-pages | ||
requires: | ||
- build | ||
- deploy-docs: | ||
filters: | ||
branches: | ||
only: master | ||
ignore: gh-pages | ||
requires: | ||
- build | ||
- lint_commit_message | ||
- test | ||
- typecheck | ||
context: | ||
- semantic-release | ||
- deploy-npm: | ||
filters: | ||
branches: | ||
only: master | ||
ignore: gh-pages | ||
requires: | ||
- build | ||
- lint_commit_message | ||
- test | ||
- typecheck | ||
context: | ||
- semantic-release |
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 @@ | ||
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. |
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,113 @@ | ||
:root { | ||
--light-hl-0: #000000; | ||
--dark-hl-0: #D4D4D4; | ||
--light-hl-1: #0000FF; | ||
--dark-hl-1: #569CD6; | ||
--light-hl-2: #0070C1; | ||
--dark-hl-2: #4FC1FF; | ||
--light-hl-3: #795E26; | ||
--dark-hl-3: #DCDCAA; | ||
--light-hl-4: #A31515; | ||
--dark-hl-4: #CE9178; | ||
--light-hl-5: #001080; | ||
--dark-hl-5: #9CDCFE; | ||
--light-hl-6: #098658; | ||
--dark-hl-6: #B5CEA8; | ||
--light-hl-7: #008000; | ||
--dark-hl-7: #6A9955; | ||
--light-hl-8: #AF00DB; | ||
--dark-hl-8: #C586C0; | ||
--light-hl-9: #EE0000; | ||
--dark-hl-9: #D7BA7D; | ||
--light-hl-10: #CD3131; | ||
--dark-hl-10: #F44747; | ||
--light-hl-11: #267F99; | ||
--dark-hl-11: #4EC9B0; | ||
--light-hl-12: #000000; | ||
--dark-hl-12: #C8C8C8; | ||
--light-code-background: #FFFFFF; | ||
--dark-code-background: #1E1E1E; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { :root { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--hl-7: var(--light-hl-7); | ||
--hl-8: var(--light-hl-8); | ||
--hl-9: var(--light-hl-9); | ||
--hl-10: var(--light-hl-10); | ||
--hl-11: var(--light-hl-11); | ||
--hl-12: var(--light-hl-12); | ||
--code-background: var(--light-code-background); | ||
} } | ||
|
||
@media (prefers-color-scheme: dark) { :root { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--hl-7: var(--dark-hl-7); | ||
--hl-8: var(--dark-hl-8); | ||
--hl-9: var(--dark-hl-9); | ||
--hl-10: var(--dark-hl-10); | ||
--hl-11: var(--dark-hl-11); | ||
--hl-12: var(--dark-hl-12); | ||
--code-background: var(--dark-code-background); | ||
} } | ||
|
||
:root[data-theme='light'] { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--hl-7: var(--light-hl-7); | ||
--hl-8: var(--light-hl-8); | ||
--hl-9: var(--light-hl-9); | ||
--hl-10: var(--light-hl-10); | ||
--hl-11: var(--light-hl-11); | ||
--hl-12: var(--light-hl-12); | ||
--code-background: var(--light-code-background); | ||
} | ||
|
||
:root[data-theme='dark'] { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--hl-7: var(--dark-hl-7); | ||
--hl-8: var(--dark-hl-8); | ||
--hl-9: var(--dark-hl-9); | ||
--hl-10: var(--dark-hl-10); | ||
--hl-11: var(--dark-hl-11); | ||
--hl-12: var(--dark-hl-12); | ||
--code-background: var(--dark-code-background); | ||
} | ||
|
||
.hl-0 { color: var(--hl-0); } | ||
.hl-1 { color: var(--hl-1); } | ||
.hl-2 { color: var(--hl-2); } | ||
.hl-3 { color: var(--hl-3); } | ||
.hl-4 { color: var(--hl-4); } | ||
.hl-5 { color: var(--hl-5); } | ||
.hl-6 { color: var(--hl-6); } | ||
.hl-7 { color: var(--hl-7); } | ||
.hl-8 { color: var(--hl-8); } | ||
.hl-9 { color: var(--hl-9); } | ||
.hl-10 { color: var(--hl-10); } | ||
.hl-11 { color: var(--hl-11); } | ||
.hl-12 { color: var(--hl-12); } | ||
pre, code { background: var(--code-background); } |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.