Skip to content

Commit

Permalink
feat: 发布工具插件版第一版-整合插件与挂件
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jun 23, 2023
1 parent c8192cf commit 21e3afd
Show file tree
Hide file tree
Showing 61 changed files with 668 additions and 7,576 deletions.
40 changes: 38 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
module.exports = {
root: true,
extends: ["./node_modules/@terwer/eslint-config-custom/typescript/index.cjs"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended",
"turbo",
"prettier",
],

parser: "@typescript-eslint/parser",

overrides: [
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
// Parse the script in `.svelte` as TypeScript by adding the following configuration.
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
],

plugins: ["@typescript-eslint", "prettier"],

rules: {
// Note: you must disable the base rule as it can report incorrect errors
semi: "off",
quotes: "off",
"no-undef": "off",
"no-async-promise-executor": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"turbo/no-undeclared-env-vars": "off",
"prettier/prettier": "error",
},
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 4 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
.pnp.js

# testing
coverage

# next.js
.next/
out/
build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# turbo
.turbo

# vercel
.vercel

# IDE
.idea
.DS_Store
node_modules
dist
build
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

7 changes: 4 additions & 3 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
*/

module.exports = {
semi: false,
singleQuote: false,
printWidth: 120
semi: false,
singleQuote: false,
printWidth: 120,
plugins: ["prettier-plugin-svelte"]
}
Empty file removed CHANGELOG.md
Empty file.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ to [Latest Adaptation](https://terwergreen.feishu.cn/share/base/view/shrcnWT2IGI

A3:**Yes.**

The plugin has a builtin bridge by default, which can invoke the widget through the plugin. This feature needs to be turned on in `Settings -> Use Widget`​.
The plugin has a builtin bridge by default, which can invoke the widget through the plugin. This feature needs to be turned on in `Settings -> Use WidgetInvoke`​.

<u>Note 1: The plugin version uses the builtin menu of the plugin system, and the menu slot will be disabled when the widget version is activated via plugin. ​</u>

Expand All @@ -88,7 +88,7 @@ to [Latest Adaptation](https://terwergreen.feishu.cn/share/base/view/shrcnWT2IGI


* Q4:I used to use `Custom JS Fragment`​ or add `Widget`​ directly, do I still need to download the plugin now?
* Q4:I used to use `Custom JS Fragment`​ or add `WidgetInvoke`​ directly, do I still need to download the plugin now?

A4:**Optional.** But we highly recommended to remove JS snippets and widgets to download the plugin version.

Expand Down
19 changes: 0 additions & 19 deletions apps/docs/dev.md

This file was deleted.

21 changes: 0 additions & 21 deletions apps/publisher-app/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions apps/publisher-app/.vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions apps/publisher-app/.vscode/launch.json

This file was deleted.

55 changes: 0 additions & 55 deletions apps/publisher-app/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions apps/publisher-app/astro.config.mjs

This file was deleted.

15 changes: 0 additions & 15 deletions apps/publisher-app/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions apps/publisher-app/public/favicon.svg

This file was deleted.

63 changes: 0 additions & 63 deletions apps/publisher-app/src/components/Card.astro

This file was deleted.

1 change: 0 additions & 1 deletion apps/publisher-app/src/env.d.ts

This file was deleted.

36 changes: 0 additions & 36 deletions apps/publisher-app/src/layouts/Layout.astro

This file was deleted.

Loading

0 comments on commit 21e3afd

Please sign in to comment.