-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from reuters-graphics/type-system
Type system
- Loading branch information
Showing
1,114 changed files
with
27,665 additions
and
10,036 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
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,59 @@ | ||
name: Canary | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
# Restricts to: | ||
# 1) the base repository | ||
# 2) NOT the default branch ("main") | ||
# 3) NOT "ci skip" in commit message | ||
# 4) NOT "skip ci" in commit message | ||
if: | | ||
github.repository == 'reuters-graphics/graphics-components' && | ||
endsWith(github.event.base_ref, github.event.repository.default_branch) != true && | ||
contains(github.event.head_commit.message, 'ci skip') != true && | ||
contains(github.event.head_commit.message, 'skip ci') != true | ||
steps: | ||
- id: checkout | ||
name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- id: prepare | ||
name: Prepare repository | ||
run: git fetch --unshallow --tags | ||
|
||
- id: setup-node | ||
name: Setup Node.JS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org | ||
|
||
- id: cache | ||
name: Cache node modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: yarn-deps-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
yarn-deps-${{ hashFiles('yarn.lock') }} | ||
- id: install-deps | ||
name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- id: build-package | ||
name: Build package | ||
run: npm run build:package | ||
|
||
- id: canary-release | ||
name: Create Canary Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx auto canary |
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
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,7 @@ | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter+Tight:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet"> | ||
<script> | ||
window.global = window; | ||
</script> |
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
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,6 @@ | ||
declare function svelte(Prism: any): void; | ||
declare namespace svelte { | ||
let displayName: string; | ||
let aliases: any[]; | ||
} | ||
export default svelte; |
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 @@ | ||
{ | ||
"recommendations": [ | ||
"unifiedjs.vscode-mdx" | ||
"unifiedjs.vscode-mdx", | ||
"somewhatstationery.some-sass" | ||
] | ||
} |
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,16 +1,21 @@ | ||
{ | ||
"i18n-ally.localesPaths": ["locales"], | ||
"i18n-ally.keystyle": "nested", | ||
"eslint.validate": ["javascript", "svelte"], | ||
"eslint.validate": ["javascript", "svelte", "jsx"], | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"emmet.excludeLanguages": [ | ||
"markdown", | ||
"scss" | ||
], | ||
"files.associations": { | ||
"*.svx": "mdx" | ||
}, | ||
"[mdx]": { | ||
"editor.wordWrap": "on" | ||
}, | ||
|
||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.