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

Dev #31

Merged
merged 19 commits into from
Dec 14, 2023
Merged

Dev #31

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
7 changes: 2 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"extends": [
"fe",
"fe/ts",
"plugin:jsx-advanced/recommended"
],
"rules": {
"@typescript-eslint/no-duplicate-imports": "off"
}
"fe/react"
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ typings/

# TernJS port file
.tern-port

examples/*/dist
1 change: 1 addition & 0 deletions .husky/_/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
36 changes: 36 additions & 0 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename -- "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

readonly husky_skip_init=1
export husky_skip_init
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

if [ $exitCode = 127 ]; then
echo "husky - command not found in PATH=$PATH"
fi

exit $exitCode
fi
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install -- commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install -- lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.ts?(x)": "eslint --fix",
"*.js?(x)": "eslint --fix"
}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ Packages | Description
-------- | -----------
[vite-plugin-cp](packages/vite-plugin-cp) | Copy files after building bundles.
[vite-plugin-external](packages/vite-plugin-external) | Provides a way of excluding dependencies from the runtime code and output bundles.
[vite-plugin-include-css](packages/vite-plugin-include-css) | build css into individual js files instead of using css links.
[vite-plugin-mock-data](packages/vite-plugin-mock-data) | Provides a simple way to mock data.
[vite-plugin-reverse-proxy](packages/vite-plugin-reverse-proxy) | Makes the script to be served with the text/javascript MIME type instead of module MIME type.
1 change: 0 additions & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
-------- | -----------
[vite-plugin-cp](packages/vite-plugin-cp) | 打包之后复制文件到 dist 目录
[vite-plugin-external](packages/vite-plugin-external) | 排出指定模块依赖,支持开发运行时和打包后的bundle文件。
[vite-plugin-include-css](packages/vite-plugin-include-css) | 将 css 打包到 js 中,使用 link 的方式加载。
[vite-plugin-mock-data](packages/vite-plugin-mock-data) | 本地mock数据。
[vite-plugin-reverse-proxy](packages/vite-plugin-reverse-proxy) | 配合Chrome插件[XSwitch](https://chrome.google.com/webstore/detail/xswitch/idkjhjggpffolpidfkikidcokdkdaogg)将线上资源代理的本地调试。
8 changes: 8 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
> Some custom plugins for vitejs.

Packages | Description
-------- | -----------
[vite-plugin-cp](modules/vite_plugin_cp_src.html) | Copy files after building bundles.
[vite-plugin-external](modules/vite_plugin_external_src.html) | Provides a way of excluding dependencies from the runtime code and output bundles.
[vite-plugin-mock-data](modules/vite_plugin_mock-data_src.html) | Provides a simple way to mock data.
[vite-plugin-reverse-proxy](modules/vite_plugin_reverse_proxy_src.html) | Makes the script to be served with the text/javascript MIME type instead of module MIME type.
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
22 changes: 22 additions & 0 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
:root {
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

@media (prefers-color-scheme: light) { :root {
--code-background: var(--light-code-background);
} }

@media (prefers-color-scheme: dark) { :root {
--code-background: var(--dark-code-background);
} }

:root[data-theme='light'] {
--code-background: var(--light-code-background);
}

:root[data-theme='dark'] {
--code-background: var(--dark-code-background);
}

pre, code { background: var(--code-background); }
59 changes: 59 additions & 0 deletions docs/assets/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading