Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Main

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
main:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5

- name: Lint
run: pnpm lint

- name: Test
run: pnpm run test --coverage

- name: Build
run: pnpm build

- name: CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "react-safe-lazy",
"version": "0.0.0",
"version": "0.1.0-beta.0",
"description": "Safely use `React.lazy` with retry and reload strategies.",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"author": "Silverhand Inc. <contact@silverhand.io>",
"homepage": "https://github.com/silverhand-io/react-safe-lazy",
"repository": {
"type": "git",
"url": "git+https://github.com/silverhand-io/react-safe-lazy.git"
},
"scripts": {
"build": "vite build",
"lint": "eslint src --ext .ts,.tsx",
Expand All @@ -19,7 +25,6 @@
"retry",
"reload"
],
"author": "",
"license": "MIT",
"devDependencies": {
"@silverhand/eslint-config": "^6.0.1",
Expand Down
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}