Skip to content

Commit

Permalink
Merge pull request #1025 from ForestAdmin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentMolinie authored Oct 27, 2022
2 parents 8f34528 + d7db5a9 commit 453cc22
Show file tree
Hide file tree
Showing 45 changed files with 5,384 additions and 5,780 deletions.
59 changes: 0 additions & 59 deletions .eslint-bin/pre-commit-hook.js

This file was deleted.

14 changes: 9 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
## Pull Request checklist:
## Definition of Done

### General

- [ ] Write an explicit title for the Pull Request, following [Conventional Commits specification](https://www.conventionalcommits.org)
- [ ] Create automatic tests
- [ ] Test manually the implemented changes
- [ ] Review my own code (indentation, syntax, style, simplicity, readability)
- [ ] Wonder if you can improve the existing code
- [ ] If needed, Types have been updated
- [ ] Validate the code quality (indentation, syntax, style, simplicity, readability)
- [ ] Ensure that Types have been updated according to your changes (if needed)

### Security

- [ ] Consider the security impact of the changes made
60 changes: 60 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: "@babel/core"
versions:
- 7.12.10
- 7.12.13
- 7.12.16
- 7.12.17
- 7.13.1
- 7.13.10
- 7.13.13
- 7.13.14
- 7.13.15
- 7.13.8
- dependency-name: "@babel/preset-env"
versions:
- 7.12.11
- 7.12.13
- 7.12.16
- 7.12.17
- 7.13.0
- 7.13.10
- 7.13.12
- 7.13.5
- 7.13.8
- 7.13.9
- dependency-name: ini
versions:
- 1.3.8
- dependency-name: y18n
versions:
- 3.2.2
- dependency-name: simple-git
versions:
- 2.31.0
- 2.32.0
- 2.34.2
- 2.35.0
- 2.35.1
- 2.35.2
- 2.36.0
- 2.36.1
- 2.36.2
- 2.37.0
- dependency-name: semver
versions:
- 7.3.4
- dependency-name: "@babel/plugin-transform-arrow-functions"
versions:
- 7.12.1
- 7.12.13
- dependency-name: lodash
versions:
- 4.17.20
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build, Test and Deploy
on:
push:
branches:
- master
- main
- beta
pull_request:

Expand All @@ -21,7 +21,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14.17.6
- uses: actions/cache@v2
with:
path: '**/node_modules'
Expand All @@ -39,7 +41,7 @@ jobs:
needs: [lint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
- name: Cache node_modules
uses: actions/cache@v2
with:
Expand All @@ -60,12 +62,12 @@ jobs:
name: Release package
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta')
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # GITHUB_TOKEN must not be set for the semantic release
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.13.0
- uses: actions/cache@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ node_modules

# Build
dist
.eslintcache

# VS Code
*.code-workspace
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.js": ["eslint --cache --quiet --fix"]
}
9 changes: 5 additions & 4 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
branches: ['main', '+([0-9])?(.{+([0-9]),x}).x', {name: 'beta', prerelease: true}],
plugins: [
[
'@semantic-release/commit-analyzer', {
Expand Down Expand Up @@ -54,16 +55,16 @@ module.exports = {
[
"semantic-release-npm-deprecate-old-versions", {
"rules": [
{
"rule": "supportLatest",
{
"rule": "supportLatest",
"options": {
"numberOfMajorReleases": 3,
"numberOfMinorReleases": "all",
"numberOfPatchReleases": "all"
}
},
{
"rule": "supportPreReleaseIfNotReleased",
{
"rule": "supportPreReleaseIfNotReleased",
"options": {
"numberOfPreReleases": 1,
}
Expand Down
Loading

0 comments on commit 453cc22

Please sign in to comment.