d36e8ec85f
* remove test_web * integrate reactjs-vite * update lint-staged * simple cors proxy server which handles cookies and redirections * overrider global fetch with proxy call * simple examples for set cookies and fetch request * app bar * add redux * loadPlugins. error: cant load urlencode module * add ts-node for transforming * plugin search & select * plugin slice * accordion components * path item & popular novel * optional for filters * search novel * parse novel * parseChapter * update cookies * default filters * fix: import path * bundler module resolution * new json_plugins * fix: generate multisrc (missing filters) * fix: host scripts * fix: plugin code path * remove typechecking action
31 lines
636 B
PowerShell
31 lines
636 B
PowerShell
$current=$(git rev-parse --abbrev-ref HEAD)
|
|
$version=$(node -e "console.log(require('./package.json').version);")
|
|
$dist="plugins/v$($version)"
|
|
$exists=$(git show-ref refs/heads/$dist)
|
|
|
|
if ($exists){
|
|
git branch -D $dist
|
|
}
|
|
|
|
git checkout --orphan $dist
|
|
|
|
if(-Not $?){
|
|
# If checkout failed
|
|
echo "=========="
|
|
echo "Could not checkout branch dist! See the error above and fix it!"
|
|
exit 1
|
|
}
|
|
|
|
git reset
|
|
rm -r -fo .js
|
|
npm run clearMultisrc
|
|
npm run generate
|
|
npx tsc -m node16
|
|
npm run json
|
|
git add -f public/icons .dist .js/src/plugins total.svg
|
|
git commit -m "Host plugins"
|
|
git push -f origin $dist
|
|
|
|
git checkout -f $current
|
|
|