This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: init project
- Loading branch information
Showing
48 changed files
with
23,692 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,28 @@ | ||
.git | ||
|
||
# dependancies | ||
|
||
node_modules/ | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/releases | ||
!.yarn/plugins | ||
!.yarn/sdks | ||
!.yarn/versions | ||
.pnp.* | ||
|
||
# we are using yarn here | ||
package-lock.json | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
/.vscode | ||
.idea/ | ||
.eslintcache | ||
dist/ | ||
coverage | ||
storybook-static | ||
.reports | ||
|
||
|
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,13 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = 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,4 @@ | ||
# From .gitignore | ||
node_modules/ | ||
dist/ | ||
storybook-static |
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 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"jest": true | ||
}, | ||
"parser": "@babel/eslint-parser", | ||
"extends": ["@scaleway/react", "plugin:mdx/recommended"], | ||
"plugins": ["@emotion"], | ||
"rules": { | ||
// Import | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/__stories__/**/*", | ||
"**/*.spec.ts", | ||
"**/*.spec.tsx", | ||
"**/__tests__/*", | ||
"rollup.config.mjs" | ||
] | ||
} | ||
], | ||
|
||
// emotion | ||
"@emotion/styled-import": "error", | ||
"@emotion/no-vanilla": "error", | ||
"@emotion/import-from-emotion": "error", | ||
"@emotion/syntax-preference": ["error", "string"], | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"parserOptions": { | ||
"project": ["tsconfig.json"] | ||
}, | ||
"extends": ["@scaleway/react/typescript"], | ||
"rules": { | ||
"react/require-default-props": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["**/__stories__/*", "**/__tests__/*"], | ||
"rules": { | ||
"no-console": "off", | ||
"no-alert": "off", | ||
"react/prop-types": "off", | ||
"react/jsx-props-no-spreading": "off" | ||
} | ||
} | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".ts", ".tsx", ".d.ts"] | ||
} | ||
} | ||
} | ||
} |
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,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,36 @@ | ||
## Summary | ||
|
||
## Type | ||
|
||
- Bug | ||
- Feature | ||
- Enhancement | ||
- Documentation | ||
- Migration | ||
- Refactor | ||
|
||
### Summarise concisely: | ||
|
||
#### What is expected? | ||
|
||
(Description of the new behavior) | ||
|
||
#### The following changes where made: | ||
|
||
(Describe what you did) | ||
|
||
1. | ||
|
||
2. | ||
|
||
3. | ||
|
||
## Relevant logs and/or screenshots | ||
|
||
Page | Before | After | ||
:- | :-: | -: | ||
url | screenshot | screenshot | ||
url | screenshot | screenshot | ||
|
||
|
||
|
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,50 @@ | ||
{ | ||
"enabledManagers": ["dockerfile", "npm"], | ||
"extends": [ | ||
"config:base", | ||
":combinePatchMinorReleases" | ||
], | ||
"assignees": ["team:scaleway/console"], | ||
"prHourlyLimit": 5, | ||
"prConcurrentLimit": 10, | ||
"postUpdateOptions": ["yarnDedupeHighest"], | ||
"labels": ["dependencies"], | ||
"rangeStrategy": "pin", | ||
"semanticCommitType": "chore", | ||
"semanticCommitScope": "deps", | ||
"packageRules": [ | ||
{ | ||
"semanticCommitScope": "devDeps", | ||
"matchDepTypes": ["devDependencies"], | ||
"matchUpdateTypes": ["major"] | ||
}, | ||
{ | ||
"automerge": true, | ||
"automergeType": "branch", | ||
"semanticCommitScope": "devDeps", | ||
"matchDepTypes": ["devDependencies"], | ||
"matchUpdateTypes": ["minor", "patch"] | ||
}, | ||
{ | ||
"automerge": false, | ||
"matchPackagePatterns": ["^@scaleway/"], | ||
"stabilityDays": 0, | ||
"matchUpdateTypes": ["major", "minor", "patch"] | ||
}, | ||
{ | ||
"labels": ["UPDATE-MAJOR"], | ||
"stabilityDays": 14, | ||
"matchUpdateTypes": ["major"] | ||
}, | ||
{ | ||
"labels": ["UPDATE-MINOR"], | ||
"stabilityDays": 5, | ||
"matchUpdateTypes": ["minor"] | ||
}, | ||
{ | ||
"labels": ["UPDATE-PATCH"], | ||
"stabilityDays": 1, | ||
"matchUpdateTypes": ["patch"] | ||
} | ||
] | ||
} |
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,76 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
types: ['opened', 'edited', 'reopened', 'synchronize'] | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn run lint | ||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
node: [ '14', '16' ] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: "0" | ||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn run test:unit:coverage | ||
- uses: codecov/[email protected] | ||
build: | ||
strategy: | ||
matrix: | ||
node: [ '14', '16' ] | ||
runs-on: ubuntu-20.04 | ||
needs: [lint, test] | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: yarn install | ||
- run: yarn run build | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
needs: [build] | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
GIT_COMMITTER_NAME: Scaleway Bot | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: "0" | ||
persist-credentials: false | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
- run: yarn install | ||
- run: yarn run build | ||
- run: yarn run semantic-release | ||
env: | ||
HUSKY: 0 | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.