Fixed package.json formatter script (#571)

* Fixed package.json formatter script
Didn't work on Windows, maybe other platforms too

* Added example for custom one-click-app repository
This commit is contained in:
Skayo 2021-11-20 16:15:36 +01:00 committed by GitHub
parent 7efb5cbf2f
commit cbab4af66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -75,3 +75,5 @@ To create your own repository:
- Run `npm run validate_apps`
- Run `npm run build`
- Now you can host the static content placed in `./dist` directory anywhere you want, the official repo uses github pages to publish the content. Make sure to update [CNAME](https://github.com/caprover/one-click-apps/blob/master/public/CNAME) to your own URL if you decide to do so.
Here is a good example: [Skayo's CapRover One-Click-Apps](https://github.com/Skayo/CapRover-One-Click-Apps)

View File

@ -3,8 +3,8 @@
"version": "1.0.0",
"description": "One Click App Repository for CapRover",
"scripts": {
"formatter": "prettier --check './public/**/*.(json|yml)'",
"formatter-write": "prettier --write './public/**/*.(json|yml)'",
"formatter": "prettier --check \"./public/**/*.(json|yml)\"",
"formatter-write": "prettier --write \"./public/**/*.(json|yml)\"",
"build": "rm -rf ./dist/ && mkdir -p dist && node ./scripts/build_one_click_apps.js && node ./scripts/build_one_click_apps_from_v4.js",
"validate_apps": "node ./scripts/validate_apps.js",
"publish": "npm run build && ./scripts/publish-from-actions.sh"