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
18 changes: 18 additions & 0 deletions apps/logseq-react-template-plugin/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint", "react-hooks"],
"parser": "@typescript-eslint/parser",
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
39 changes: 39 additions & 0 deletions apps/logseq-react-template-plugin/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is a basic workflow to help you get started with Actions

name: Releases

env:
PLUGIN_NAME: logseq-plugin-template-react

# Controls when the action will run.
on:
# push:
# branches:
# - "master"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- uses: pnpm/action-setup@v2.4.1
with:
version: 6.35.1
- run: pnpm install
- run: pnpm build
- name: Install zip
uses: montudor/action-zip@v1
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions apps/logseq-react-template-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
42 changes: 42 additions & 0 deletions apps/logseq-react-template-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## [2.1.1](https://github.com/pengx17/logseq-plugin-template-react/compare/v2.1.0...v2.1.1) (2022-03-24)


### Bug Fixes

* revert bot pr ([59527a7](https://github.com/pengx17/logseq-plugin-template-react/commit/59527a7044bec0ddd17a79de54844730e8a591a4))

# [2.1.0](https://github.com/pengx17/logseq-plugin-template-react/compare/v2.0.1...v2.1.0) (2022-03-24)


### Bug Fixes

* remove unused line ([0d69a50](https://github.com/pengx17/logseq-plugin-template-react/commit/0d69a504e4847b4859377ada65766b887920ae38))
* update logseq-dev-plugin ([36a69f7](https://github.com/pengx17/logseq-plugin-template-react/commit/36a69f7f13789cd86156273dbf8c01fad793b3e1))


### Features

* use vite-plugin-logseq ([54aa154](https://github.com/pengx17/logseq-plugin-template-react/commit/54aa154615eafa9af8727d0fc1f3031c5e610aa7))

## [2.0.1](https://github.com/pengx17/logseq-plugin-template-react/compare/v2.0.0...v2.0.1) (2022-03-21)


### Bug Fixes

* add missing base for production build ([738ac09](https://github.com/pengx17/logseq-plugin-template-react/commit/738ac09dab9785ccc3564117bc4026cfb4464e9a))

# [2.0.0](https://github.com/pengx17/logseq-plugin-template-react/compare/v1.0.0...v2.0.0) (2022-03-17)

# 1.0.0 (2021-09-03)


### Bug Fixes

* build ([fd35d6c](https://github.com/pengx17/logseq-plugin-template-react/commit/fd35d6c098e030920da26a65c734940a27b604df))
* deps ([7ad5f35](https://github.com/pengx17/logseq-plugin-template-react/commit/7ad5f351a645029823c3ab4cc04db2476948943a))
* useAppVisible hook ([0f3ad46](https://github.com/pengx17/logseq-plugin-template-react/commit/0f3ad46e2fe8f9326e796fb50f8f32d5c66d9bf8))


### Features

* enable HMR ([7ff7100](https://github.com/pengx17/logseq-plugin-template-react/commit/7ff7100552180c6d14f3df37a449b704da29270d))
13 changes: 13 additions & 0 deletions apps/logseq-react-template-plugin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Logseq Plugin</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
7 changes: 7 additions & 0 deletions apps/logseq-react-template-plugin/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading