Skip to content

Commit 38c72a7

Browse files
authored
Initial commit
0 parents  commit 38c72a7

19 files changed

Lines changed: 4718 additions & 0 deletions

.eslintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:react/recommended",
5+
"plugin:@typescript-eslint/eslint-recommended",
6+
"plugin:@typescript-eslint/recommended"
7+
],
8+
"plugins": ["@typescript-eslint", "react-hooks"],
9+
"parser": "@typescript-eslint/parser",
10+
"rules": {
11+
"react-hooks/rules-of-hooks": "error",
12+
"react-hooks/exhaustive-deps": "warn",
13+
"import/prefer-default-export": "off",
14+
"@typescript-eslint/ban-ts-comment": "off",
15+
"@typescript-eslint/no-non-null-assertion": "off",
16+
"@typescript-eslint/explicit-module-boundary-types": "off"
17+
}
18+
}

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Releases
4+
5+
env:
6+
PLUGIN_NAME: logseq-plugin-template-react
7+
8+
# Controls when the action will run.
9+
on:
10+
# push:
11+
# branches:
12+
# - "master"
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
release:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: "16"
29+
- uses: pnpm/action-setup@v2.2.4
30+
with:
31+
version: 6.0.2
32+
- run: pnpm install
33+
- run: pnpm build
34+
- name: Install zip
35+
uses: montudor/action-zip@v1
36+
- name: Release
37+
run: npx semantic-release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
*.local

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## [2.1.1](https://github.com/pengx17/logseq-plugin-template-react/compare/v2.1.0...v2.1.1) (2022-03-24)
2+
3+
4+
### Bug Fixes
5+
6+
* revert bot pr ([59527a7](https://github.com/pengx17/logseq-plugin-template-react/commit/59527a7044bec0ddd17a79de54844730e8a591a4))
7+
8+
# [2.1.0](https://github.com/pengx17/logseq-plugin-template-react/compare/v2.0.1...v2.1.0) (2022-03-24)
9+
10+
11+
### Bug Fixes
12+
13+
* remove unused line ([0d69a50](https://github.com/pengx17/logseq-plugin-template-react/commit/0d69a504e4847b4859377ada65766b887920ae38))
14+
* update logseq-dev-plugin ([36a69f7](https://github.com/pengx17/logseq-plugin-template-react/commit/36a69f7f13789cd86156273dbf8c01fad793b3e1))
15+
16+
17+
### Features
18+
19+
* use vite-plugin-logseq ([54aa154](https://github.com/pengx17/logseq-plugin-template-react/commit/54aa154615eafa9af8727d0fc1f3031c5e610aa7))
20+
21+
## [2.0.1](https://github.com/pengx17/logseq-plugin-template-react/compare/v2.0.0...v2.0.1) (2022-03-21)
22+
23+
24+
### Bug Fixes
25+
26+
* add missing base for production build ([738ac09](https://github.com/pengx17/logseq-plugin-template-react/commit/738ac09dab9785ccc3564117bc4026cfb4464e9a))
27+
28+
# [2.0.0](https://github.com/pengx17/logseq-plugin-template-react/compare/v1.0.0...v2.0.0) (2022-03-17)
29+
30+
# 1.0.0 (2021-09-03)
31+
32+
33+
### Bug Fixes
34+
35+
* build ([fd35d6c](https://github.com/pengx17/logseq-plugin-template-react/commit/fd35d6c098e030920da26a65c734940a27b604df))
36+
* deps ([7ad5f35](https://github.com/pengx17/logseq-plugin-template-react/commit/7ad5f351a645029823c3ab4cc04db2476948943a))
37+
* useAppVisible hook ([0f3ad46](https://github.com/pengx17/logseq-plugin-template-react/commit/0f3ad46e2fe8f9326e796fb50f8f32d5c66d9bf8))
38+
39+
40+
### Features
41+
42+
* enable HMR ([7ff7100](https://github.com/pengx17/logseq-plugin-template-react/commit/7ff7100552180c6d14f3df37a449b704da29270d))

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Logseq Plugin</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

logo.svg

Lines changed: 7 additions & 0 deletions
Loading

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "logseq-plugin-template-react",
3+
"version": "0.0.0",
4+
"main": "dist/index.html",
5+
"scripts": {
6+
"dev": "vite",
7+
"build": "tsc && vite build",
8+
"preinstall": "npx only-allow pnpm"
9+
},
10+
"license": "MIT",
11+
"dependencies": {
12+
"@logseq/libs": "^0.0.9",
13+
"react": "^18.2.0",
14+
"react-dom": "^18.2.0"
15+
},
16+
"devDependencies": {
17+
"@semantic-release/changelog": "6.0.1",
18+
"@semantic-release/exec": "6.0.3",
19+
"@semantic-release/git": "10.0.1",
20+
"@semantic-release/npm": "9.0.1",
21+
"@types/node": "18.0.4",
22+
"@types/react": "18.0.21",
23+
"@types/react-dom": "18.0.6",
24+
"@typescript-eslint/eslint-plugin": "5.40.1",
25+
"@typescript-eslint/parser": "5.40.1",
26+
"@vitejs/plugin-react": "2.1.0",
27+
"autoprefixer": "10.4.12",
28+
"conventional-changelog-conventionalcommits": "5.0.0",
29+
"eslint": "8.25.0",
30+
"eslint-plugin-react": "7.31.10",
31+
"eslint-plugin-react-hooks": "4.6.0",
32+
"postcss": "8.4.18",
33+
"semantic-release": "19.0.5",
34+
"tailwindcss": "3.1.8",
35+
"typescript": "4.8.4",
36+
"vite": "3.1.8",
37+
"vite-plugin-logseq": "1.1.2"
38+
},
39+
"logseq": {
40+
"id": "_pengx17-logseq-template-react",
41+
"icon": "./logo.svg"
42+
}
43+
}

0 commit comments

Comments
 (0)