diff --git a/build.sh b/build.sh index ac32cfe..47914dc 100755 --- a/build.sh +++ b/build.sh @@ -25,16 +25,16 @@ fi if [[ "$*" != *"--skip-frontend"* ]]; then echo "Building frontend..." - cd src && pnpm install && pnpm run build && cd .. + pnpm install && pnpm run build fi echo "Collecting outputs into /build folder" -cp -r src/dist build/ +cp -r dist build/ cp -r bin build/ cp main.py build/ cp plugin.json build/ cp README.md build/ -cp src/package.json build/ +cp package.json build/ if [[ "$*" != *"--skip-copy"* ]]; then echo "Copying build folder to local plugin directory" diff --git a/defaults/defaults.txt b/defaults/defaults.txt deleted file mode 100644 index ebf140b..0000000 --- a/defaults/defaults.txt +++ /dev/null @@ -1,13 +0,0 @@ -If you have plain-text json configs, theme templates, or templates for usage for your plugin of any description you should have those files be in here. -Those files will be pulled into the zip during the build process and included with the upload. Example: CssLoader with it's themes in "default/themes" would have the "themes" folder will be added alongside with the dist folder, main.py, LICENSE and README files in the subfolder of the zip containing the plugin. -Files can also be put in here such as a config, just keep in mind that they this directory cannot be utilized to put files in arbitrary locations, just within the extracted root folder of the plugin, ex: CssLoader has "defaults/themes/..." setup in it's repo, but when packaged to go to the store, the file structure will be: - -- LICENSE -- README -- dist - - index.js -- main.py -- package.json -- plugin.json -- themes - - exampletheme.css \ No newline at end of file