Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
feat: init project and ci
Browse files Browse the repository at this point in the history
feat: init project
  • Loading branch information
DorianMaliszewski authored Nov 4, 2021
2 parents c67e3de + e5a6a30 commit aba61ef
Show file tree
Hide file tree
Showing 48 changed files with 23,692 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .dockerignore
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


13 changes: 13 additions & 0 deletions .editorconfig
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
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# From .gitignore
node_modules/
dist/
storybook-static
59 changes: 59 additions & 0 deletions .eslintrc
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"]
}
}
}
}
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
36 changes: 36 additions & 0 deletions .github/pull_request_template.md
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



50 changes: 50 additions & 0 deletions .github/renovate.json
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"]
}
]
}
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
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 }}
Loading

0 comments on commit aba61ef

Please sign in to comment.