Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies and improve workflow #213

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c57e0fe
chore: Add Github Action for dependency management and release notes …
divyakumarjain Aug 3, 2021
e3b4d10
Merge pull request #2 from divyakumarjain/chore/github-workflow
divyakumarjain Aug 3, 2021
8cfd65e
Bump ua-parser-js from 0.7.18 to 0.7.28 in /examples
dependabot[bot] Aug 3, 2021
8e86b36
Bump hosted-git-info from 2.6.1 to 2.8.9 in /examples
dependabot[bot] Aug 3, 2021
ee1fce4
Bump handlebars from 4.7.6 to 4.7.7 in /examples
dependabot[bot] Aug 3, 2021
baa6048
Bump urijs from 1.19.1 to 1.19.7 in /examples
dependabot[bot] Aug 3, 2021
59224bc
Bump dns-packet from 1.3.1 to 1.3.4 in /examples
dependabot[bot] Aug 3, 2021
105c5f3
Bump url-parse from 1.4.1 to 1.4.7 in /examples
dependabot[bot] Aug 3, 2021
dafb6db
Bump merge from 1.2.0 to 1.2.1 in /examples
dependabot[bot] Aug 3, 2021
445eca8
Bump y18n from 3.2.1 to 3.2.2 in /examples
dependabot[bot] Aug 3, 2021
8921521
Bump react-dev-utils from 5.0.1 to 5.0.3 in /examples
dependabot[bot] Aug 3, 2021
487a05e
Bump elliptic from 6.5.3 to 6.5.4 in /examples
dependabot[bot] Aug 3, 2021
a57df05
chore: update dependencies
divyakumarjain Aug 3, 2021
bd35414
Merge pull request #13 from divyakumarjain/chore/dependencies
divyakumarjain Aug 3, 2021
ac6b80a
chore: Add codeql scanning
divyakumarjain Aug 3, 2021
cb1517a
Merge pull request #19 from divyakumarjain/chore/codeql
divyakumarjain Aug 3, 2021
7b23bf4
Bump term-img from 4.1.0 to 6.0.0
dependabot[bot] Aug 3, 2021
fe0759b
chore: improve code scanning and automerge
divyakumarjain Aug 3, 2021
37ef5ef
Merge pull request #20 from divyakumarjain/chore/automerge-codescaning
divyakumarjain Aug 3, 2021
6363216
Bump fs-extra from 7.0.1 to 10.0.0
dependabot[bot] Aug 3, 2021
aaa9136
Merge pull request #21 from divyakumarjain/develop
divyakumarjain Aug 3, 2021
111cd99
Bump mixme from 0.5.1 to 0.5.2
dependabot[bot] Sep 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": [
"airbnb-base",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"cypress"
],
"rules": {
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"cypress/globals": true
}
}
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/1.Bug_Report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a bug report for React Storefront
---

# Bug report

## Describe the bug

A clear and concise description of what the bug is.

## To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

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.

## System information

- OS: [e.g. macOS, Windows]
- Browser (if applies) [e.g. chrome, safari]
- Version of React Storefront: [e.g. 7.0.2]

## Additional context

Add any other context about the problem here.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/2.Feature_Request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Create a feature request for React Storefront
---

# Feature request

## Is your feature request related to a problem? Please describe.

A clear and concise description of what you want and what your use case is.

## 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.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
open-pull-requests-limit: 10
target-branch: develop
labels:
- "chore"
- "dependencies"
16 changes: 16 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: automerge
on:
check_suite:
types:
- completed
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.14.2"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "dependencies,!wip,!work in progress"
MERGE_METHOD: "rebase"
UPDATE_METHOD: "rebase"
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Unit Test

on:
push:
branches: [ master, develop ]
pull_request:
types: [opened, synchronize, reopened]

Expand All @@ -11,18 +13,24 @@ jobs:
strategy:
matrix:
node: ['12.x', '14.x']
language: [ 'javascript' ]

name: Test on node ${{ matrix.node }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- uses: actions/cache@v1
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- uses: actions/cache@v2
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
Expand All @@ -38,3 +46,6 @@ jobs:
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
/*.js

.DS_Store

.idea
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
npx lint-staged
3 changes: 3 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
Loading